30 #ifndef vtkPointHandleRepresentation3D_h
31 #define vtkPointHandleRepresentation3D_h
35 #include "vtkInteractionWidgetsModule.h"
76 void SetOutline(
int o) { this->Cursor3D->SetOutline(o); }
77 int GetOutline() {
return this->Cursor3D->GetOutline(); }
159 vtkSetClampMacro(HotSpotSize,
double, 0.0, 1.0);
160 vtkGetMacro(HotSpotSize,
double);
173 void BuildRepresentation() override;
174 void StartWidgetInteraction(
double eventPos[2]) override;
175 void WidgetInteraction(
double eventPos[2]) override;
176 int ComputeInteractionState(
int X,
int Y,
int modify = 0) override;
177 void PlaceWidget(
double bounds[6]) override;
179 unsigned long event,
void* calldata) override;
181 unsigned long event,
void* calldata) override;
183 unsigned long event,
void* calldata,
int modify = 0) override;
190 void ShallowCopy(
vtkProp* prop) override;
191 void DeepCopy(
vtkProp* prop) override;
193 void ReleaseGraphicsResources(
vtkWindow*) override;
194 int RenderOpaqueGeometry(
vtkViewport* viewport) override;
195 int RenderTranslucentPolygonalGeometry(
vtkViewport* viewport) override;
196 vtkTypeBool HasTranslucentPolygonalGeometry() override;
199 void Highlight(
int highlight) override;
214 vtkGetMacro(SmoothMotion, vtkTypeBool);
215 vtkBooleanMacro(SmoothMotion, vtkTypeBool);
221 void RegisterPickers() override;
229 void SetVisibility(vtkTypeBool visible) override;
233 ~vtkPointHandleRepresentation3D() override;
242 double LastPickPosition[3];
243 double LastEventPosition[3];
247 void Translate(const
double* p1, const
double* p2) override;
248 void Scale(const
double* p1, const
double* p2, const
double eventPos[2]);
249 void MoveFocus(const
double* p1, const
double* p2);
263 void MoveFocusRequest(
264 const
double* p1, const
double* p2, const
double currPos[2],
double center[3]);
270 void CreateDefaultProperties();
274 int DetermineConstraintAxis(
int constraint,
double* x,
double* startPoint);
275 int WaitingForMotion;
279 double CurrentHandleSize;
282 vtkTypeBool TranslationMode;
284 vtkTypeBool SmoothMotion;
287 vtkPointHandleRepresentation3D(const vtkPointHandleRepresentation3D&) = delete;
288 void operator=(const vtkPointHandleRepresentation3D&) = delete;
abstract superclass for all actors, volumes and annotations
virtual void SetWorldPosition(double pos[3])
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...
represents an object (geometry & properties) in a rendered scene
abstract class for representing widget handles
represent the position of a point in 3D space
abstract specification for Viewports
represent surface properties of a geometric object
void AllOn()
Convenience methods to turn outline and shadows on and off.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for instances of this class.
void SetYShadows(int o)
Turn on/off the wireframe y-shadows.
window superclass for vtkRenderWindow
platform-independent render window interaction including picking and frame rate control.
void SetZShadows(int o)
Turn on/off the wireframe z-shadows.
void SetOutline(int o)
Turn on/off the wireframe bounding box.
a simple class to control print indentation
#define VTK_SIZEHINT(...)
map vtkPolyData to graphics primitives
void AllOff()
Convenience methods to turn outline and shadows on and off.
ray-cast cell picker for all kinds of Prop3Ds
generate a 3D cursor representation
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual void Translate(const double *p1, const double *p2)
Translates world position by vector p1p2 projected on the constraint axis if any. ...
void SetXShadows(int o)
Turn on/off the wireframe x-shadows.
virtual void SetDisplayPosition(double pos[3])
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...