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];
represents an object (geometry & properties) in a rendered scene
implicit function for a bounding box
ray-cast cell picker for all kinds of Prop3Ds
extract boundary, non-manifold, and/or sharp edges from polygonal data
represent the vtkFinitePlaneWidget.
vtkSphereSource * V2Geometry
vtkTransform * TransformRotation
void Rotate(int X, int Y, double *p1, double *p2, double *vpn)
vtkPolyDataMapper * OriginMapper
void SetHighlightNormal(int highlight)
virtual void StartWidgetInteraction(double e[2])
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
vtkPolyDataMapper * V2Mapper
void SetDrawPlane(bool plane)
Enable/disable the drawing of the plane.
vtkTubeFilter * EdgesTuber
virtual int ComputeInteractionState(int X, int Y, int modify=0)
vtkPolyDataMapper * ConeMapper
vtkProperty * OriginHandleProperty
virtual void CreateDefaultProperties()
vtkSphereSource * V1Geometry
void SetHighlightHandle(vtkProp *prop)
vtkProperty * V1HandleProperty
void SetOrigin(double x, double y, double z)
Set/Get the origin of the plane.
virtual void RegisterPickers()
Register internal Pickers in the Picking Manager.
vtkConeSource * ConeSource
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkProperty * NormalProperty
vtkProperty * SelectedNormalProperty
virtual void SetRepresentationState(int)
Sets the visual appearance of the representation based on the state it is in.
void SetNormal(double x, double y, double z)
Set/Get the normal to the plane.
void SetHighlightPlane(int highlight)
vtkPolyData * PlanePolyData
vtkPolyDataMapper * LineMapper
virtual double * GetBounds()
Methods to make this class behave as a vtkProp.
virtual void WidgetInteraction(double e[2])
vtkLineSource * LineSource
vtkPolyDataMapper * V1Mapper
void SetHandles(bool handles)
Switches handles (the spheres) on or off by manipulating the underlying actor visibility.
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkProperty * PlaneProperty
void SetOrigin(double x[3])
virtual void ReleaseGraphicsResources(vtkWindow *)
Methods supporting, and required by, the rendering process.
vtkProperty * V2HandleProperty
vtkPolyDataMapper * EdgesMapper
void GetPolyData(vtkPolyData *pd)
Grab the polydata that defines the plane.
void SetV1(double x, double y)
Set/Get the v1 vector of the plane.
static vtkFinitePlaneRepresentation * New()
Instantiate the class.
vtkSphereSource * OriginGeometry
vtkFinitePlaneRepresentation()
vtkProperty * SelectedPlaneProperty
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
~vtkFinitePlaneRepresentation()
virtual void BuildRepresentation()
vtkPolyDataMapper * ConeMapper2
virtual void SizeHandles()
void TranslateOrigin(double *p1, double *p2)
vtkLineSource * LineSource2
void MovePoint1(double *p1, double *p2)
virtual void HandlesOff()
vtkCellPicker * HandlePicker
void SetNormal(double x[3])
void SetV2(double x, double y)
Set/Get the v2 vector of the plane.
virtual void PlaceWidget(double bounds[6])
These are methods that satisfy vtkWidgetRepresentation's API.
vtkPolyDataMapper * PlaneMapper
vtkConeSource * ConeSource2
vtkPolyDataMapper * LineMapper2
vtkProperty * SelectedHandleProperty
void MovePoint2(double *p1, double *p2)
void Push(double *p1, double *p2)
a simple class to control print indentation
create a line defined by two end points
map vtkPolyData to graphics primitives
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
filter that generates tubes around lines
abstract specification for Viewports
window superclass for vtkRenderWindow
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.