Go to the documentation of this file.
34 #ifndef vtkFinitePlaneRepresentation_h
35 #define vtkFinitePlaneRepresentation_h
37 #include "vtkInteractionWidgetsModule.h"
102 vtkGetMacro(Tubing,
bool);
114 vtkGetMacro(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);
239 double LastEventPosition[3];
254 double PreviousNormal[3];
map vtkPolyData to graphics primitives
void SetV1(double x, double y)
Set/Get the v1 vector of the plane.
virtual void WidgetInteraction(double e[2])
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
virtual double * GetBounds()
Methods to make this class behave as a vtkProp.
virtual void CreateDefaultProperties()
vtkFinitePlaneRepresentation()
represent the vtkFinitePlaneWidget.
vtkPolyData * PlanePolyData
vtkCellPicker * HandlePicker
virtual void BuildRepresentation()
void SetDrawPlane(bool plane)
Enable/disable the drawing of the plane.
void MovePoint2(double *p1, double *p2)
virtual int ComputeInteractionState(int X, int Y, int modify=0)
void SetHighlightNormal(int highlight)
vtkPolyDataMapper * PlaneMapper
void TranslateOrigin(double *p1, double *p2)
vtkProperty * OriginHandleProperty
vtkProperty * SelectedPlaneProperty
vtkProperty * V1HandleProperty
void Rotate(int X, int Y, double *p1, double *p2, double *vpn)
~vtkFinitePlaneRepresentation()
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.
vtkPolyDataMapper * ConeMapper
vtkProperty * SelectedNormalProperty
vtkProperty * PlaneProperty
create a polygonal sphere centered at the origin
void SetHighlightHandle(vtkProp *prop)
virtual void PlaceWidget(double bounds[6])
These are methods that satisfy vtkWidgetRepresentation's API.
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
virtual void RegisterPickers()
Register internal Pickers in the Picking Manager.
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
abstract specification for Viewports
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkConeSource * ConeSource2
vtkProperty * SelectedHandleProperty
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
abstract superclass for all actors, volumes and annotations
vtkProperty * V2HandleProperty
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void SetNormal(double x[3])
implicit function for a bounding box
vtkProperty * NormalProperty
vtkSphereSource * OriginGeometry
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void Push(double *p1, double *p2)
vtkPolyDataMapper * V2Mapper
vtkPolyDataMapper * LineMapper2
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkPolyDataMapper * OriginMapper
virtual void ReleaseGraphicsResources(vtkWindow *)
Methods supporting, and required by, the rendering process.
void SetOrigin(double x[3])
represent surface properties of a geometric object
vtkConeSource * ConeSource
vtkSphereSource * V2Geometry
vtkPolyDataMapper * V1Mapper
ray-cast cell picker for all kinds of Prop3Ds
vtkPolyDataMapper * LineMapper
void SetOrigin(double x, double y, double z)
Set/Get the origin of the plane.
virtual void StartWidgetInteraction(double e[2])
vtkPolyDataMapper * ConeMapper2
void SetV2(double x, double y)
Set/Get the v2 vector of the plane.