]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewPoint.h
*** empty log message ***
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / manualContour / manualViewPoint.h
1 #ifndef manualViewPoint_h
2 #define manualViewPoint_h
3
4 #include "vtkRenderWindow.h"
5
6 #include "vtkRenderer.h"
7 #include "vtkRenderWindowInteractor.h" //extremely important with VC++ don't remove !
8 #include "vtkCommand.h"
9 #include "vtkPolyData.h"
10 #include "vtkCellArray.h"
11 #include "vtkPolyDataMapper.h"
12 #include "vtkInteractorObserver.h"
13 #include "vtkInteractorStyleImage.h"
14 #include <vtkKochanekSpline.h> 
15
16 #include <vtkCellPicker.h> 
17
18
19 #include <vtkCamera.h> 
20 #include <vtkPolyLine.h>
21 #include <vtkDataSetMapper.h>
22 #include <vtkUnstructuredGrid.h>
23
24 #include "wxVTKRenderWindowInteractor.h"
25
26
27 //--
28
29 #include <vector>
30 #include "wxVtkBaseView.h"
31 #include "marTypes.h"
32
33 //--------------------------------------------------------
34
35 class manualViewPoint{
36 public:
37
38 //      static int range;
39
40         manualViewPoint(wxVtkBaseView *wxvtkbaseview);
41         ~manualViewPoint();
42         void            SetSelected(bool selected);
43         void            SetPosibleSelected(bool posibleSelected);
44         bool            GetSelected();
45         bool            GetPosibleSelected();
46         void            DeleteVtkObjects();
47         vtkActor*       CreateVtkPointActor();
48         void            SetPositionXY(double x, double y, double range, double posZ);
49         vtkActor*   GetVtkActor();
50         void            UpdateColorActor();     
51         void            GetSpacing(double spc[3]);
52         void            SetSpacing(double spc[3]);
53         void            SetWidthLine( double width);
54
55
56 private:
57         bool                            _selected;      
58         bool                            _posibleSelected;
59         vtkPoints                       *_pts;
60         vtkPolyData                     *_pd;
61         vtkActor                        *_pointVtkActor;
62         vtkPolyDataMapper       *_bboxMapper;
63         wxVtkBaseView           *_wxvtkbaseview;
64         double                          _widthline;
65 protected:
66         double                          _spc[3];
67 };
68
69 #endif // manualViewPoint_h