X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FmaracasVisuLib%2Fsrc%2Finterface%2FwxWindows%2Fwidgets%2FmanualContour%2FmanualViewPoint.h;h=2ee3c3cd9fb311065f5a79bb6b0b26244faff4a3;hb=2725f81fc97c9faa92749159bdbaf9cedeef7af4;hp=b8f3f4e424a182cedea063c473e6aee3fc312179;hpb=414da1a291ff4c9d9a946536d3d219e4b5f9e6c2;p=creaMaracasVisu.git diff --git a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewPoint.h b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewPoint.h index b8f3f4e..2ee3c3c 100644 --- a/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewPoint.h +++ b/lib/maracasVisuLib/src/interface/wxWindows/widgets/manualContour/manualViewPoint.h @@ -14,8 +14,6 @@ #include #include - - #include #include #include @@ -23,9 +21,6 @@ #include "wxVTKRenderWindowInteractor.h" - -//-- - #include #include "wxVtkBaseView.h" #include "marTypes.h" @@ -35,35 +30,99 @@ class manualViewPoint{ public: -// static int range; - manualViewPoint(wxVtkBaseView *wxvtkbaseview); - ~manualViewPoint(); + virtual ~manualViewPoint(); + + virtual manualViewPoint * Clone(); + void CopyAttributesTo( manualViewPoint *cloneObject ); void SetSelected(bool selected); void SetPosibleSelected(bool posibleSelected); bool GetSelected(); bool GetPosibleSelected(); void DeleteVtkObjects(); vtkActor* CreateVtkPointActor(); + + // + // Sets the x,y,z position to the actual point. Establishes a range of the points respect + // to the final coordinate. + // @param x - double + // @param y - double + // @param z - double + // @param range - double + // void SetPositionXY(double x, double y, double range, double posZ); + + // + // Get ViewPoint VtkActor + // @return vtkActor* + // vtkActor* GetVtkActor(); + + // + // Updates the color and width of the actual point if the VTK Actor has been created + // void UpdateColorActor(); + + // + // Updates the point normal color of the actual point. + // + void UpdateColorActor(double nR, double nG, double nB); + void GetSpacing(double spc[3]); void SetSpacing(double spc[3]); void SetWidthLine( double width); private: + + // + // Is point selected + // bool _selected; bool _posibleSelected; + vtkPoints *_pts; + + // + // Point VTK PolyData object + // vtkPolyData *_pd; + + // + // Point VTK Actor + // vtkActor *_pointVtkActor; + + // + // Point VTK PolyData mapper + // vtkPolyDataMapper *_bboxMapper; + + // + // Reference to VtkBaseView + // wxVtkBaseView *_wxvtkbaseview; + + // + // Line Width (def=1) + // double _widthline; protected: - double _spc[3]; + + // + // Point spacing (def=1) + // + double _spc[3]; + + // Point normal color + double _colorNormal_r; + double _colorNormal_g; + double _colorNormal_b; + + // Posible selected point color + double _colorPosibleSelected_r; + double _colorPosibleSelected_g; + double _colorPosibleSelected_b; }; #endif // manualViewPoint_h