]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/ViewShowNPoints.h
468c53eae6854a9d7215dce21a2b55f5cdd850d0
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / ViewShowNPoints.h
1
2 #ifndef __ViewShowNPoints_h_INCLUDED__
3 #define __ViewShowNPoints_h_INCLUDED__
4
5
6 #include "vtkActor.h"
7 #include <vtkTextActor3D.h>
8 #include <vtkRenderer.h>
9 #include <vtkSphereSource.h>
10 #include "vtkProperty.h"
11 #include "vtkPolyDataMapper.h"
12 #include "vtkRenderWindow.h"
13 #include <vtkTextProperty.h>
14
15 #include "ModelShowNPoints.h"
16
17 class ViewShowNPoints
18   {
19         public:
20           ViewShowNPoints(ModelShowNPoints* modelShowNPoints);
21           ~ViewShowNPoints();
22       ModelShowNPoints* GetModelShowNPoints();
23       void SetModelShowNPoints(ModelShowNPoints* modelShowNPoints);
24       void RefreshPoint(int id);
25
26       void RefreshEachPoint();
27       void RefreshPoints();
28       void AddVtkPoint();
29       void AddPoint();
30       void Render();
31       void ErasePoint(int id);
32       
33       std::vector<vtkActor*>            lstActorsSphere;//NTU changed from prop3D to Actor
34       std::vector<vtkTextActor3D*>      lstActorsText;
35       std::vector<vtkSphereSource*>     lstSourceSphere;
36       std::vector<double>               mcolour;
37       double                            mopacity;
38       double                            ratioRadio;
39       vtkRenderer*                      renderer;
40         private:
41       ModelShowNPoints*                 mmodelShowNPoints;
42   };
43
44 #endif // __ViewShowNPoints_h_INCLUDED__
45
46