70 #ifndef vtkImplicitPlaneWidget_h
71 #define vtkImplicitPlaneWidget_h
73 #include "vtkInteractionWidgetsModule.h"
111 double xmin,
double xmax,
double ymin,
double ymax,
double zmin,
double zmax)
override
121 virtual void SetOrigin(
double x,
double y,
double z);
122 virtual void SetOrigin(
double x[3]);
124 void GetOrigin(
double xyz[3]);
131 void SetNormal(
double x,
double y,
double z);
132 void SetNormal(
double n[3]);
134 void GetNormal(
double xyz[3]);
146 vtkGetMacro(NormalToXAxis, vtkTypeBool);
147 vtkBooleanMacro(NormalToXAxis, vtkTypeBool);
148 void SetNormalToYAxis(vtkTypeBool);
149 vtkGetMacro(NormalToYAxis, vtkTypeBool);
150 vtkBooleanMacro(NormalToYAxis, vtkTypeBool);
151 void SetNormalToZAxis(vtkTypeBool);
152 vtkGetMacro(NormalToZAxis, vtkTypeBool);
153 vtkBooleanMacro(NormalToZAxis, vtkTypeBool);
161 vtkSetMacro(Tubing, vtkTypeBool);
162 vtkGetMacro(Tubing, vtkTypeBool);
163 vtkBooleanMacro(Tubing, vtkTypeBool);
173 void SetDrawPlane(vtkTypeBool plane);
174 vtkGetMacro(DrawPlane, vtkTypeBool);
175 vtkBooleanMacro(DrawPlane, vtkTypeBool);
183 vtkSetMacro(OutlineTranslation, vtkTypeBool);
184 vtkGetMacro(OutlineTranslation, vtkTypeBool);
185 vtkBooleanMacro(OutlineTranslation, vtkTypeBool);
192 vtkSetMacro(OutsideBounds, vtkTypeBool);
193 vtkGetMacro(OutsideBounds, vtkTypeBool);
194 vtkBooleanMacro(OutsideBounds, vtkTypeBool);
201 vtkSetMacro(ScaleEnabled, vtkTypeBool);
202 vtkGetMacro(ScaleEnabled, vtkTypeBool);
203 vtkBooleanMacro(ScaleEnabled, vtkTypeBool);
211 vtkSetMacro(OriginTranslation, vtkTypeBool);
212 vtkGetMacro(OriginTranslation, vtkTypeBool);
213 vtkBooleanMacro(OriginTranslation, vtkTypeBool);
221 vtkSetClampMacro(DiagonalRatio,
double, 0, 2);
222 vtkGetMacro(DiagonalRatio,
double);
249 void UpdatePlacement() override;
254 void SizeHandles() override;
261 vtkGetObjectMacro(SelectedNormalProperty, vtkProperty);
269 vtkGetObjectMacro(PlaneProperty, vtkProperty);
270 vtkGetObjectMacro(SelectedPlaneProperty, vtkProperty);
277 vtkGetObjectMacro(OutlineProperty, vtkProperty);
278 vtkGetObjectMacro(SelectedOutlineProperty, vtkProperty);
286 vtkGetObjectMacro(EdgesProperty, vtkProperty);
291 ~vtkImplicitPlaneWidget() override;
309 vtkObject*
object,
unsigned long event,
void* clientdata,
void* calldata);
312 void OnLeftButtonDown();
313 void OnLeftButtonUp();
314 void OnMiddleButtonDown();
315 void OnMiddleButtonUp();
316 void OnRightButtonDown();
317 void OnRightButtonUp();
324 void UpdateRepresentation();
334 void HighlightOutline(
int highlight);
344 virtual void HighlightPlane(
int highlight);
360 void HighlightNormal(
int highlight);
393 void ConstrainOrigin(
double x[3]);
394 void Rotate(
int X,
int Y,
double* p1,
double* p2,
double* vpn);
395 void TranslatePlane(
double* p1,
double* p2);
396 void TranslateOutline(
double* p1,
double* p2);
397 void TranslateOrigin(
double* p1,
double* p2);
398 void Push(
double* p1,
double* p2);
399 void Scale(
double* p1,
double* p2,
int X,
int Y);
410 void CreateDefaultProperties();
412 void GeneratePlane();
Cut vtkDataSet with user-specified implicit function.
represents an object (geometry & properties) in a rendered scene
abstract base class for most VTK objects
represent surface properties of a geometric object
static void ProcessEvents(vtkObject *object, unsigned long event, void *clientdata, void *calldata)
Handles the char widget activation event.
virtual void SetEnabled(int)
Methods for turning the interactor observer on and off, and determining its state.
concrete dataset represents vertices, lines, polygons, and triangle strips
virtual void RegisterPickers()
Register internal Pickers in the Picking Manager.
create wireframe outline for an arbitrary data set or composite dataset
create a polygonal sphere centered at the origin
Superclass for algorithms that produce only polydata as output.
filter that generates tubes around lines
a simple class to control print indentation
extract interior, boundary, non-manifold, and/or sharp edges from polygonal data
topologically and geometrically regular array of data
perform various plane computations
#define VTK_SIZEHINT(...)
create a line defined by two end points
map vtkPolyData to graphics primitives
ray-cast cell picker for all kinds of Prop3Ds
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...