#include <vtkKochanekSpline.h>
#include <vtkCellPicker.h>
-
-
#include <vtkCamera.h>
#include <vtkPolyLine.h>
#include <vtkDataSetMapper.h>
#include "wxVTKRenderWindowInteractor.h"
-
-//--
-
#include <vector>
#include "wxVtkBaseView.h"
#include "marTypes.h"
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