xc
Ref2d3d.h
1 // -*-c++-*-
2 //----------------------------------------------------------------------------
3 // xc utils library; general purpose classes and functions.
4 //
5 // Copyright (C) Luis C. Pérez Tato
6 //
7 // XC utils is free software: you can redistribute it and/or modify
8 // it under the terms of the GNU General Public License as published by
9 // the Free Software Foundation, either version 3 of the License, or
10 // (at your option) any later version.
11 //
12 // This software is distributed in the hope that it will be useful, but
13 // WITHOUT ANY WARRANTY; without even the implied warranty of
14 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 // GNU General Public License for more details.
16 //
17 // You should have received a copy of the GNU General Public License
18 // along with this program.
19 // If not, see <http://www.gnu.org/licenses/>.
20 //----------------------------------------------------------------------------
21 //Ref2d3d.h
22 
23 #ifndef REF2D3D_H
24 #define REF2D3D_H
25 
26 #include "Ref.h"
27 #include "utility/geom/coo_sys/Rect2d3dCooSys.h"
28 #include "utility/geom/d3/GeomObj3d.h"
29 #include "utility/geom/pos_vec/Pos3d.h"
30 
31 class Line3d;
32 class Dir3d;
33 class Plane;
34 class Vector3d;
35 class Ref3d3d;
36 
41 class Ref2d3d : public Ref<Rect2d3dCooSys>
42  {
43  public:
46  public:
47  Ref2d3d(void);
48  explicit Ref2d3d(const Pos3d &o);
49  Ref2d3d(const Pos3d &,const Rect2d3dCooSys &);
50  Ref2d3d(const Pos3d &o,const Pos3d &p,const Pos3d &q);
51  Ref2d3d(const Pos3d &o,const Vector3d &v);
52  Ref2d3d(const Pos3d &o,const Vector3d &v1,const Vector3d &v2);
53  explicit Ref2d3d(const Ref3d3d &);
54 
55  Vector3d getIVector(void) const; //I unary vector.
56  Vector3d getJVector(void) const; //J unary vector.
57  Vector3d getKVector(void) const; //K unary vector.
58  Line3d getXAxis(void) const; //Return the x axis.
59  Line3d getYAxis(void) const; //Return the y axis.
60  //void PointVector(const Pos3d &o,const Vector3d &vX);
61 
62  Plane getXYPlane(void) const; //Return the XY plane.
63 
64  };
65 
66 #endif
67 
68 
69 
70 
71 
72 
Base class for position lists.
Definition: PolyPos.h:35
Two-dimensional rectangular coordinate system definde in a three-dimensional space.
Definition: Rect2d3dCooSys.h:36
Line3d getYAxis(void) const
Return the line defining the y axis.
Definition: Ref2d3d.cc:77
Plane in a three-dimensional space.
Definition: Plane.h:49
Vector3d getIVector(void) const
Return the unary vector I expressed in global coordinates.
Definition: Ref2d3d.cc:58
Dirección en el espacio de tres dimensiones.
Definition: Dir3d.h:35
Vector3d getKVector(void) const
Return the unary vector K expressed in global coordinates.
Definition: Ref2d3d.cc:66
Base class for reference systems.
Definition: Ref.h:37
Line3d getXAxis(void) const
Return the line defining the x axis.
Definition: Ref2d3d.cc:70
Posición en tres dimensiones.
Definition: Pos3d.h:44
Line in a three-dimensional space.
Definition: Line3d.h:62
Vector3d getJVector(void) const
Return the unary vector J expressed in global coordinates.
Definition: Ref2d3d.cc:62
Vector en tres dimensiones.
Definition: Vector3d.h:39
Ref2d3d(void)
Constructor.
Definition: Ref2d3d.cc:30
Two-dimensional reference system defined in a three-dimensional space.
Definition: Ref2d3d.h:41
Three-dimensional reference system defined in a three-dimensional space.
Definition: Ref3d3d.h:39