46#ifndef vtkBoxRepresentation_h
47#define vtkBoxRepresentation_h
49#include "vtkInteractionWidgetsModule.h"
53VTK_ABI_NAMESPACE_BEGIN
241 unsigned long event,
void* calldata) override;
243 unsigned long event,
void* calldata) override;
245 unsigned long event,
void* calldata,
int modify = 0) override;
247 unsigned long event,
void* calldata) override;
375 vtkSetMacro(RotationAxisMode,
int);
376 vtkGetMacro(RotationAxisMode,
int);
460 virtual void Translate(
const double* p1,
const double* p2);
461 virtual void Scale(
const double* p1,
const double* p2,
int X,
int Y);
462 virtual void Rotate(
int X,
int Y,
const double* p1,
const double* p2,
const double* vpn);
469 void UpdatePose(
const double* p1,
const double* d1,
const double* p2,
const double* d2);
481 void MoveFace(
const double* p1,
const double* p2,
const double* dir,
double* x1,
double* x2,
482 double* x3,
double* x4,
double* x5);
485 void GetDirection(
const double Nx[3],
const double Ny[3],
const double Nz[3],
double dir[3]);
represents an object (geometry & properties) in a rendered scene
int ComputeInteractionState(int X, int Y, int modify=0) override
These are methods that satisfy vtkWidgetRepresentation's API.
void SetZTranslationAxisOn()
Toggles constraint translation axis on/off.
virtual void PositionHandles()
double LastEventOrientation[4]
virtual void SetTransform(vtkTransform *t)
Set the position, scale and orientation of the box widget using the transform specified.
void PrintSelf(ostream &os, vtkIndent indent) override
Standard methods for the class.
vtkProperty * OutlineProperty
void MovePlusZFace(const double *p1, const double *p2)
double LastEventPosition[3]
void OutlineCursorWiresOff()
Control the representation of the outline.
void MoveMinusYFace(const double *p1, const double *p2)
int ComputeComplexInteractionState(vtkRenderWindowInteractor *iren, vtkAbstractWidget *widget, unsigned long event, void *calldata, int modify=0) override
These are methods that satisfy vtkWidgetRepresentation's API.
void GetPlanes(vtkPlanes *planes)
Get the planes describing the implicit function defined by the box widget.
void SetOutlineCursorWires(int)
Control the representation of the outline.
vtkPolyDataMapper * HexFaceMapper
void StepBackward()
For complex events should we snap orientations to be aligned with the x y z axes.
void SetCorners(std::vector< double > points)
Get/Set the x,y,z coordinates for the corner points of the 3D box.
vtkProperty * FaceProperty
int RenderTranslucentPolygonalGeometry(vtkViewport *) override
Methods supporting, and required by, the rendering process.
void GetActors(vtkPropCollection *) override
These methods are necessary to make this representation behave as a vtkProp (i.e.,...
void MoveMinusXFace(const double *p1, const double *p2)
void MoveFace(const double *p1, const double *p2, const double *dir, double *x1, double *x2, double *x3, double *x4, double *x5)
virtual void HandlesOff()
Switches handles (the spheres) on or off by manipulating the underlying actor visibility.
vtkProperty * HandleProperty
int RenderOpaqueGeometry(vtkViewport *) override
Methods supporting, and required by, the rendering process.
bool IsRotationAxisLocked() const
Get/Set the rotation mode of the box.
void HighlightFace(int cellId)
int HighlightHandle(vtkProp *prop)
void SetRotationAxisModeToZ()
Get/Set the rotation mode of the box.
bool IsTranslationConstrained()
Returns true if ConstrainedAxis.
void OutlineFaceWiresOn()
Control the representation of the outline.
vtkPolyDataMapper * OutlineMapper
vtkPlane * GetUnderlyingPlane(int i)
void GetDirection(const double Nx[3], const double Ny[3], const double Nz[3], double dir[3])
void SetXTranslationAxisOn()
Toggles constraint translation axis on/off.
virtual void Translate(const double *p1, const double *p2)
void MovePlusYFace(const double *p1, const double *p2)
void EndComplexInteraction(vtkRenderWindowInteractor *iren, vtkAbstractWidget *widget, unsigned long event, void *calldata) override
These are methods that satisfy vtkWidgetRepresentation's API.
virtual void SizeHandles()
void BuildRepresentation() override
These are methods that satisfy vtkWidgetRepresentation's API.
vtkCellPicker * LastPicker
virtual void Rotate(int X, int Y, const double *p1, const double *p2, const double *vpn)
vtkSphereSource ** HandleGeometry
double StartEventOrientation[4]
virtual void SetRotationAxisMode(int)
Get/Set the rotation mode of the box.
virtual void GetTransform(vtkTransform *t)
Retrieve a linear transform characterizing the transformation of the box.
vtkDoubleArray * PlaneNormals
void SetTwoPlaneMode(bool)
In two plane mode only the X planes are shown this is useful for defining thick slabs.
void WidgetInteraction(double e[2]) override
These are methods that satisfy vtkWidgetRepresentation's API.
vtkProperty * SelectedOutlineProperty
void OutlineCursorWiresOn()
Control the representation of the outline.
virtual void ComputeNormals()
vtkProperty * SelectedFaceProperty
void HighlightOutline(int highlight)
void SetInteractionColor(const double _arg[3])
Set the interaction color.
vtkPolyData * HexPolyData
void GetPolyData(vtkPolyData *pd)
Grab the polydata (including points) that define the box widget.
void SetRotationAxisModeToFree()
Get/Set the rotation mode of the box.
void UpdatePose(const double *p1, const double *d1, const double *p2, const double *d2)
vtkProperty * SelectedHandleProperty
void MovePlusXFace(const double *p1, const double *p2)
bool SnappedOrientation[3]
vtkPolyDataMapper * HexMapper
vtkTypeBool HasTranslucentPolygonalGeometry() override
Methods supporting, and required by, the rendering process.
void SetYTranslationAxisOn()
Toggles constraint translation axis on/off.
void StartWidgetInteraction(double e[2]) override
These are methods that satisfy vtkWidgetRepresentation's API.
void SetTranslationAxisOff()
Toggles constraint translation axis on/off.
void StepForward()
For complex events should we snap orientations to be aligned with the x y z axes.
vtkPolyDataMapper ** HandleMapper
vtkCellPicker * HandlePicker
void SetInteractionState(int state)
The interaction state may be set from a widget (e.g., vtkBoxWidget2) or other object.
virtual void HandlesOn()
Switches handles (the spheres) on or off by manipulating the underlying actor visibility.
void SetOutlineFaceWires(int)
Control the representation of the outline.
~vtkBoxRepresentation() override
void StartComplexInteraction(vtkRenderWindowInteractor *iren, vtkAbstractWidget *widget, unsigned long event, void *calldata) override
These are methods that satisfy vtkWidgetRepresentation's API.
void OutlineFaceWiresOff()
Control the representation of the outline.
virtual void CreateDefaultProperties()
void RegisterPickers() override
Register internal Pickers in the Picking Manager.
std::vector< double > GetCorners()
Get/Set the x,y,z coordinates for the corner points of the 3D box.
void ComplexInteraction(vtkRenderWindowInteractor *iren, vtkAbstractWidget *widget, unsigned long event, void *calldata) override
These are methods that satisfy vtkWidgetRepresentation's API.
void PlaceWidget(double bounds[6]) override
These are methods that satisfy vtkWidgetRepresentation's API.
vtkPolyData * HexFacePolyData
vtkPolyData * OutlinePolyData
void ReleaseGraphicsResources(vtkWindow *) override
Methods supporting, and required by, the rendering process.
virtual void Scale(const double *p1, const double *p2, int X, int Y)
double * GetBounds() override
These are methods that satisfy vtkWidgetRepresentation's API.
static vtkBoxRepresentation * New()
Instantiate the class.
void SetForegroundColor(double _arg1, double _arg2, double _arg3)
Set the foreground color (the outline of the box).
void SetRotationAxisModeToX()
Get/Set the rotation mode of the box.
vtkCellPicker * HexPicker
void MoveMinusZFace(const double *p1, const double *p2)
double SnappedEventOrientations[3][4]
void SetInteractionColor(double _arg1, double _arg2, double _arg3)
Set the interaction color.
void SetRotationAxisModeToY()
Get/Set the rotation mode of the box.
implicit function for a bounding box
ray-cast cell picker for all kinds of Prop3Ds
dynamic, self-adjusting array of double
a simple class to control print indentation
create a line defined by two end points
represent and manipulate 4x4 transformation matrices
perform various plane computations
implicit function for convex set of planes
represent the position of a point in 3D space
represent and manipulate 3D points
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
represent surface properties of a geometric object
platform-independent render window interaction including picking and frame rate control.
create a polygonal sphere centered at the origin
abstract specification for Viewports
window superclass for vtkRenderWindow
#define VTK_SIZEHINT(...)
#define VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL
#define VTK_MARSHALEXCLUDE(reason)
#define vtkPolyDataAlgorithm