]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/wxWidgetMesure2D_Plane.h
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / wxWidgetMesure2D_Plane.h
1 #ifndef WXWIDGETMESURE2D_PLANE_H_
2 #define WXWIDGETMESURE2D_PLANE_H_
3
4 #include "wxWidgetMesure2D.h"
5 #include "wxVtk2DBaseView.h"
6
7 class wxWidgetMesure2D_Plane : public wxWidgetMesure2D
8 {
9 public:
10          wxWidgetMesure2D_Plane(wxWindow *parent);
11          ~wxWidgetMesure2D_Plane();
12         void                    OnActiveLine(wxCommandEvent& event);
13         void                    OnActiveCirlcle(wxCommandEvent& event);
14         virtual void    ConfigureA(wxVtk2DBaseView *wxvtk2Dbaseview);
15         void                    ConfigureCircleLine();
16         void                    CircleLine();
17
18 protected:
19         virtual wxWindow                *CreateWin1a(wxWindow *parent);
20 private:
21         wxCheckBox                              *_cb_line; 
22         wxCheckBox                              *_cb_circle; 
23
24         // Circle 1
25         vtkPoints                                       *_ptsCircle1;
26         vtkActor                                        *_circle1Actor;
27         vtkPolyDataMapper                       *_circle1Mapper;
28     vtkPolyData                                 *_pdCircle1;
29         // Circle 2
30         vtkPoints                                       *_ptsCircle2;
31         vtkActor                                        *_circle2Actor;
32         vtkPolyDataMapper                       *_circle2Mapper;
33     vtkPolyData                                 *_pdCircle2;
34         // line reference 1
35         vtkPoints                                       *_ptsLineRef1;
36         vtkActor                                        *_lineRef1Actor;
37         vtkPolyDataMapper                       *_lineRef1Mapper;
38     vtkPolyData                                 *_pdLineRef1;
39         // line reference 2
40         vtkPoints                                       *_ptsLineRef2;
41         vtkActor                                        *_lineRef2Actor;
42         vtkPolyDataMapper                       *_lineRef2Mapper;
43     vtkPolyData                                 *_pdLineRef2;
44
45         void SetVisibleCircle( bool ok );
46
47 };
48
49 #endif /*WXWIDGETMESURE2D_PLANE_H_*/