41 #ifndef vtkImplicitPlaneRepresentation_h
42 #define vtkImplicitPlaneRepresentation_h
44 #include "vtkInteractionWidgetsModule.h"
87 void SetOrigin(
double x,
double y,
double z);
88 void SetOrigin(
double x[3]);
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);
206 vtkBooleanMacro(ConstrainToWidgetBounds,
vtkTypeBool);
250 void UpdatePlacement(
void);
257 vtkGetObjectMacro(SelectedNormalProperty,
vtkProperty);
266 vtkGetObjectMacro(SelectedPlaneProperty,
vtkProperty);
274 vtkGetObjectMacro(SelectedOutlineProperty,
vtkProperty);
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;
355 void ReleaseGraphicsResources(
vtkWindow*) override;
357 int RenderTranslucentPolygonalGeometry(
vtkViewport*) override;
358 vtkTypeBool HasTranslucentPolygonalGeometry() override;
383 vtkSetClampMacro(InteractionState,
int,Outside,Scaling);
391 virtual void SetRepresentationState(
int);
392 vtkGetMacro(RepresentationState,
int);
398 return this->Plane; }
405 virtual void SetCropPlaneToBoundingBox(
bool);
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];
453 void HighlightOutline(
int highlight);
457 double WidgetBounds[6];
467 void HighlightPlane(
int highlight);
480 void HighlightNormal(
int highlight);
512 void Rotate(
double X,
double Y,
double *p1,
double *p2,
double *vpn);
513 void Rotate3D(
double *p1,
double *p2);
514 void TranslatePlane(
double *p1,
double *p2);
515 void TranslateOutline(
double *p1,
double *p2);
516 void TranslateOrigin(
double *p1,
double *p2);
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);
531 void CreateDefaultProperties();
533 void GeneratePlane();