#ifndef PlaneDirectionManager_H_ #define PlaneDirectionManager_H_ #include #include #include "PlaneDirectionManagerData.h" #include #include class PlaneDirectionManager { public: PlaneDirectionManager(int radio, double colour[3], int opacity); ~PlaneDirectionManager(); void SetRenderer(vtkRenderer* render); void SetVectors( std::vector lstPointsx, std::vector lstPointsy, std::vector lstPointsz); void UpdateDirections() throw (std::exception); std::vector GetPlanesData(){ return _vectdata; } void addRemoveActor(int index, bool addremove); void changeColor(int index,double r,double g,double b); PlaneDirectionManagerData* GetPlaneDirectionManagerData(int id); void WriteInformation(std::string filename, double* spc=NULL); void SetArrowSize(int arrowsize); private: std::vector _lstPointsx; std::vector _lstPointsy; std::vector _lstPointsz; std::vector _vectdata; void RemoveAllActorsFromIndex(int n=0)throw (std::exception); void UpdateVectors()throw (std::exception); void UpdateActors(); void AddActors(); vtkRenderer* _render; int _radio; double* _colour; int _opacity; }; #endif /*PlaneDirectionManager_H_*/