Go to the documentation of this file.
41 #ifndef vtkImplicitPlaneRepresentation_h
42 #define vtkImplicitPlaneRepresentation_h
44 #include "vtkInteractionWidgetsModule.h"
112 vtkGetMacro(NormalToXAxis,
int);
115 vtkGetMacro(NormalToYAxis,
int);
118 vtkGetMacro(NormalToZAxis,
int);
129 vtkGetMacro(LockNormalToCamera,
int);
139 vtkGetMacro(Tubing,
int);
151 vtkGetMacro(DrawPlane,
int);
161 vtkGetMacro(OutlineTranslation,
int);
171 vtkGetMacro(OutsideBounds,
int);
182 vtkSetVector6Macro(WidgetBounds,
double);
183 vtkGetVector6Macro(WidgetBounds,
double);
195 vtkGetMacro(ConstrainToWidgetBounds,
int);
204 vtkGetMacro(ScaleEnabled,
int);
289 vtkSetClampMacro(BumpDistance,
double,0.000001,1);
290 vtkGetMacro(BumpDistance,
double);
356 vtkSetClampMacro(InteractionState,
int,Outside,Scaling);
365 vtkGetMacro(RepresentationState,
int);
375 double LastEventPosition[3];
400 double WidgetBounds[6];
453 void Rotate(
double X,
double Y,
double *p1,
double *p2,
double *vpn);
457 void Push(
double *p1,
double *p2);
458 void Scale(
double *p1,
double *p2,
double X,
double Y);
map vtkPolyData to graphics primitives
void SetNormalToYAxis(int)
perform various plane computations
void PushPlane(double distance)
Push the plane the distance specified along the normal.
void GetPolyData(vtkPolyData *pd)
Grab the polydata that defines the plane.
vtkPolyDataMapper * ConeMapper2
vtkOutlineFilter * Outline
vtkProperty * SelectedNormalProperty
vtkProperty * NormalProperty
Cut vtkDataSet with user-specified implicit function.
void HighlightOutline(int highlight)
virtual void BuildRepresentation()
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void HighlightNormal(int highlight)
void SetNormalToXAxis(int)
Force the plane widget to be aligned with one of the x-y-z axes.
void SetEdgeColor(double x[3])
void Rotate(double X, double Y, double *p1, double *p2, double *vpn)
void CreateDefaultProperties()
int ConstrainToWidgetBounds
vtkPolyDataMapper * CutMapper
vtkProperty * EdgesProperty
virtual void SetRepresentationState(int)
Sets the visual appearance of the representation based on the state it is in.
virtual double * GetBounds()
Methods supporting the rendering process.
virtual void EndWidgetInteraction(double newEventPos[2])
void SetEdgeColor(vtkLookupTable *)
Set color to the edge.
vtkProperty * PlaneProperty
vtkConeSource * ConeSource
vtkPolyDataMapper * LineMapper
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void GetNormal(double xyz[3])
void SetEdgeColor(double, double, double)
virtual void RegisterPickers()
Register internal Pickers in the Picking Manager.
vtkPolyDataMapper * SphereMapper
window superclass for vtkRenderWindow
virtual void GetActors(vtkPropCollection *pc)
For some exporters and other other operations we must be able to collect all the actors or volumes.
void GetPlane(vtkPlane *plane)
Get the implicit function for the plane by copying the origin and normal of the cut plane into the pr...
a class defining the representation for a vtkImplicitPlaneWidget2
filter that generates tubes around lines
vtkPolyDataMapper * OutlineMapper
vtkPolyDataMapper * ConeMapper
vtkLineSource * LineSource2
void TranslatePlane(double *p1, double *p2)
virtual void WidgetInteraction(double newEventPos[2])
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void SetOrigin(double x[3])
vtkProperty * SelectedOutlineProperty
void Push(double *p1, double *p2)
vtkConeSource * ConeSource2
create a polygonal sphere centered at the origin
virtual void StartWidgetInteraction(double eventPos[2])
vtkLineSource * LineSource
virtual void PlaceWidget(double bounds[6])
represents an object (geometry & properties) in a rendered scene
void SetOrigin(double x, double y, double z)
Get the origin of the plane.
topologically and geometrically regular array of data
a simple class to control print indentation
extract boundary, non-manifold, and/or sharp edges from polygonal data
void GetOrigin(double xyz[3])
void UpdatePlacement(void)
Satisfies the superclass API.
void SetNormal(double x[3])
create a line defined by two end points
void HighlightPlane(int highlight)
abstract specification for Viewports
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkPolyDataAlgorithm * GetPolyDataAlgorithm()
Satisfies superclass API.
~vtkImplicitPlaneRepresentation()
virtual int ComputeInteractionState(int X, int Y, int modify=0)
Methods to interface with the vtkSliderWidget.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
map scalar values into colors via a lookup table
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
void SetNormalToZAxis(int)
implicit function for a bounding box
vtkProperty * OutlineProperty
virtual void ReleaseGraphicsResources(vtkWindow *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE Release any graphics resources that are being...
concrete dataset represents vertices, lines, polygons, and triangle strips
create wireframe outline for arbitrary data set
static vtkImplicitPlaneRepresentation * New()
Instantiate the class.
represent surface properties of a geometric object
void SetNormal(double x, double y, double z)
Get the normal to the plane.
void BumpPlane(int dir, double factor)
Translate the plane in the direction of the normal by the specified BumpDistance.
void SetDrawPlane(int plane)
Enable/disable the drawing of the plane.
ray-cast cell picker for all kinds of Prop3Ds
void Scale(double *p1, double *p2, double X, double Y)
void TranslateOrigin(double *p1, double *p2)
virtual void SetLockNormalToCamera(int)
If enabled, and a vtkCamera is available through the renderer, then LockNormalToCamera will cause the...
void SetPlane(vtkPlane *plane)
Alternative way to define the cutting plane.
vtkTubeFilter * EdgesTuber
vtkImplicitPlaneRepresentation()
vtkPolyDataMapper * LineMapper2
vtkPolyDataMapper * EdgesMapper
vtkProperty * SelectedPlaneProperty
void TranslateOutline(double *p1, double *p2)
Superclass for algorithms that produce only polydata as output.