xc
Ref1d2d.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 //Ref1d2d.h
22 
23 #ifndef REF1D2D_H
24 #define REF1D2D_H
25 
26 #include "Ref.h"
27 #include "utility/geom/coo_sys/Rect1d2dCooSys.h"
28 #include "utility/geom/d2/GeomObj2d.h"
29 #include "utility/geom/pos_vec/Pos2d.h"
30 #include "utility/geom/pos_vec/Vector2d.h"
31 #include "utility/geom/pos_vec/Dir2d.h"
32 
33 class Line2d;
34 class Dir2d;
35 class Ref2d2d;
36 
41 class Ref1d2d : public Ref<Rect1d2dCooSys>
42  {
43  public:
46 
47  public:
48  Ref1d2d(void);
49  explicit Ref1d2d(const Pos2d &);
50  Ref1d2d(const Pos2d &,const Rect1d2dCooSys &);
51  Ref1d2d(const Pos2d &o,const Vector2d &vX);
52  Ref1d2d(const Pos2d &o,const Dir2d &dirX);
53  Ref1d2d(const Pos2d &o,const Pos2d &p);
54  explicit Ref1d2d(const Ref2d2d &);
55 
56  Vector2d getIVector(void) const;
58  Line2d getXAxis(void) const; //Return the line defining x axis.
59 
60  virtual ~Ref1d2d(void)
61  {}
62  };
63 
64 #endif
65 
66 
67 
68 
69 
70 
Dirección en dos dimensiones.
Definition: Dir2d.h:36
Base class for position lists.
Definition: PolyPos.h:35
Posición en dos dimensiones.
Definition: Pos2d.h:41
Line in a two-dimensional space.
Definition: Line2d.h:61
1D Reference system defined in a bi-dimensional one.
Definition: Ref1d2d.h:41
Line2d getXAxis(void) const
Return the I unary vector of the global system.
Definition: Ref1d2d.cc:45
Vector2d getIVector(void) const
Return the unary vector I in the global system.
Definition: Ref1d2d.cc:41
Vector en dos dimensiones.
Definition: Vector2d.h:40
Two-dimensional reference system defined in a two-dimensional space.
Definition: Ref2d2d.h:39
One dimensional coordinate system defined in a three-dimensional space.
Definition: Rect1d2dCooSys.h:33
Base class for reference systems.
Definition: Ref.h:37