28 #ifndef vtkCurveRepresentation_h
29 #define vtkCurveRepresentation_h
31 #include "vtkInteractionWidgetsModule.h"
45 #define VTK_PROJECTION_YZ 0
46 #define VTK_PROJECTION_XZ 1
47 #define VTK_PROJECTION_XY 2
48 #define VTK_PROJECTION_OBLIQUE 3
85 vtkGetMacro(ProjectToPlane,
int);
96 vtkGetMacro(ProjectionNormal,
int);
98 { this->SetProjectionNormal(0); }
100 { this->SetProjectionNormal(1); }
102 { this->SetProjectionNormal(2); }
104 { this->SetProjectionNormal(3); }
115 vtkGetMacro(ProjectionPosition,
double);
150 vtkGetMacro(NumberOfHandles,
int);
172 vtkGetMacro(Closed,
int);
233 double LastEventPosition[3];
266 double LastPickPosition[3];
275 void Scale(
double *p1,
double *p2,
int X,
int Y);
277 void Spin(
double *p1,
double *p2,
double *vpn);
represents an object (geometry & properties) in a rendered scene
ray-cast cell picker for all kinds of Prop3Ds
vtkWidgetRepresentation base class for a widget that represents an curve that connects control points...
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void ProjectPointsToOrthoPlane()
vtkProperty * HandleProperty
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void EraseHandle(const int &)
void Translate(double *p1, double *p2)
void SetProjectionPosition(double position)
Set the position of poly line handles and points in terms of a plane's position.
void ProjectPointsToPlane()
virtual void WidgetInteraction(double e[2])
virtual double GetSummedLength()=0
Get the approximate vs.
vtkCellPicker * LinePicker
virtual int ComputeInteractionState(int X, int Y, int modify=0)
virtual double * GetBounds()
Methods to make this class behave as a vtkProp.
virtual vtkDoubleArray * GetHandlePositions()=0
vtkCellPicker * HandlePicker
virtual void StartWidgetInteraction(double e[2])
void Scale(double *p1, double *p2, int X, int Y)
void SetProjectionNormalToZAxes()
vtkSphereSource ** HandleGeometry
virtual double * GetHandlePosition(int handle)
void Spin(double *p1, double *p2, double *vpn)
virtual void SetNumberOfHandles(int npts)=0
Set/Get the number of handles for this widget.
void SetLineColor(double r, double g, double b)
Convenience method to set the line color.
void ProjectPointsToObliquePlane()
int HighlightHandle(vtkProp *prop)
void SetClosed(int closed)
Control whether the curve is open or closed.
void SetProjectionNormalToXAxes()
void CreateDefaultProperties()
virtual void RegisterPickers()
Register internal Pickers in the Picking Manager.
void SetPlaneSource(vtkPlaneSource *plane)
Set up a reference to a vtkPlaneSource that could be from another widget object, e....
virtual void InitializeHandles(vtkPoints *points)=0
Convenience method to allocate and set the handles from a vtkPoints instance.
void HighlightLine(int highlight)
~vtkCurveRepresentation()
void SetProjectionNormalToYAxes()
virtual void SetHandlePosition(int handle, double x, double y, double z)
Set/Get the position of the handles.
vtkPlaneSource * PlaneSource
vtkProperty * LineProperty
void SetProjectionNormalToOblique()
virtual int RenderOverlay(vtkViewport *)
vtkProperty * SelectedLineProperty
virtual void EndWidgetInteraction(double e[2])
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
int IsClosed()
Convenience method to determine whether the curve is closed in a geometric sense.
virtual void ReleaseGraphicsResources(vtkWindow *)
Methods supporting, and required by, the rendering process.
virtual void BuildRepresentation()=0
These are methods that satisfy vtkWidgetRepresentation's API.
virtual void GetHandlePosition(int handle, double xyz[3])
virtual void GetPolyData(vtkPolyData *pd)=0
Grab the polydata (including points) that defines the interpolating curve.
double ProjectionPosition
void MovePoint(double *p1, double *p2)
virtual void SizeHandles()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void SetHandlePosition(int handle, double xyz[3])
virtual void InsertHandleOnLine(double *pos)=0
vtkProperty * SelectedHandleProperty
dynamic, self-adjusting array of double
a simple class to control print indentation
create an array of quadrilaterals located in a plane
represent and manipulate 3D points
concrete dataset represents vertices, lines, polygons, and triangle strips
abstract superclass for all actors, volumes and annotations
represent surface properties of a geometric object
create a polygonal sphere centered at the origin
abstract specification for Viewports
window superclass for vtkRenderWindow
#define VTK_PROJECTION_YZ
#define VTK_PROJECTION_OBLIQUE
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.