]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/ViewShowNPoints.h
168d86a15ef24c7016befbb100abb0e9bd599194
[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       void RefreshPoints();
26       void AddVtkPoint();
27       void AddPoint();
28       void Render();
29       void ErasePoint(int id);
30       
31       std::vector<vtkActor*>            lstActorsSphere;//NTU changed from prop3D to Actor
32       std::vector<vtkTextActor3D*>      lstActorsText;
33       std::vector<vtkSphereSource*>     lstSourceSphere;
34       std::vector<double>               mcolour;
35       double                            mopacity;
36       vtkRenderer*                      renderer;
37         private:
38       ModelShowNPoints*                 mmodelShowNPoints;
39   };
40
41 #endif // __ViewShowNPoints_h_INCLUDED__
42
43