PlaneDirectionViewer.h
Go to the documentation of this file.00001 #ifndef _PlaneDirectionViewer_H_
00002 #define _PlaneDirectionViewer_H_
00003
00004 #include <math.h>
00005
00006 #include <iostream>
00007 #include <vector>
00008
00009 #include <vtkRenderer.h>
00010
00011 #include <wx/wx.h>
00012 #include "PlaneDirectionViewerPanel.h"
00013 #include "PlaneDirectionManager.h"
00014 #include "marTypes.h"
00015
00016 class creaMaracasVisu_EXPORT PlaneDirectionViewer : public wxPanel {
00017
00018 public:
00019 PlaneDirectionViewer(wxWindow* parent, int radio, double colour[3], int opacity);
00020 ~PlaneDirectionViewer();
00021
00022 void SetRenderer(vtkRenderer* render);
00023 void SetVectors( std::vector<double> lstPointsx, std::vector<double> lstPointsy, std::vector<double> lstPointsz);
00024
00025 void UpdateDirections() throw (std::exception);
00026
00027 static PlaneDirectionViewer* getInstance(wxWindow* parent,int radio, double colour[3], int opacity);
00028
00029 static PlaneDirectionViewer* getInstance();
00030
00031 void addRemoveActor(int index, bool addremove);
00032
00033 void changeColor(int index,double r,double g,double b);
00034
00035 void WriteInformation(std::string filename,double* spc=NULL);
00036
00037 void SetArrowSize(int arrowsize);
00038 private:
00039 static PlaneDirectionViewer* instance;
00040 PlaneDirectionManager* manager;
00041 std::vector<PlaneDirectionViewerPanel*> viewdata;
00042 };
00043
00044 #endif