ToolMap
Loading...
Searching...
No Matches
tmpointorient.h
1/***************************************************************************
2 tmpointorient.h
3 for dealing with point orientation
4 -------------------
5 copyright : (C) 2009 CREALP Lucien Schreiber
6 ***************************************************************************/
7
8/***************************************************************************
9 * *
10 * This program is free software; you can redistribute it and/or modify *
11 * it under the terms of the GNU General Public License as published by *
12 * the Free Software Foundation; either version 2 of the License, or *
13 * (at your option) any later version. *
14 * *
15 ***************************************************************************/
16
17// comment doxygen
18
19#ifndef _TM_POINT_ORIENT_H_
20#define _TM_POINT_ORIENT_H_
21
22// For compilers that support precompilation, includes "wx/wx.h".
23#include <wx/wxprec.h>
24
25// Include wxWidgets' headers
26#ifndef WX_PRECOMP
27#include <wx/wx.h>
28#endif
29
30#include <wx/graphics.h>
31
32class tmPointOrient : public wxObject {
33 private:
34 wxPoint m_StartPoint;
35 wxPoint m_EndPoint;
36
37 void InitMemberValues();
38
39 protected:
40 public:
41 // ctor - dtor
43
45
46 // setter - getter
47 void SetStartPoint(const wxPoint& start);
48
49 void SetEndPoint(const wxPoint& end);
50
51 int GetOrientationInt();
52
53 double GetOrientationDouble();
54
55 // checks
56 virtual bool IsValid();
57};
58
59#endif
Definition tmpointorient.h:32