38 #ifndef vtkImplicitPlaneRepresentation_h 39 #define vtkImplicitPlaneRepresentation_h 41 #include "vtkInteractionWidgetsModule.h" 84 void SetOrigin(
double x,
double y,
double z);
85 void SetOrigin(
double x[3]);
87 void GetOrigin(
double xyz[3]);
94 void SetNormal(
double x,
double y,
double z);
95 void SetNormal(
double x[3]);
96 void SetNormalToCamera();
98 void GetNormal(
double xyz[3]);
189 vtkSetVector6Macro(WidgetBounds,
double);
190 vtkGetVector6Macro(WidgetBounds,
double);
203 vtkBooleanMacro(ConstrainToWidgetBounds,
vtkTypeBool);
247 void UpdatePlacement(
void);
254 vtkGetObjectMacro(SelectedNormalProperty,
vtkProperty);
263 vtkGetObjectMacro(SelectedPlaneProperty,
vtkProperty);
271 vtkGetObjectMacro(SelectedOutlineProperty,
vtkProperty);
286 void SetEdgeColor(
double,
double,
double);
287 void SetEdgeColor(
double x[3]);
296 vtkSetClampMacro(BumpDistance,
double,0.000001,1);
297 vtkGetMacro(BumpDistance,
double);
308 void BumpPlane(
int dir,
double factor);
316 void PushPlane(
double distance);
322 int ComputeInteractionState(
int X,
int Y,
int modify=0) override;
323 void PlaceWidget(
double bounds[6]) override;
324 void BuildRepresentation() override;
325 void StartWidgetInteraction(
double eventPos[2]) override;
326 void WidgetInteraction(
double newEventPos[2]) override;
327 void EndWidgetInteraction(
double newEventPos[2]) override;
328 void StartComplexInteraction(
331 unsigned long event,
void *calldata) override;
332 void ComplexInteraction(
335 unsigned long event,
void *calldata) override;
336 int ComputeComplexInteractionState(
339 unsigned long event,
void *calldata,
int modify = 0) override;
340 void EndComplexInteraction(
343 unsigned long event,
void *calldata) override;
352 void ReleaseGraphicsResources(
vtkWindow*) override;
354 int RenderTranslucentPolygonalGeometry(
vtkViewport*) override;
355 int HasTranslucentPolygonalGeometry() override;
380 vtkSetClampMacro(InteractionState,
int,Outside,Scaling);
388 virtual void SetRepresentationState(
int);
389 vtkGetMacro(RepresentationState,
int);
395 return this->Plane; }
402 virtual void SetCropPlaneToBoundingBox(
bool);
403 vtkGetMacro(CropPlaneToBoundingBox,
bool);
404 vtkBooleanMacro(CropPlaneToBoundingBox,
bool);
415 double LastEventPosition[3];
416 double LastEventOrientation[4];
417 double StartEventOrientation[4];
438 void HighlightOutline(
int highlight);
442 double WidgetBounds[6];
452 void HighlightPlane(
int highlight);
465 void HighlightNormal(
int highlight);
497 void Rotate(
double X,
double Y,
double *p1,
double *p2,
double *vpn);
498 void Rotate3D(
double *p1,
double *p2);
499 void TranslatePlane(
double *p1,
double *p2);
500 void TranslateOutline(
double *p1,
double *p2);
501 void TranslateOrigin(
double *p1,
double *p2);
502 void UpdatePose(
double *p1,
double *d1,
double *p2,
double *d2);
503 void Push(
double *p1,
double *p2);
504 void Scale(
double *p1,
double *p2,
double X,
double Y);
516 void CreateDefaultProperties();
518 void GeneratePlane();
bool CropPlaneToBoundingBox
Cut vtkDataSet with user-specified implicit function.
vtkProperty * EdgesProperty
represents an object (geometry & properties) in a rendered scene
vtkPolyDataMapper * LineMapper
vtkPolyDataMapper * EdgesMapper
vtkConeSource * ConeSource
abstract specification for Viewports
represent surface properties of a geometric object
vtkProperty * SelectedPlaneProperty
vtkOutlineFilter * Outline
vtkProperty * SelectedNormalProperty
vtkLineSource * LineSource2
map scalar values into colors via a lookup table
vtkTypeBool NormalToXAxis
vtkTypeBool NormalToZAxis
vtkPolyDataMapper * ConeMapper
vtkProperty * NormalProperty
concrete dataset represents vertices, lines, polygons, and triangle strips
vtkPlaneSource * PlaneSource
window superclass for vtkRenderWindow
platform-independent render window interaction including picking and frame rate control.
create wireframe outline for arbitrary data set
create a polygonal sphere centered at the origin
Superclass for algorithms that produce only polydata as output.
filter that generates tubes around lines
vtkProperty * PlaneProperty
a simple class to control print indentation
a class defining the representation for a vtkImplicitPlaneWidget2
extract boundary, non-manifold, and/or sharp edges from polygonal data
vtkTypeBool LockNormalToCamera
topologically and geometrically regular array of data
vtkPolyDataMapper * SphereMapper
perform various plane computations
#define VTK_SIZEHINT(...)
vtkPolyDataMapper * OutlineMapper
create an array of quadrilaterals located in a plane
vtkLineSource * LineSource
vtkProperty * SelectedOutlineProperty
vtkConeSource * ConeSource2
create a line defined by two end points
map vtkPolyData to graphics primitives
vtkTypeBool OutsideBounds
vtkTypeBool OutlineTranslation
vtkTubeFilter * EdgesTuber
vtkTypeBool NormalToYAxis
vtkPlane * GetUnderlyingPlane()
ray-cast cell picker for all kinds of Prop3Ds
vtkPolyDataMapper * LineMapper2
vtkPolyDataMapper * ConeMapper2
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkProperty * OutlineProperty
implicit function for a bounding box
vtkTypeBool ConstrainToWidgetBounds
vtkPolyDataMapper * CutMapper