31#ifndef vtkCameraOrientationRepresentation_h
32#define vtkCameraOrientationRepresentation_h
34#include "vtkInteractionWidgetsModule.h"
91 vtkSetVector2Macro(
Size,
int);
92 vtkGetVector2Macro(
Size,
int);
161 vtkGetVector3Macro(
Back,
double);
163 vtkGetVector3Macro(
Up,
double);
234 vtkBooleanMacro(ContainerVisibility,
bool);
291 virtual void Rotate(
double newEventPos[2]);
328 const char*
AxisLabelsText[3][2] = { {
"X",
"-X" }, {
"Y",
"-Y" }, {
"Z",
"-Z" } };
330 double Back[3] = { 0., 0., -1. };
336 double Up[3] = { 0., 1., 0. };
represents an object (geometry & properties) in a rendered scene
A 3D representation for vtkCameraOrientationWidget.
vtkNew< vtkTexture > LabelTextures[3][2]
void StartWidgetInteraction(double eventPos[2]) override
These are methods that satisfy vtkWidgetRepresentation's API.
vtkNew< vtkActor > Shafts
vtkNew< vtkEllipticalButtonSource > HandleSources[3][2]
vtkTextProperty * GetXPlusLabelProperty()
Get the '+' axis label properties.
void AnchorToUpperRight()
Get/Set the widget anchor type.
~vtkCameraOrientationRepresentation() override
void PlaceWidget(double *) override
These are methods that satisfy vtkWidgetRepresentation's API.
virtual void HighlightHandle()
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.
vtkNew< vtkActor > Handles[3][2]
vtkNew< vtkActor > Container
void AnchorToLowerLeft()
Get/Set the widget anchor type.
vtkNew< vtkTextProperty > AxisVectorTextProperties[3][2]
vtkTextProperty * GetZMinusLabelProperty()
Get the '-' axis label properties.
vtkNew< vtkPolyData > Skeleton
void AnchorToLowerRight()
Get/Set the widget anchor type.
vtkTextProperty * GetYMinusLabelProperty()
Get the '-' axis label properties.
void RegisterPickers() override
Register internal Pickers in the Picking Manager.
AnchorType AnchorPosition
virtual void CreateDefaultProperties()
int ContainerCircumferentialResolution
vtkTextProperty * GetZPlusLabelProperty()
Get the '+' axis label properties.
virtual void Rotate(double newEventPos[2])
vtkNew< vtkDoubleArray > AxesColors
bool IsAnyHandleSelected()
Is a grabber button picked.
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.
vtkCameraOrientationRepresentation()
vtkNew< vtkPropPicker > HandlePicker
vtkNew< vtkTubeFilter > ShaftGlyphs
AnchorType GetAnchorPosition()
Get/Set the widget anchor type.
int HandleCircumferentialResolution
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.
int ContainerRadialResolution
int RenderOpaqueGeometry(vtkViewport *) override
Methods supporting, and required by, the rendering process.
double LastEventPosition[3]
vtkTransform * GetTransform()
Retrieve internal transform of this widget representation.
vtkTypeBool HasTranslucentPolygonalGeometry() override
Methods supporting, and required by, the rendering process.
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.
void ShallowCopy(vtkProp *prop) override
Shallow copy of an axes actor.
void FinalizeHandlePicks()
static vtkCameraOrientationRepresentation * New()
const char * AxisLabelsText[3][2]
double NormalizedHandleDia
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.
void ReleaseGraphicsResources(vtkWindow *) override
Methods supporting, and required by, the rendering process.
virtual void PositionHandles()
vtkNew< vtkTransform > Transform
double * GetBounds() override
These are methods that satisfy vtkWidgetRepresentation's API.
vtkNew< vtkPoints > Points
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
Methods supporting, and required by, the rendering process.
void ApplyInteractionState(const int &state)
vtkProperty * GetContainerProperty()
Get the container property.
void AnchorToUpperLeft()
Get/Set the widget anchor type.
vtkNew< vtkDiskSource > ContainerSource
virtual void CreateDefaultGeometry()
vtkNew< vtkImageData > LabelImages[3][2]
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
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(...)