#ifndef manualViewPoint_h #define manualViewPoint_h #include "vtkRenderWindow.h" #include "vtkRenderer.h" #include "vtkRenderWindowInteractor.h" //extremely important with VC++ don't remove ! #include "vtkCommand.h" #include "vtkPolyData.h" #include "vtkCellArray.h" #include "vtkPolyDataMapper.h" #include "vtkInteractorObserver.h" #include "vtkInteractorStyleImage.h" #include #include #include #include #include #include #include "wxVTKRenderWindowInteractor.h" #include #include "wxVtkBaseView.h" #include "marTypes.h" //-------------------------------------------------------- class manualViewPoint{ public: manualViewPoint(wxVtkBaseView *wxvtkbaseview); ~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: // // 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