18 #ifndef vtkPointHandleRepresentation3D_h
19 #define vtkPointHandleRepresentation3D_h
23 #include "vtkInteractionWidgetsModule.h"
25 VTK_ABI_NAMESPACE_BEGIN
65 void SetOutline(
int o) { this->Cursor3D->SetOutline(o); }
66 int GetOutline() {
return this->Cursor3D->GetOutline(); }
145 void SetInteractionColor(
double,
double,
double);
147 void SetForegroundColor(
double,
double,
double);
158 vtkSetClampMacro(HotSpotSize,
double, 0.0, 1.0);
159 vtkGetMacro(HotSpotSize,
double);
172 void BuildRepresentation() override;
173 void StartWidgetInteraction(
double eventPos[2]) override;
174 void WidgetInteraction(
double eventPos[2]) override;
175 int ComputeInteractionState(
int X,
int Y,
int modify = 0) override;
176 void PlaceWidget(
double bounds[6]) override;
178 unsigned long event,
void* calldata) override;
180 unsigned long event,
void* calldata) override;
182 unsigned long event,
void* calldata,
int modify = 0) override;
189 void ShallowCopy(
vtkProp* prop) override;
190 void DeepCopy(
vtkProp* prop) override;
192 void ReleaseGraphicsResources(
vtkWindow*) override;
193 int RenderOpaqueGeometry(
vtkViewport* viewport) override;
194 int RenderTranslucentPolygonalGeometry(
vtkViewport* viewport) override;
195 vtkTypeBool HasTranslucentPolygonalGeometry() override;
198 void Highlight(
int highlight) override;
213 vtkGetMacro(SmoothMotion, vtkTypeBool);
214 vtkBooleanMacro(SmoothMotion, vtkTypeBool);
220 void RegisterPickers() override;
228 void SetVisibility(vtkTypeBool visible) override;
232 ~vtkPointHandleRepresentation3D() override;
241 double LastPickPosition[3];
242 double LastEventPosition[3];
246 void Translate(const
double* p1, const
double* p2) override;
247 void Scale(const
double* p1, const
double* p2, const
double eventPos[2]);
248 void MoveFocus(const
double* p1, const
double* p2);
262 void MoveFocusRequest(
263 const
double* p1, const
double* p2, const
double currPos[2],
double center[3]);
269 void CreateDefaultProperties();
273 int DetermineConstraintAxis(
int constraint,
double* x,
double* startPoint);
274 int WaitingForMotion;
278 double CurrentHandleSize;
281 vtkTypeBool TranslationMode;
283 vtkTypeBool SmoothMotion;
286 vtkPointHandleRepresentation3D(const vtkPointHandleRepresentation3D&) = delete;
287 void operator=(const vtkPointHandleRepresentation3D&) = delete;
290 VTK_ABI_NAMESPACE_END
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.
void SetInteractionColor(double c[3])
Set the widget color, and the color of interactive handles.
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.
virtual void SetDisplayPosition(double pos[2])
Handles usually have their coordinates set in display coordinates (generally by an associated widget)...
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.
void SetForegroundColor(double c[3])
Set the widget color, and the color of interactive handles.