28#ifndef vtkCameraOrientationRepresentation_h
29#define vtkCameraOrientationRepresentation_h
31#include "vtkInteractionWidgetsModule.h"
78 this->InteractionState =
79 this->InteractionState < 0 ? 0 : (this->InteractionState > 2 ? 2 : this->
InteractionState);
88 vtkSetVector2Macro(Size,
int);
89 vtkGetVector2Macro(Size,
int);
96 vtkSetVector2Macro(Padding,
int);
97 vtkGetVector2Macro(Padding,
int);
115 this->AnchorPosition = AnchorType::LowerLeft;
120 this->AnchorPosition = AnchorType::UpperLeft;
125 this->AnchorPosition = AnchorType::LowerRight;
130 this->AnchorPosition = AnchorType::UpperRight;
140 vtkSetMacro(TotalLength,
double);
141 vtkGetMacro(TotalLength,
double);
149 vtkSetMacro(NormalizedHandleDia,
double);
150 vtkGetMacro(NormalizedHandleDia,
double);
157 vtkGetMacro(Azimuth,
double);
158 vtkGetVector3Macro(Back,
double);
159 vtkGetMacro(Elevation,
double);
160 vtkGetVector3Macro(Up,
double);
167 vtkSetClampMacro(ShaftResolution,
int, 3, 256);
168 vtkGetMacro(ShaftResolution,
int);
175 vtkSetClampMacro(HandleCircumferentialResolution,
int, 3, 256);
176 vtkGetMacro(HandleCircumferentialResolution,
int);
183 vtkSetClampMacro(ContainerCircumferentialResolution,
int, 3, 256);
184 vtkGetMacro(ContainerCircumferentialResolution,
int);
191 vtkSetClampMacro(ContainerRadialResolution,
int, 3, 256);
192 vtkGetMacro(ContainerRadialResolution,
int);
199 vtkGetMacro(PickedAxis,
int);
200 vtkGetMacro(PickedDir,
int);
231 vtkBooleanMacro(ContainerVisibility,
bool);
279 virtual
void CreateDefaultGeometry();
280 virtual
void CreateDefaultProperties();
281 virtual
void PositionHandles();
282 virtual
void HighlightHandle();
283 virtual
void Rotate(
double newEventPos[2]);
284 void RegisterPickers() override;
285 void FinalizeHandlePicks();
316 int Padding[2] = { 10, 10 };
317 int Size[2] = { 120, 120 };
320 const char* AxisLabelsText[3][2] = { {
"X",
"-X" }, {
"Y",
"-Y" }, {
"Z",
"-Z" } };
322 double Back[3] = { 0., 0., -1. };
323 double Bounds[6] = {};
324 double Elevation = 0.;
325 double MotionFactor = 1.;
326 double NormalizedHandleDia = 0.4;
327 double TotalLength = 1.;
328 double Up[3] = { 0., 1., 0. };
329 int ContainerCircumferentialResolution = 32;
330 int ContainerRadialResolution = 1;
331 int HandleCircumferentialResolution = 32;
332 int ShaftResolution = 10;
336 int LastPickedAx = -1;
338 int LastPickedDir = -1;
341 double LastEventPosition[3] = {};
represents an object (geometry & properties) in a rendered scene
a 3D axes representation for interactive widgets
void StartWidgetInteraction(double eventPos[2]) override
These are methods that satisfy vtkWidgetRepresentation's API.
vtkTextProperty * GetXPlusLabelProperty()
Get the '+' axis label properties.
void AnchorToUpperRight()
Get/Set the widget anchor type.
void PlaceWidget(double *) override
These are methods that satisfy vtkWidgetRepresentation's API.
vtkTextProperty * GetXMinusLabelProperty()
Get the '-' axis label properties.
void GetActors(vtkPropCollection *) override
For some exporters and other other operations we must be able to collect all the actors or volumes.
void AnchorToLowerLeft()
Get/Set the widget anchor type.
vtkTextProperty * GetZMinusLabelProperty()
Get the '-' axis label properties.
void AnchorToLowerRight()
Get/Set the widget anchor type.
vtkTextProperty * GetYMinusLabelProperty()
Get the '-' axis label properties.
vtkTextProperty * GetZPlusLabelProperty()
Get the '+' axis label properties.
void BuildRepresentation() override
These are methods that satisfy vtkWidgetRepresentation's API.
void WidgetInteraction(double newEventPos[2]) override
These are methods that satisfy vtkWidgetRepresentation's API.
AnchorType GetAnchorPosition()
Get/Set the widget anchor type.
bool GetContainerVisibility()
Show container to indicate mouse presence.
int ComputeInteractionState(int X, int Y, int modify=0) override
These are methods that satisfy vtkWidgetRepresentation's API.
vtkTransform * GetTransform()
Retrieve internal transform of this widget representation.
void ApplyInteractionState(const InteractionStateType &state)
The interaction state may be set from a widget (e.g., vtkCameraOrientationWidget) or other object.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkCameraOrientationRepresentation * New()
void EndWidgetInteraction(double newEventPos[2]) override
These are methods that satisfy vtkWidgetRepresentation's API.
void SetContainerVisibility(bool state)
Show container to indicate mouse presence.
vtkTextProperty * GetYPlusLabelProperty()
Get the '+' axis label properties.
InteractionStateType GetInteractionStateAsEnum() noexcept
Convenient method to get InteractionState as enum.
double * GetBounds() override
These are methods that satisfy vtkWidgetRepresentation's API.
void ApplyInteractionState(const int &state)
vtkProperty * GetContainerProperty()
Get the container property.
void AnchorToUpperLeft()
Get/Set the widget anchor type.
create a disk with hole in center
dynamic, self-adjusting array of double
topologically and geometrically regular array of data
a simple class to control print indentation
Allocate and hold a VTK object.
virtual void Modified()
Update the modification time for this object.
represent and manipulate 3D points
concrete dataset represents vertices, lines, polygons, and triangle strips
pick an actor/prop using graphics hardware
abstract superclass for all actors, volumes and annotations
represent surface properties of a geometric object
represent text properties.
handles properties associated with a texture map
filter that generates tubes around lines
abstract specification for Viewports
window superclass for vtkRenderWindow
#define VTK_SIZEHINT(...)