29#ifndef vtkImplicitPlaneRepresentation_h
30#define vtkImplicitPlaneRepresentation_h
33#include "vtkInteractionWidgetsModule.h"
37VTK_ABI_NAMESPACE_BEGIN
81 void GetOrigin(
double xyz[3]);
88 void SetNormal(
double x,
double y,
double z);
89 void SetNormal(
double n[3]);
90 void SetNormalToCamera();
92 void GetNormal(
double xyz[3]);
180 void SetXTranslationAxisOn() { this->TranslationAxis =
Axis::XAxis; }
200 vtkSetVector6Macro(WidgetBounds,
double);
201 vtkGetVector6Macro(WidgetBounds,
double);
322 vtkSetClampMacro(BumpDistance,
double, 0.000001, 1);
323 vtkGetMacro(BumpDistance,
double);
355 unsigned long event,
void* calldata)
override;
357 unsigned long event,
void* calldata)
override;
359 unsigned long event,
void* calldata,
int modify = 0)
override;
361 unsigned long event,
void* calldata)
override;
387#if !defined(VTK_LEGACY_REMOVE)
402 vtkSetClampMacro(InteractionState,
int, Outside, Scaling);
411 vtkGetMacro(RepresentationState,
int);
424 vtkGetMacro(CropPlaneToBoundingBox,
bool);
425 vtkBooleanMacro(CropPlaneToBoundingBox,
bool);
433 vtkGetMacro(SnapToAxes,
bool);
434 vtkSetMacro(SnapToAxes,
bool);
444 vtkGetMacro(AlwaysSnapToNearestAxis,
bool);
447 this->AlwaysSnapToNearestAxis = snap;
448 this->SetNormal(this->GetNormal());
459 double LastEventPosition[3];
460 double LastEventOrientation[4];
461 double StartEventOrientation[4];
468 double SnappedEventOrientation[4];
494 double WidgetBounds[6];
544 void Rotate(
double X,
double Y,
double* p1,
double* p2,
double* vpn);
548 void UpdatePose(
double* p1,
double* d1,
double* p2,
double* d2);
549 void Push(
double* p1,
double* p2);
550 void Scale(
double* p1,
double* p2,
double X,
double Y);
represents an object (geometry & properties) in a rendered scene
implicit function for a bounding box
ray-cast cell picker for all kinds of Prop3Ds
Cut vtkDataSet with user-specified implicit function.
extract interior, boundary, non-manifold, and/or sharp edges from polygonal data
topologically and geometrically regular array of data
a class defining the representation for a vtkImplicitPlaneWidget2
vtkPolyDataMapper * SphereMapper
void Rotate(double X, double Y, double *p1, double *p2, double *vpn)
vtkLineSource * LineSource
vtkProperty * SelectedNormalProperty
void SetZTranslationAxisOn()
Toggles constraint translation axis on/off.
void EndWidgetInteraction(double newEventPos[2]) override
Methods to interface with the vtkImplicitPlaneWidget2.
vtkTypeBool NormalToXAxis
void SetEdgeColor(vtkLookupTable *)
Set color to the edge.
vtkTypeBool ConstrainToWidgetBounds
void SetHandleColor(double c[3])
Set the color of all the widget's handles (edges, cone1, cone2, line, sphere, selected plane) and the...
virtual void SetCropPlaneToBoundingBox(bool)
Control if the plane should be drawn cropped by the bounding box or without cropping.
bool CropPlaneToBoundingBox
void PlaceWidget(double bounds[6]) override
Methods to interface with the vtkImplicitPlaneWidget2.
vtkProperty * EdgesProperty
void GetPolyData(vtkPolyData *pd)
Grab the polydata that defines the plane.
vtkPolyDataMapper * CutMapper
void SetEdgeColor(double c[3])
Set color to the edge.
void Scale(double *p1, double *p2, double X, double Y)
virtual void CreateDefaultProperties()
vtkPolyDataAlgorithm * GetPolyDataAlgorithm()
Satisfies superclass API.
vtkPolyDataMapper * LineMapper
void HighlightPlane(int highlight)
vtkPolyDataMapper * ConeMapper
int ComputeInteractionState(int X, int Y, int modify=0) override
Methods to interface with the vtkImplicitPlaneWidget2.
vtkTypeBool NormalToYAxis
bool AlwaysSnapToNearestAxis
vtkOutlineFilter * Outline
void SetOrigin(double x[3])
Get the origin of the plane.
vtkPlaneSource * PlaneSource
void HighlightNormal(int highlight)
vtkTypeBool OutsideBounds
vtkTubeFilter * EdgesTuber
vtkPolyDataMapper * OutlineMapper
void BuildRepresentation() override
Methods to interface with the vtkImplicitPlaneWidget2.
void GetPlane(vtkPlane *plane)
Get the implicit function for the plane by copying the origin and normal of the cut plane into the pr...
void StartComplexInteraction(vtkRenderWindowInteractor *iren, vtkAbstractWidget *widget, unsigned long event, void *calldata) override
Methods to interface with the vtkImplicitPlaneWidget2.
vtkPolyDataMapper * ConeMapper2
vtkProperty * SelectedPlaneProperty
void Push(double *p1, double *p2)
vtkImplicitPlaneRepresentation()
vtkConeSource * ConeSource
vtkProperty * PlaneProperty
vtkPlane * GetUnderlyingPlane()
static vtkImplicitPlaneRepresentation * New()
Instantiate the class.
vtkProperty * OutlineProperty
void SetInteractionColor(double, double, double)
Set the color of all the widget's handles (edges, cone1, cone2, line, sphere, selected plane) and the...
virtual void SetAlwaysSnapToNearestAxis(bool snap)
Forces the plane's normal to be aligned with x, y or z axis.
void SetForegroundColor(double c[3])
Set the color of all the widget's handles (edges, cone1, cone2, line, sphere, selected plane) and the...
void UpdatePlacement()
Satisfies the superclass API.
int ComputeComplexInteractionState(vtkRenderWindowInteractor *iren, vtkAbstractWidget *widget, unsigned long event, void *calldata, int modify=0) override
Methods to interface with the vtkImplicitPlaneWidget2.
void EndComplexInteraction(vtkRenderWindowInteractor *iren, vtkAbstractWidget *widget, unsigned long event, void *calldata) override
Methods to interface with the vtkImplicitPlaneWidget2.
vtkTypeBool NormalToZAxis
void WidgetInteraction(double newEventPos[2]) override
Methods to interface with the vtkImplicitPlaneWidget2.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for the class.
void ComplexInteraction(vtkRenderWindowInteractor *iren, vtkAbstractWidget *widget, unsigned long event, void *calldata) override
Methods to interface with the vtkImplicitPlaneWidget2.
vtkPolyDataMapper * EdgesMapper
void PushPlane(double distance)
Push the plane the distance specified along the normal.
void SetOrigin(double x, double y, double z)
Get the origin of the plane.
void StartWidgetInteraction(double eventPos[2]) override
Methods to interface with the vtkImplicitPlaneWidget2.
void BumpPlane(int dir, double factor)
Translate the plane in the direction of the normal by the specified BumpDistance.
vtkProperty * SelectedOutlineProperty
void TranslateOrigin(double *p1, double *p2)
vtkTypeBool OutlineTranslation
void SetHandleColor(double, double, double)
Set the color of all the widget's handles (edges, cone1, cone2, line, sphere, selected plane) and the...
double * GetBounds() override
Methods supporting the rendering process.
void SetEdgeColor(double, double, double)
Set color to the edge.
void SetForegroundColor(double, double, double)
Set the color of all the widget's handles (edges, cone1, cone2, line, sphere, selected plane) and the...
void SetTranslationAxisOff()
Toggles constraint translation axis on/off.
virtual void SetRepresentationState(int)
Sets the visual appearance of the representation based on the state it is in.
vtkProperty * NormalProperty
void UpdatePose(double *p1, double *d1, double *p2, double *d2)
void RegisterPickers() override
Register internal Pickers in the Picking Manager.
void TranslateOutline(double *p1, double *p2)
bool IsTranslationConstrained()
Returns true if ConstrainedAxis.
double * GetOrigin()
Get the origin of the plane.
void HighlightOutline(int highlight)
vtkTypeBool LockNormalToCamera
void SetYTranslationAxisOn()
Toggles constraint translation axis on/off.
void SetPlane(vtkPlane *plane)
Alternative way to define the cutting plane.
vtkConeSource * ConeSource2
~vtkImplicitPlaneRepresentation() override
void SetInteractionColor(double c[3])
Set the color of all the widget's handles (edges, cone1, cone2, line, sphere, selected plane) and the...
void Rotate3D(double *p1, double *p2)
a simple class to control print indentation
create a line defined by two end points
map scalar values into colors via a lookup table
create wireframe outline for an arbitrary data set or composite dataset
create an array of quadrilaterals located in a plane
perform various plane computations
Superclass for algorithms that produce only polydata as output.
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
represent surface properties of a geometric object
platform-independent render window interaction including picking and frame rate control.
create a polygonal sphere centered at the origin
filter that generates tubes around lines
abstract specification for Viewports
window superclass for vtkRenderWindow
#define VTK_DEPRECATED_IN_9_2_0(reason)
#define VTK_SIZEHINT(...)