X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Fkernel%2FPlaneDirectionManagerData.h;fp=lib%2FmaracasVisuLib%2Fsrc%2Fkernel%2FPlaneDirectionManagerData.h;h=64637e42aef489088ab7915c1f7eb59c2c9b6d67;hb=e42ecf415793e6f85e5de98b41385fe53b6d00e0;hp=0000000000000000000000000000000000000000;hpb=95c30bf2de4ceb066887e941918b1fcb43575455;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/kernel/PlaneDirectionManagerData.h b/lib/maracasVisuLib/src/kernel/PlaneDirectionManagerData.h new file mode 100644 index 0000000..64637e4 --- /dev/null +++ b/lib/maracasVisuLib/src/kernel/PlaneDirectionManagerData.h @@ -0,0 +1,78 @@ +#ifndef PlaneDirectionManagerData_H_ +#define PlaneDirectionManagerData_H_ + +#include + +#include "PlanesOperations.h" + + +#include + +#include +//#include +#include +#include +#include +#include +#include + + +class PlaneDirectionManagerData : public PlanesOperations { + +public: + PlaneDirectionManagerData(int radio, double colour[3], int opacity); + ~PlaneDirectionManagerData(); + + void setPoint0(double x,double y,double z){ + p0[0] = x; + p0[1] = y; + p0[2] = z; + } + void setPoint1(double x,double y,double z){ + p1[0] = x; + p1[1] = y; + p1[2] = z; + } + void setPoint2(double x,double y,double z){ + p2[0] = x; + p2[1] = y; + p2[2] = z; + } + double* getPoint0(){ + return p0; + } + double* getPoint1(){ + return p1; + } + double* getPoint2(){ + return p2; + } + + void UpdateActor(); + + vtkProp3D* GetActor(); + + double* GetDirection(){ + return _dir; + } + + void ChangeColour(double r,double g,double b); + +private: + double* p0; + double* p1; + double* p2; + int _radio; + double* _colour; + int _opacity; + double* _dir; + + vtkArrowSource *_vtkarrow; + vtkPolyDataMapper *_arrowMapper; + vtkActor *_arrowActor; + + double* GetMidPoint(); + +}; + +#endif /*PlaneDirectionManagerData_H_*/