1 #ifndef manualViewPoint_h
2 #define manualViewPoint_h
4 #include "vtkRenderWindow.h"
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>
16 #include <vtkCellPicker.h>
17 #include <vtkCamera.h>
18 #include <vtkPolyLine.h>
19 #include <vtkDataSetMapper.h>
20 #include <vtkUnstructuredGrid.h>
22 #include "wxVTKRenderWindowInteractor.h"
25 #include "wxVtkBaseView.h"
28 //--------------------------------------------------------
30 class manualViewPoint{
33 manualViewPoint(wxVtkBaseView *wxvtkbaseview);
34 virtual ~manualViewPoint();
36 virtual manualViewPoint * Clone();
37 void CopyAttributesTo( manualViewPoint *cloneObject );
38 void SetSelected(bool selected);
39 void SetPosibleSelected(bool posibleSelected);
41 bool GetPosibleSelected();
42 void DeleteVtkObjects();
43 vtkActor* CreateVtkPointActor();
46 // Sets the x,y,z position to the actual point. Establishes a range of the points respect
47 // to the final coordinate.
51 // @param range - double
53 void SetPositionXY(double x, double y, double range, double posZ);
56 // Get ViewPoint VtkActor
59 vtkActor* GetVtkActor();
62 // Updates the color and width of the actual point if the VTK Actor has been created
64 void UpdateColorActor();
67 // Updates the point normal color of the actual point.
69 void UpdateColorActor(double nR, double nG, double nB);
71 void GetSpacing(double spc[3]);
72 void SetSpacing(double spc[3]);
73 void SetWidthLine( double width);
82 bool _posibleSelected;
87 // Point VTK PolyData object
94 vtkActor *_pointVtkActor;
97 // Point VTK PolyData mapper
99 vtkPolyDataMapper *_bboxMapper;
102 // Reference to VtkBaseView
104 wxVtkBaseView *_wxvtkbaseview;
107 // Line Width (def=1)
113 // Point spacing (def=1)
117 // Point normal color
118 double _colorNormal_r;
119 double _colorNormal_g;
120 double _colorNormal_b;
122 // Posible selected point color
123 double _colorPosibleSelected_r;
124 double _colorPosibleSelected_g;
125 double _colorPosibleSelected_b;
128 #endif // manualViewPoint_h