]> Creatis software - creaMaracasVisu.git/blob - lib/maracasVisuLib/src/interface/wxWindows/widgets/PlaneDirectionViewer.h
install, doxy and direction
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / PlaneDirectionViewer.h
1 #ifndef _PlaneDirectionViewer_H_
2 #define _PlaneDirectionViewer_H_
3
4 #include <math.h>
5
6 #include <iostream>
7 #include <vector>
8
9 #include <vtkRenderer.h>
10
11 #include <wx/wx.h>
12 #include "PlaneDirectionViewerPanel.h"
13 #include "PlaneDirectionManager.h"
14 #include "marTypes.h"
15
16 class  creaMaracasVisu_EXPORT PlaneDirectionViewer : public wxPanel  {
17
18 public:
19         PlaneDirectionViewer(wxWindow* parent, int radio, double colour[3], int opacity);       
20         ~PlaneDirectionViewer();        
21
22         void SetRenderer(vtkRenderer* render);
23         void SetVectors( std::vector<double> lstPointsx, std::vector<double> lstPointsy, std::vector<double> lstPointsz);
24
25         void UpdateDirections() throw (std::exception);
26
27         static PlaneDirectionViewer* getInstance(wxWindow* parent,int radio, double colour[3], int opacity);
28
29         static PlaneDirectionViewer* getInstance();
30         
31         void addRemoveActor(int index, bool addremove);
32
33         void changeColor(int index,double r,double g,double b);
34
35         void WriteInformation(std::string filename,double* spc=NULL);
36
37         void SetArrowSize(int arrowsize);
38 private:
39         static PlaneDirectionViewer* instance;
40         PlaneDirectionManager* manager;
41         std::vector<PlaneDirectionViewerPanel*> viewdata;
42 };
43
44 #endif /*PlanesOperations_H_*/