18#ifndef vtkPointHandleRepresentation3D_h
19#define vtkPointHandleRepresentation3D_h
23#include "vtkInteractionWidgetsModule.h"
26VTK_ABI_NAMESPACE_BEGIN
67 void SetOutline(
int o) { this->Cursor3D->SetOutline(o); }
68 int GetOutline() {
return this->Cursor3D->GetOutline(); }
160 vtkSetClampMacro(HotSpotSize,
double, 0.0, 1.0);
161 vtkGetMacro(HotSpotSize,
double);
174 void BuildRepresentation() override;
175 void StartWidgetInteraction(
double eventPos[2]) override;
176 void WidgetInteraction(
double eventPos[2]) override;
177 int ComputeInteractionState(
int X,
int Y,
int modify = 0) override;
178 void PlaceWidget(
double bounds[6]) override;
180 unsigned long event,
void* calldata) override;
182 unsigned long event,
void* calldata) override;
184 unsigned long event,
void* calldata,
int modify = 0) override;
196 int RenderTranslucentPolygonalGeometry(
vtkViewport* viewport) override;
200 void Highlight(
int highlight) override;
222 void RegisterPickers() override;
243 double LastPickPosition[3];
244 double LastEventPosition[3];
248 void Translate(const
double* p1, const
double* p2) override;
249 void Scale(const
double* p1, const
double* p2, const
double eventPos[2]);
250 void MoveFocus(const
double* p1, const
double* p2);
264 void MoveFocusRequest(
265 const
double* p1, const
double* p2, const
double currPos[2],
double center[3]);
271 void CreateDefaultProperties();
275 int DetermineConstraintAxis(
int constraint,
double* x,
double* startPoint);
276 int WaitingForMotion;
280 double CurrentHandleSize;
represents an object (geometry & properties) in a rendered scene
ray-cast cell picker for all kinds of Prop3Ds
generate a 3D cursor representation
abstract class for representing widget handles
virtual void Translate(const double *p1, const double *p2)
Translates world position by vector p1p2 projected on the constraint axis if any.
a simple class to control print indentation
represent the position of a point in 3D space
void AllOn()
Convenience methods to turn outline and shadows on and off.
void SetHandleSize(double size) override
Overload the superclasses SetHandleSize() method to update internal variables.
void AllOff()
Convenience methods to turn outline and shadows on and off.
void SetYShadows(int o)
Turn on/off the wireframe y-shadows.
void SetInteractionColor(double, double, double)
Set the widget color, and the color of interactive handles.
void SetForegroundColor(double, double, double)
Set the widget color, and the color of interactive handles.
void SetOutline(int o)
Turn on/off the wireframe bounding box.
void SetInteractionColor(double c[3])
Set the widget color, and the color of interactive handles.
void SetProperty(vtkProperty *)
Set/Get the handle properties when unselected and selected.
void SetZShadows(int o)
Turn on/off the wireframe z-shadows.
void SetXShadows(int o)
Turn on/off the wireframe x-shadows.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
void SetTranslationMode(vtkTypeBool mode)
If translation mode is on, as the widget is moved the bounding box, shadows, and cursor are all trans...
void SetSelectedProperty(vtkProperty *)
Set/Get the handle properties when unselected and selected.
void SetDisplayPosition(double p[3]) override
Set the position of the point in world and display coordinates.
void SetForegroundColor(double c[3])
Set the widget color, and the color of interactive handles.
static vtkPointHandleRepresentation3D * New()
Instantiate this class.
double * GetBounds() override
Methods to make this class properly act like a vtkWidgetRepresentation.
void SetWorldPosition(double p[3]) override
Set the position of the point in world and display coordinates.
map vtkPolyData to graphics primitives
abstract superclass for all actors, volumes and annotations
represent surface properties of a geometric object
platform-independent render window interaction including picking and frame rate control.
abstract specification for Viewports
window superclass for vtkRenderWindow
#define VTK_SIZEHINT(...)