source: git/src/mainfrm.h @ 3449c6f

RELEASE/1.0RELEASE/1.2debug-cidebug-ci-sanitisersfaster-cavernloglog-selectstereostereo-2025walls-datawalls-data-hanging-as-warningwarn-only-for-hanging-survey
Last change on this file since 3449c6f was da4ddfe, checked in by Olly Betts <olly@…>, 20 years ago

Minimise differences between the two branches.

git-svn-id: file:///home/survex-svn/survex/trunk@2860 4b37db11-9a0c-4f06-9ece-9ab7cdaee568

  • Property mode set to 100644
File size: 17.6 KB
Line 
1//
2//  mainfrm.h
3//
4//  Main frame handling for Aven.
5//
6//  Copyright (C) 2000-2001, Mark R. Shinwell.
7//  Copyright (C) 2001-2003,2004 Olly Betts
8//
9//  This program is free software; you can redistribute it and/or modify
10//  it under the terms of the GNU General Public License as published by
11//  the Free Software Foundation; either version 2 of the License, or
12//  (at your option) any later version.
13//
14//  This program is distributed in the hope that it will be useful,
15//  but WITHOUT ANY WARRANTY; without even the implied warranty of
16//  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17//  GNU General Public License for more details.
18//
19//  You should have received a copy of the GNU General Public License
20//  along with this program; if not, write to the Free Software
21//  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
22//
23
24#ifndef mainfrm_h
25#define mainfrm_h
26
27#include "wx.h"
28#include <wx/docview.h> // for m_FileHistory
29#include <wx/print.h>
30#include <wx/printdlg.h>
31
32#include "gfxcore.h"
33#include "message.h"
34#include "aventreectrl.h"
35#include "img.h"
36
37#include <list>
38using namespace std;
39
40#include <math.h>
41
42extern const int NUM_DEPTH_COLOURS;
43
44enum {
45    menu_FILE_OPEN = 1000,
46    menu_FILE_PRINT,
47    menu_FILE_PAGE_SETUP,
48    menu_FILE_EXPORT,
49    menu_FILE_QUIT,
50    menu_ROTATION_START,
51    menu_ROTATION_STOP,
52    menu_ROTATION_TOGGLE,
53    menu_ROTATION_SPEED_UP,
54    menu_ROTATION_SLOW_DOWN,
55    menu_ROTATION_REVERSE,
56    menu_ROTATION_STEP_CCW,
57    menu_ROTATION_STEP_CW,
58    menu_ORIENT_MOVE_NORTH,
59    menu_ORIENT_MOVE_EAST,
60    menu_ORIENT_MOVE_SOUTH,
61    menu_ORIENT_MOVE_WEST,
62    menu_ORIENT_SHIFT_LEFT,
63    menu_ORIENT_SHIFT_RIGHT,
64    menu_ORIENT_SHIFT_UP,
65    menu_ORIENT_SHIFT_DOWN,
66    menu_ORIENT_PLAN,
67    menu_ORIENT_ELEVATION,
68    menu_ORIENT_HIGHER_VP,
69    menu_ORIENT_LOWER_VP,
70    menu_ORIENT_ZOOM_IN,
71    menu_ORIENT_ZOOM_OUT,
72    menu_ORIENT_DEFAULTS,
73    menu_VIEW_SHOW_LEGS,
74    menu_VIEW_SHOW_CROSSES,
75    menu_VIEW_SHOW_NAMES,
76    menu_VIEW_SHOW_SURFACE,
77    menu_VIEW_SURFACE_DEPTH,
78    menu_VIEW_SURFACE_DASHED,
79    menu_VIEW_SHOW_OVERLAPPING_NAMES,
80    menu_VIEW_SHOW_ENTRANCES,
81    menu_VIEW_SHOW_FIXED_PTS,
82    menu_VIEW_SHOW_EXPORTED_PTS,
83    menu_VIEW_INDICATORS,
84    menu_VIEW_COMPASS,
85    menu_VIEW_CLINO,
86    menu_VIEW_DEPTH_BAR,
87    menu_VIEW_SCALE_BAR,
88    menu_VIEW_STATUS_BAR,
89    menu_VIEW_GRID,
90    menu_VIEW_SIDE_PANEL,
91    menu_VIEW_METRIC,
92    menu_VIEW_DEGREES,
93    menu_CTL_REVERSE,
94    menu_CTL_CANCEL_DIST_LINE,
95    menu_HELP_ABOUT,
96    button_FIND,
97    button_HIDE
98};
99
100class PointInfo {
101    friend class MainFrm;
102    Double x, y, z;
103    bool isLine; // false => move, true => draw line
104    bool isSurface;
105
106public:
107    Double GetX() const { return x; }
108    Double GetY() const { return y; }
109    Double GetZ() const { return z; }
110    bool IsLine() const { return isLine; }
111    bool IsSurface() const { return isSurface; }
112};
113
114#define LFLAG_SURFACE           img_SFLAG_SURFACE
115#define LFLAG_UNDERGROUND       img_SFLAG_UNDERGROUND
116#define LFLAG_EXPORTED          img_SFLAG_EXPORTED
117#define LFLAG_FIXED             img_SFLAG_FIXED
118#define LFLAG_ENTRANCE          0x100
119#define LFLAG_HIGHLIGHTED       0x200
120
121class LabelPlotCmp;
122
123class LabelInfo {
124    friend class MainFrm;
125    friend class GfxCore;
126    friend class LabelPlotCmp;
127    Double x, y, z;
128    wxString text;
129    int flags;
130    wxTreeItemId tree_id;
131
132public:
133    Double GetX() const { return x; }
134    Double GetY() const { return y; }
135    Double GetZ() const { return z; }
136
137    wxString GetText() const { return text; }
138
139    bool IsEntrance() const { return (flags & LFLAG_ENTRANCE) != 0; }
140    bool IsFixedPt() const { return (flags & LFLAG_FIXED) != 0; }
141    bool IsExportedPt() const { return (flags & LFLAG_EXPORTED) != 0; }
142    bool IsUnderground() const { return (flags & LFLAG_UNDERGROUND) != 0; }
143    bool IsSurface() const { return (flags & LFLAG_SURFACE) != 0; }
144    bool IsHighLighted() const { return (flags & LFLAG_HIGHLIGHTED) != 0; }
145};
146
147class MainFrm : public wxFrame {
148    wxFileHistory m_history;
149public: // FIXME: just public for workaround bodge in
150        // wxSplitterWindow::OnSplitterDClick
151    int m_SashPosition;
152private:
153    list<PointInfo*>* m_Points;
154    list<LabelInfo*> m_Labels;
155    Double m_XExt;
156    Double m_YExt;
157    Double m_ZExt;
158    Double m_XMin;
159    Double m_YMin;
160    Double m_ZMin;
161    int m_NumLegs;
162    int m_NumPoints;
163    int m_NumCrosses;
164    int m_NumExtraLegs;
165    GfxCore* m_Gfx;
166    wxPen* m_Pens;
167    wxBrush* m_Brushes;
168    int m_NumEntrances;
169    int m_NumFixedPts;
170    int m_NumExportedPts;
171    wxSplitterWindow* m_Splitter;
172    wxPanel* m_Panel;
173    AvenTreeCtrl* m_Tree;
174    wxTreeItemId m_TreeRoot;
175    wxTextCtrl* m_FindBox;
176    wxStaticText* m_MousePtr;
177    wxStaticText* m_Coords;
178    wxStaticText* m_StnCoords;
179    wxStaticText* m_StnName;
180    wxStaticText* m_StnAlt;
181    wxStaticText* m_Dist1;
182    wxStaticText* m_Dist2;
183    wxStaticText* m_Dist3;
184    wxStaticText* m_Found;
185    wxCheckBox* m_RegexpCheckBox;
186    wxString m_File;
187    wxString m_Title, m_DateStamp;
188    int separator; // character separating survey levels (often '.')
189
190    struct {
191        Double x, y, z;
192    } m_Offsets;
193
194    wxPageSetupData m_pageSetupData;
195    wxPrintData m_printData;
196
197    wxString icon_path;
198
199    void SetTreeItemColour(LabelInfo* label);
200    void FillTree();
201    void ClearPointLists();
202    bool LoadData(const wxString& file, wxString prefix = "");
203    void SortIntoDepthBands(list<PointInfo*>& points);
204    void IntersectLineWithPlane(Double x0, Double y0, Double z0,
205                                Double x1, Double y1, Double z1,
206                                Double z, Double& x, Double& y);
207    Double GetDepthBoundaryBetweenBands(int a, int b);
208    int GetDepthColour(Double z);
209    void CentreDataset(Double xmin, Double ymin, Double zmin);
210
211    wxString GetTabMsg(int key) {
212        wxString x(msg(key)); x.Replace("##", "\t"); x.Replace("@", "&"); return x;
213    }
214
215    void InitialisePensAndBrushes();
216    void CreateMenuBar();
217    void CreateToolBar();
218    void CreateSidePanel();
219
220public:
221    MainFrm(const wxString& title, const wxPoint& pos, const wxSize& size);
222    ~MainFrm();
223
224    void OnMRUFile(wxCommandEvent& event);
225    void OpenFile(const wxString& file, wxString survey = "", bool delay = false);
226    void OnFileOpenTerrainUpdate(wxUpdateUIEvent& event);
227
228    void OnFind(wxCommandEvent& event);
229    void OnHide(wxCommandEvent& event);
230
231    void OnOpen(wxCommandEvent& event);
232    void OnFileOpenTerrain(wxCommandEvent& event);
233    void OnPrint(wxCommandEvent& event);
234    void OnPageSetup(wxCommandEvent& event);
235    void OnExport(wxCommandEvent& event);
236    void OnQuit(wxCommandEvent& event);
237
238    void OnAbout(wxCommandEvent& event);
239    void OnClose(wxCloseEvent&);
240
241    void OnSetFocus(wxFocusEvent &) { if (m_Gfx) m_Gfx->SetFocus(); }
242
243    void OnPrintUpdate(wxUpdateUIEvent &ui) { ui.Enable(!m_File.empty()); }
244    void OnExportUpdate(wxUpdateUIEvent &ui) { ui.Enable(!m_File.empty()); }
245
246    // temporary bodges until event handling problem is sorted out:
247    void OnDefaultsUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnDefaultsUpdate(event); }
248    void OnPlanUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnPlanUpdate(event); }
249    void OnElevationUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnElevationUpdate(event); }
250    void OnDisplayOverlappingNamesUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnDisplayOverlappingNamesUpdate(event); }
251    void OnShowCrossesUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnShowCrossesUpdate(event); }
252    void OnShowEntrancesUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnShowEntrancesUpdate(event); }
253    void OnShowFixedPtsUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnShowFixedPtsUpdate(event); }
254    void OnShowExportedPtsUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnShowExportedPtsUpdate(event); }
255    void OnShowStationNamesUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnShowStationNamesUpdate(event); }
256    void OnShowSurveyLegsUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnShowSurveyLegsUpdate(event); }
257    void OnShowSurfaceUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnShowSurfaceUpdate(event); }
258    void OnShowSurfaceDepthUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnShowSurfaceDepthUpdate(event); }
259    void OnShowSurfaceDashedUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnShowSurfaceDashedUpdate(event); }
260    void OnMoveEastUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnMoveEastUpdate(event); }
261    void OnMoveNorthUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnMoveNorthUpdate(event); }
262    void OnMoveSouthUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnMoveSouthUpdate(event); }
263    void OnMoveWestUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnMoveWestUpdate(event); }
264    void OnStartRotationUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnStartRotationUpdate(event); }
265    void OnToggleRotationUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnToggleRotationUpdate(event); }
266    void OnStopRotationUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnStopRotationUpdate(event); }
267    void OnReverseControlsUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnReverseControlsUpdate(event); }
268    void OnSlowDownUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnSlowDownUpdate(event); }
269    void OnSpeedUpUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnSpeedUpUpdate(event); }
270    void OnStepOnceAnticlockwiseUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnStepOnceAnticlockwiseUpdate(event); }
271    void OnStepOnceClockwiseUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnStepOnceClockwiseUpdate(event); }
272    void OnHigherViewpointUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnHigherViewpointUpdate(event); }
273    void OnLowerViewpointUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnLowerViewpointUpdate(event); }
274    void OnShiftDisplayDownUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnShiftDisplayDownUpdate(event); }
275    void OnShiftDisplayLeftUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnShiftDisplayLeftUpdate(event); }
276    void OnShiftDisplayRightUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnShiftDisplayRightUpdate(event); }
277    void OnShiftDisplayUpUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnShiftDisplayUpUpdate(event); }
278    void OnZoomInUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnZoomInUpdate(event); }
279    void OnZoomOutUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnZoomOutUpdate(event); }
280    void OnToggleScalebarUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnToggleScalebarUpdate(event); }
281    void OnToggleDepthbarUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnToggleDepthbarUpdate(event); }
282    void OnViewCompassUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnViewCompassUpdate(event); }
283    void OnViewGridUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnViewGridUpdate(event); }
284    void OnViewClinoUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnViewClinoUpdate(event); }
285    void OnReverseDirectionOfRotationUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnReverseDirectionOfRotationUpdate(event); }
286    void OnCancelDistLineUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnCancelDistLineUpdate(event); }
287    void OnIndicatorsUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnIndicatorsUpdate(event); }
288
289    void OnDefaults(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnDefaults(); }
290    void OnPlan(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnPlan(); }
291    void OnElevation(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnElevation(); }
292    void OnDisplayOverlappingNames(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnDisplayOverlappingNames(); }
293    void OnShowCrosses(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnShowCrosses(); }
294    void OnShowEntrances(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnShowEntrances(); }
295    void OnShowFixedPts(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnShowFixedPts(); }
296    void OnShowExportedPts(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnShowExportedPts(); }
297    void OnShowStationNames(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnShowStationNames(); }
298    void OnShowSurveyLegs(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnShowSurveyLegs(); }
299    void OnShowSurface(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnShowSurface(); }
300    void OnShowSurfaceDepth(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnShowSurfaceDepth(); }
301    void OnShowSurfaceDashed(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnShowSurfaceDashed(); }
302    void OnMoveEast(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnMoveEast(); }
303    void OnMoveNorth(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnMoveNorth(); }
304    void OnMoveSouth(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnMoveSouth(); }
305    void OnMoveWest(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnMoveWest(); }
306    void OnStartRotation(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnStartRotation(); }
307    void OnToggleRotation(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnToggleRotation(); }
308    void OnStopRotation(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnStopRotation(); }
309    void OnReverseControls(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnReverseControls(); }
310    void OnSlowDown(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnSlowDown(); }
311    void OnSpeedUp(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnSpeedUp(); }
312    void OnStepOnceAnticlockwise(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnStepOnceAnticlockwise(); }
313    void OnStepOnceClockwise(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnStepOnceClockwise(); }
314    void OnHigherViewpoint(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnHigherViewpoint(); }
315    void OnLowerViewpoint(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnLowerViewpoint(); }
316    void OnShiftDisplayDown(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnShiftDisplayDown(); }
317    void OnShiftDisplayLeft(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnShiftDisplayLeft(); }
318    void OnShiftDisplayRight(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnShiftDisplayRight(); }
319    void OnShiftDisplayUp(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnShiftDisplayUp(); }
320    void OnZoomIn(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnZoomIn(); }
321    void OnZoomOut(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnZoomOut(); }
322    void OnToggleScalebar(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnToggleScalebar(); }
323    void OnToggleDepthbar(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnToggleDepthbar(); }
324    void OnViewCompass(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnViewCompass(); }
325    void OnViewClino(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnViewClino(); }
326    void OnViewGrid(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnViewGrid(); }
327    void OnReverseDirectionOfRotation(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnReverseDirectionOfRotation(); }
328    void OnCancelDistLine(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnCancelDistLine(); }
329    // end of horrible bodges
330
331    void OnToggleMetric(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnToggleMetric(); }
332    void OnToggleDegrees(wxCommandEvent&) { if (m_Gfx) m_Gfx->OnToggleDegrees(); }
333
334    void OnToggleMetricUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnToggleMetricUpdate(event); }
335    void OnToggleDegreesUpdate(wxUpdateUIEvent& event) { if (m_Gfx) m_Gfx->OnToggleDegreesUpdate(event); }
336
337    void OnViewSidePanelUpdate(wxUpdateUIEvent& event);
338    void OnViewSidePanel(wxCommandEvent& event);
339    void ToggleSidePanel();
340
341    Double GetXExtent() const { return m_XExt; }
342    Double GetYExtent() const { return m_YExt; }
343    Double GetZExtent() const { return m_ZExt; }
344    Double GetXMin() const { return m_XMin; }
345    Double GetYMin() const { return m_YMin; }
346    Double GetYMax() const { return m_YMin + m_YExt; }
347    Double GetZMin() const { return m_ZMin; }
348    Double GetZMax() const { return m_ZMin + m_ZExt; }
349
350    int GetNumLegs() const { return m_NumLegs; }
351    int GetNumPoints() const { return m_NumPoints; }
352    int GetNumCrosses() const { return m_NumCrosses; }
353
354    int GetNumDepthBands() const { return NUM_DEPTH_COLOURS; }
355
356    wxPen GetPen(int band) const {
357        assert(band >= 0 && band < NUM_DEPTH_COLOURS);
358        return m_Pens[band];
359    }
360
361    wxBrush GetBrush(int band) const {
362        assert(band >= 0 && band < NUM_DEPTH_COLOURS);
363        return m_Brushes[band];
364    }
365
366    void GetColour(int band, Double& r, Double& g, Double& b) const;
367
368    wxPen GetSurfacePen() const { return m_Pens[NUM_DEPTH_COLOURS]; }
369
370    void SelectTreeItem(LabelInfo* label);
371    void ClearTreeSelection();
372
373    int GetNumFixedPts() const { return m_NumFixedPts; }
374    int GetNumExportedPts() const { return m_NumExportedPts; }
375    int GetNumEntrances() const { return m_NumEntrances; }
376
377    void ClearCoords();
378    void SetCoords(Double x, Double y);
379    void SetAltitude(Double z);
380
381    Double GetXOffset() const { return m_Offsets.x; }
382    Double GetYOffset() const { return m_Offsets.y; }
383    Double GetZOffset() const { return m_Offsets.z; }
384
385    void SetMouseOverStation(LabelInfo* label);
386
387    list<PointInfo*>::iterator GetPointsNC(int band) const {
388        assert(band >= 0 && band < NUM_DEPTH_COLOURS);
389        return m_Points[band].begin();
390    }
391
392    list<PointInfo*>::iterator GetPointsEndNC(int band) const {
393        assert(band >= 0 && band < NUM_DEPTH_COLOURS);
394        return m_Points[band].end();
395    }
396
397    list<PointInfo*>::const_iterator GetPoints(int band) const {
398        assert(band >= 0 && band < NUM_DEPTH_COLOURS);
399        return m_Points[band].begin();
400    }
401
402    list<PointInfo*>::const_iterator GetPointsEnd(int band) const {
403        assert(band >= 0 && band < NUM_DEPTH_COLOURS);
404        return m_Points[band].end();
405    }
406
407    list<LabelInfo*>::const_iterator GetLabels() const {
408        return m_Labels.begin();
409    }
410
411    list<LabelInfo*>::const_iterator GetLabelsEnd() const {
412        return m_Labels.end();
413    }
414
415    list<LabelInfo*>::const_reverse_iterator GetRevLabels() const {
416        return m_Labels.rbegin();
417    }
418
419    list<LabelInfo*>::const_reverse_iterator GetRevLabelsEnd() const {
420        return m_Labels.rend();
421    }
422
423    void ShowInfo(const LabelInfo *label);
424    void DisplayTreeInfo(const wxTreeItemData* data);
425    void TreeItemSelected(wxTreeItemData* data);
426    wxPageSetupData * GetPageSetupData() { return &m_pageSetupData; }
427
428private:
429    DECLARE_EVENT_TABLE()
430};
431
432#endif
Note: See TracBrowser for help on using the repository browser.