vcsl_cartesian_2d.h
Go to the documentation of this file.
1 #ifndef vcsl_cartesian_2d_h_
2 #define vcsl_cartesian_2d_h_
3 //:
4 // \file
5 // \brief 2D Cartesian coordinate system
6 // \author Francois BERTEL
7 //
8 // \verbatim
9 // Modifications
10 // 2000/06/28 Francois BERTEL Creation. Adapted from IUE
11 // 2004/09/10 Peter Vanroose Inlined all 1-line methods in class decl
12 // \endverbatim
13 
14 #include <vcsl/vcsl_spatial.h>
16 
17 //: 2D Cartesian coordinate system
19  : public vcsl_spatial
20 {
21  public:
22  //***************************************************************************
23  // Constructors/Destructor
24  //***************************************************************************
25 
26  // Default constructor
28 
29  // Destructor
30  ~vcsl_cartesian_2d() override = default;
31 
32  //***************************************************************************
33  // Because VXL does not necessarily use dynamic_cast<>
34  //***************************************************************************
35 
36  const vcsl_cartesian_2d *cast_to_cartesian_2d() const override { return this; }
37 
38  //***************************************************************************
39  // Status report
40  //***************************************************************************
41 
42  //: Are the axes of `this' right handed ?
43  bool is_right_handed() const { return right_handed_; }
44 
45  //***************************************************************************
46  // Status setting
47  //***************************************************************************
48 
49  //: Set whether the coordinate system is right handed or not
50  void set_right_handed(bool val) { right_handed_ = val; }
51 
52  protected:
53  //***************************************************************************
54  // Implementation
55  //***************************************************************************
56 
57  //: True if the axes of `this' are right handed
59 };
60 
61 #endif // vcsl_cartesian_2d_h_
bool right_handed_
True if the axes of ‘this’ are right handed.
2D Cartesian coordinate system.
const vcsl_cartesian_2d * cast_to_cartesian_2d() const override
void set_right_handed(bool val)
Set whether the coordinate system is right handed or not.
A spatial coordinate system.
Definition: vcsl_spatial.h:41
bool is_right_handed() const
Are the axes of ‘this’ right handed ?.
A spatial coordinate system.
~vcsl_cartesian_2d() override=default