ToolMap
Loading...
Searching...
No Matches
tmarraysize.h
1/***************************************************************************
2 tmarraysize.h
3 Array of wxSize items
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_ARRAY_SIZE_H_
20#define _TM_ARRAY_SIZE_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
31 private:
32 wxRealPoint coordinate;
33 wxRealPoint origin;
34
35 public:
37 : coordinate(),
38 origin() {}
39
40 tmRealPointDist(double xx, double yy, const wxRealPoint& originorigin);
41
43
44 double GetDistFromOrigin() const;
45
46 wxRealPoint GetOrigin() const {
47 return origin;
48 }
49
50 wxRealPoint GetCoordinate() const {
51 return coordinate;
52 }
53
54 // copy function
55 tmRealPointDist& operator=(const tmRealPointDist& source);
56};
57
58WX_DECLARE_OBJARRAY(tmRealPointDist, wxArrayRealPointsDist);
59
60WX_DECLARE_OBJARRAY(wxSize, tmArraySize);
61
62WX_DECLARE_OBJARRAY(wxRealPoint, wxArrayRealPoints);
63
64WX_DECLARE_OBJARRAY(wxPoint, wxArrayPoints);
65
66#endif
Definition tmarraysize.h:30