Go to the documentation of this file.
34 #ifndef vtkFinitePlaneRepresentation_h
35 #define vtkFinitePlaneRepresentation_h
37 #include "vtkInteractionWidgetsModule.h"
101 vtkSetMacro(Tubing,
bool);
102 vtkGetMacro(Tubing,
bool);
103 vtkBooleanMacro(Tubing,
bool);
114 vtkGetMacro(DrawPlane,
bool);
115 vtkBooleanMacro(DrawPlane,
bool);
150 vtkSetClampMacro(InteractionState,
int, Outside, Pushing);
158 vtkGetVector3Macro(Origin,
double);
176 vtkGetVector2Macro(V1,
double);
185 vtkGetVector2Macro(V2,
double);
194 vtkGetMacro(RepresentationState,
int);
209 void Push(
double *p1,
double *p2);
210 void Rotate(
int X,
int Y,
double *p1,
double *p2,
double *vpn);
241 double LastEventPosition[3];
256 double PreviousNormal[3];
map vtkPolyData to graphics primitives
void SetV1(double x, double y)
Set/Get the v1 vector of the plane.
virtual void CreateDefaultProperties()
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
vtkFinitePlaneRepresentation()
represent the vtkFinitePlaneWidget.
vtkPolyData * PlanePolyData
vtkCellPicker * HandlePicker
void SetDrawPlane(bool plane)
Enable/disable the drawing of the plane.
void MovePoint2(double *p1, double *p2)
void SetHighlightNormal(int highlight)
vtkPolyDataMapper * PlaneMapper
void PlaceWidget(double bounds[6]) override
These are methods that satisfy vtkWidgetRepresentation's API.
void TranslateOrigin(double *p1, double *p2)
vtkProperty * OriginHandleProperty
double * GetBounds() override
Get the bounds for this Prop as (Xmin,Xmax,Ymin,Ymax,Zmin,Zmax).
vtkProperty * SelectedPlaneProperty
vtkProperty * V1HandleProperty
void Rotate(int X, int Y, double *p1, double *p2, double *vpn)
window superclass for vtkRenderWindow
void MovePoint1(double *p1, double *p2)
vtkTubeFilter * EdgesTuber
virtual void SizeHandles()
void SetNormal(double x, double y, double z)
Set/Get the normal to the plane.
filter that generates tubes around lines
vtkPolyDataMapper * EdgesMapper
virtual void SetRepresentationState(int)
Sets the visual appearance of the representation based on the state it is in.
vtkTypeBool HasTranslucentPolygonalGeometry() override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkPolyDataMapper * ConeMapper
vtkProperty * SelectedNormalProperty
vtkProperty * PlaneProperty
create a polygonal sphere centered at the origin
void SetHighlightHandle(vtkProp *prop)
void SetHandles(bool handles)
Switches handles (the spheres) on or off by manipulating the underlying actor visibility.
vtkTransform * TransformRotation
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
vtkLineSource * LineSource
vtkSphereSource * V1Geometry
extract boundary, non-manifold, and/or sharp edges from polygonal data
void SetHighlightPlane(int highlight)
vtkLineSource * LineSource2
void GetPolyData(vtkPolyData *pd)
Grab the polydata that defines the plane.
static vtkFinitePlaneRepresentation * New()
Instantiate the class.
virtual void HandlesOff()
create a line defined by two end points
int ComputeInteractionState(int X, int Y, int modify=0) override
abstract specification for Viewports
vtkConeSource * ConeSource2
vtkProperty * SelectedHandleProperty
abstract superclass for all actors, volumes and annotations
~vtkFinitePlaneRepresentation() override
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkProperty * V2HandleProperty
void SetNormal(double x[3])
implicit function for a bounding box
vtkProperty * NormalProperty
vtkSphereSource * OriginGeometry
void Push(double *p1, double *p2)
vtkPolyDataMapper * V2Mapper
int RenderOpaqueGeometry(vtkViewport *) override
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkPolyDataMapper * LineMapper2
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkPolyDataMapper * OriginMapper
void WidgetInteraction(double e[2]) override
void SetOrigin(double x[3])
represent surface properties of a geometric object
void RegisterPickers() override
Register internal Pickers in the Picking Manager.
vtkConeSource * ConeSource
vtkSphereSource * V2Geometry
vtkPolyDataMapper * V1Mapper
void BuildRepresentation() override
ray-cast cell picker for all kinds of Prop3Ds
void ReleaseGraphicsResources(vtkWindow *) override
Methods supporting, and required by, the rendering process.
void StartWidgetInteraction(double e[2]) override
vtkPolyDataMapper * LineMapper
void SetOrigin(double x, double y, double z)
Set/Get the origin of the plane.
vtkPolyDataMapper * ConeMapper2
void SetV2(double x, double y)
Set/Get the v2 vector of the plane.