Go to the documentation of this file.
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
72 vtkSetMacro(InteractionState,
int);
97 vtkGetMacro(ProjectionNormal,
int);
99 { this->SetProjectionNormal(0); }
101 { this->SetProjectionNormal(1); }
103 { this->SetProjectionNormal(2); }
105 { this->SetProjectionNormal(3); }
116 vtkGetMacro(ProjectionPosition,
double);
151 vtkGetMacro(NumberOfHandles,
int);
239 double LastEventPosition[3];
273 double LastPickPosition[3];
280 void Scale(
double *p1,
double *p2,
int X,
int Y);
282 void Spin(
double *p1,
double *p2,
double *vpn);
represent and manipulate 3D points
void SetProjectionPosition(double position)
Set the position of poly line handles and points in terms of a plane's position.
void CreateDefaultProperties()
void Spin(double *p1, double *p2, double *vpn)
void SetProjectionNormalToYAxes()
void ProjectPointsToPlane()
void SetProjectionNormalToOblique()
virtual void SetNumberOfHandles(int npts)=0
Set/Get the number of handles for this widget.
#define VTK_PROJECTION_YZ
void SetPlaneSource(vtkPlaneSource *plane)
Set up a reference to a vtkPlaneSource that could be from another widget object, e....
vtkTypeBool HasTranslucentPolygonalGeometry() override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkSphereSource ** HandleGeometry
vtkCellPicker * LinePicker
vtkWidgetRepresentation base class for a widget that represents an curve that connects control points...
void ReleaseGraphicsResources(vtkWindow *) override
Methods supporting, and required by, the rendering process.
vtkProperty * SelectedHandleProperty
create an array of quadrilaterals located in a plane
void ProjectPointsToOrthoPlane()
void BuildRepresentation() override=0
These are methods that satisfy vtkWidgetRepresentation's API.
void WidgetInteraction(double e[2]) override
int RenderOpaqueGeometry(vtkViewport *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void EndWidgetInteraction(double e[2]) override
int HighlightHandle(vtkProp *prop)
void Scale(double *p1, double *p2, int X, int Y)
window superclass for vtkRenderWindow
#define VTK_PROJECTION_OBLIQUE
void ProjectPointsToObliquePlane()
double ProjectionPosition
void MovePoint(double *p1, double *p2)
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
void SetLineColor(double r, double g, double b)
Convenience method to set the line color.
create a polygonal sphere centered at the origin
vtkTypeBool IsClosed()
Convenience method to determine whether the curve is closed in a geometric sense.
represents an object (geometry & properties) in a rendered scene
virtual void PushHandle(double *pos)
int RenderOverlay(vtkViewport *) override
a simple class to control print indentation
void SetProjectionNormalToZAxes()
virtual void GetPolyData(vtkPolyData *pd)=0
Grab the polydata (including points) that defines the interpolating curve.
void SetClosed(vtkTypeBool closed)
Control whether the curve is open or closed.
virtual void SetHandlePosition(int handle, double x, double y, double z)
Set/Get the position of the handles.
virtual void GetHandlePosition(int handle, double xyz[3])
void RegisterPickers() override
Register internal Pickers in the Picking Manager.
abstract specification for Viewports
virtual void InitializeHandles(vtkPoints *points)=0
Convenience method to allocate and set the handles from a vtkPoints instance.
vtkProperty * HandleProperty
abstract superclass for all actors, volumes and annotations
void EraseHandle(const int &)
void HighlightLine(int highlight)
double * GetBounds() override
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkCellPicker * HandlePicker
void Translate(double *p1, double *p2)
virtual vtkDoubleArray * GetHandlePositions()=0
int ComputeInteractionState(int X, int Y, int modify=0) override
virtual void SetHandlePosition(int handle, double xyz[3])
virtual double * GetHandlePosition(int handle)
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkProperty * SelectedLineProperty
virtual void InsertHandleOnLine(double *pos)=0
vtkTypeBool ProjectToPlane
dynamic, self-adjusting array of double
represent surface properties of a geometric object
void StartWidgetInteraction(double e[2]) override
virtual void SizeHandles()
virtual double GetSummedLength()=0
Get the approximate vs.
vtkProperty * LineProperty
ray-cast cell picker for all kinds of Prop3Ds
void SetProjectionNormalToXAxes()
~vtkCurveRepresentation() override
vtkPlaneSource * PlaneSource
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.