Go to the documentation of this file.
41 #ifndef vtkImplicitPlaneRepresentation_h
42 #define vtkImplicitPlaneRepresentation_h
44 #include "vtkInteractionWidgetsModule.h"
90 void GetOrigin(
double xyz[3]);
97 void SetNormal(
double x,
double y,
double z);
98 void SetNormal(
double x[3]);
99 void SetNormalToCamera();
101 void GetNormal(
double xyz[3]);
192 vtkSetVector6Macro(WidgetBounds,
double);
193 vtkGetVector6Macro(WidgetBounds,
double);
250 void UpdatePlacement(
void);
289 void SetEdgeColor(
double,
double,
double);
290 void SetEdgeColor(
double x[3]);
299 vtkSetClampMacro(BumpDistance,
double,0.000001,1);
300 vtkGetMacro(BumpDistance,
double);
311 void BumpPlane(
int dir,
double factor);
319 void PushPlane(
double distance);
325 int ComputeInteractionState(
int X,
int Y,
int modify=0) override;
326 void PlaceWidget(
double bounds[6]) override;
327 void BuildRepresentation() override;
328 void StartWidgetInteraction(
double eventPos[2]) override;
329 void WidgetInteraction(
double newEventPos[2]) override;
330 void EndWidgetInteraction(
double newEventPos[2]) override;
331 void StartComplexInteraction(
334 unsigned long event,
void *calldata) override;
335 void ComplexInteraction(
338 unsigned long event,
void *calldata) override;
339 int ComputeComplexInteractionState(
342 unsigned long event,
void *calldata,
int modify = 0) override;
343 void EndComplexInteraction(
346 unsigned long event,
void *calldata) override;
383 vtkSetClampMacro(InteractionState,
int,Outside,Scaling);
392 vtkGetMacro(RepresentationState,
int);
398 return this->Plane; }
406 vtkGetMacro(CropPlaneToBoundingBox,
bool);
407 vtkBooleanMacro(CropPlaneToBoundingBox,
bool);
415 vtkGetMacro(SnapToAxes,
bool);
416 vtkSetMacro(SnapToAxes,
bool);
426 double LastEventPosition[3];
427 double LastEventOrientation[4];
428 double StartEventOrientation[4];
435 double SnappedEventOrientation[4];
457 double WidgetBounds[6];
512 void Rotate(
double X,
double Y,
double *p1,
double *p2,
double *vpn);
517 void UpdatePose(
double *p1,
double *d1,
double *p2,
double *d2);
518 void Push(
double *p1,
double *p2);
519 void Scale(
double *p1,
double *p2,
double X,
double Y);
map vtkPolyData to graphics primitives
perform various plane computations
vtkPolyDataMapper * ConeMapper2
vtkOutlineFilter * Outline
vtkProperty * SelectedNormalProperty
virtual void SetCropPlaneToBoundingBox(bool)
Control if the plane should be drawn cropped by the bounding box or without cropping.
void RegisterPickers() override
Register internal Pickers in the Picking Manager.
vtkProperty * NormalProperty
vtkTypeBool NormalToXAxis
Cut vtkDataSet with user-specified implicit function.
void HighlightOutline(int highlight)
~vtkImplicitPlaneRepresentation() override
void Rotate3D(double *p1, double *p2)
vtkTypeBool ConstrainToWidgetBounds
void HighlightNormal(int highlight)
bool CropPlaneToBoundingBox
void Rotate(double X, double Y, double *p1, double *p2, double *vpn)
void CreateDefaultProperties()
vtkPolyDataMapper * CutMapper
create an array of quadrilaterals located in a plane
vtkProperty * EdgesProperty
virtual void SetRepresentationState(int)
Sets the visual appearance of the representation based on the state it is in.
vtkProperty * PlaneProperty
vtkConeSource * ConeSource
vtkPolyDataMapper * LineMapper
vtkPolyDataMapper * SphereMapper
window superclass for vtkRenderWindow
a class defining the representation for a vtkImplicitPlaneWidget2
filter that generates tubes around lines
vtkTypeBool NormalToZAxis
vtkPolyDataMapper * OutlineMapper
vtkPolyDataMapper * ConeMapper
vtkLineSource * LineSource2
void TranslatePlane(double *p1, double *p2)
#define VTK_SIZEHINT(...)
void SetOrigin(double x[3])
vtkProperty * SelectedOutlineProperty
void Push(double *p1, double *p2)
vtkConeSource * ConeSource2
create a polygonal sphere centered at the origin
vtkLineSource * LineSource
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
vtkPlaneSource * PlaneSource
vtkTypeBool NormalToYAxis
vtkTypeBool OutlineTranslation
extract boundary, non-manifold, and/or sharp edges from polygonal data
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
create a line defined by two end points
void HighlightPlane(int highlight)
platform-independent render window interaction including picking and frame rate control.
abstract specification for Viewports
map scalar values into colors via a lookup table
implicit function for a bounding box
vtkTypeBool LockNormalToCamera
vtkProperty * OutlineProperty
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 UpdatePose(double *p1, double *d1, double *p2, double *d2)
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)
vtkTypeBool OutsideBounds
vtkTubeFilter * EdgesTuber
vtkImplicitPlaneRepresentation()
vtkPolyDataMapper * LineMapper2
vtkPolyDataMapper * EdgesMapper
vtkProperty * SelectedPlaneProperty
void TranslateOutline(double *p1, double *p2)
Superclass for algorithms that produce only polydata as output.
vtkPlane * GetUnderlyingPlane()