27 #ifndef vtkBoxRepresentation_h
28 #define vtkBoxRepresentation_h
30 #include "vtkInteractionWidgetsModule.h"
33 VTK_ABI_NAMESPACE_BEGIN
129 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
139 vtkGetObjectMacro(SelectedFaceProperty,
vtkProperty);
149 vtkGetObjectMacro(SelectedOutlineProperty,
vtkProperty);
156 void SetForegroundColor(
double _arg1,
double _arg2,
double _arg3);
159 this->SetForegroundColor(_arg[0], _arg[1], _arg[2]);
168 void SetInteractionColor(
double _arg1,
double _arg2,
double _arg3);
171 this->SetInteractionColor(_arg[0], _arg[1], _arg[2]);
180 void SetOutlineFaceWires(
int);
181 vtkGetMacro(OutlineFaceWires,
int);
192 void SetOutlineCursorWires(
int);
193 vtkGetMacro(OutlineCursorWires,
int);
203 virtual void HandlesOn();
204 virtual void HandlesOff();
218 unsigned long event,
void* calldata) override;
220 unsigned long event,
void* calldata) override;
222 unsigned long event,
void* calldata,
int modify = 0) override;
224 unsigned long event,
void* calldata) override;
231 void ReleaseGraphicsResources(
vtkWindow*) override;
233 int RenderTranslucentPolygonalGeometry(
vtkViewport*) override;
234 vtkTypeBool HasTranslucentPolygonalGeometry() override;
261 void SetInteractionState(
int state);
268 vtkGetMacro(TwoPlaneMode,
bool);
269 void SetTwoPlaneMode(
bool);
277 vtkGetMacro(SnapToAxes,
bool);
278 vtkSetMacro(SnapToAxes,
bool);
300 vtkGetMacro(TranslationAxis,
int);
301 vtkSetClampMacro(TranslationAxis,
int, -1, 2);
333 double LastEventPosition[3];
334 double LastEventOrientation[4];
335 double StartEventOrientation[4];
336 double SnappedEventOrientations[3][4];
337 bool SnappedOrientation[3];
361 virtual void PositionHandles();
362 int HighlightHandle(
vtkProp* prop);
363 void HighlightFace(
int cellId);
364 void HighlightOutline(
int highlight);
365 virtual void ComputeNormals();
366 virtual void SizeHandles();
394 virtual void CreateDefaultProperties();
400 void GenerateOutline();
403 virtual void Translate(
const double* p1,
const double* p2);
404 virtual void Scale(
const double* p1,
const double* p2,
int X,
int Y);
405 virtual void Rotate(
int X,
int Y,
const double* p1,
const double* p2,
const double* vpn);
406 void MovePlusXFace(
const double* p1,
const double* p2);
407 void MoveMinusXFace(
const double* p1,
const double* p2);
408 void MovePlusYFace(
const double* p1,
const double* p2);
409 void MoveMinusYFace(
const double* p1,
const double* p2);
410 void MovePlusZFace(
const double* p1,
const double* p2);
411 void MoveMinusZFace(
const double* p1,
const double* p2);
412 void UpdatePose(
const double* p1,
const double* d1,
const double* p2,
const double* d2);
424 void MoveFace(
const double* p1,
const double* p2,
const double*
dir,
double* x1,
double* x2,
425 double* x3,
double* x4,
double* x5);
428 void GetDirection(
const double Nx[3],
const double Ny[3],
const double Nz[3],
double dir[3]);
435 VTK_ABI_NAMESPACE_END
vtkProperty * SelectedHandleProperty
abstract superclass for all actors, volumes and annotations
vtkPolyData * OutlinePolyData
vtkPolyDataMapper * HexMapper
represents an object (geometry & properties) in a rendered scene
represent and manipulate 4x4 transformation matrices
void SetXTranslationAxisOn()
Toggles constraint translation axis on/off.
represent the position of a point in 3D space
abstract specification for Viewports
represent surface properties of a geometric object
bool IsTranslationConstrained()
Returns true if ConstrainedAxis.
void SetInteractionColor(const double _arg[3])
Set the interaction color.
implicit function for convex set of planes
a class defining the representation for the vtkBoxWidget2
vtkProperty * SelectedFaceProperty
vtkPlane * GetUnderlyingPlane(int i)
vtkProperty * OutlineProperty
concrete dataset represents vertices, lines, polygons, and triangle strips
dynamic, self-adjusting array of double
window superclass for vtkRenderWindow
platform-independent render window interaction including picking and frame rate control.
create a polygonal sphere centered at the origin
Superclass for algorithms that produce only polydata as output.
a simple class to control print indentation
vtkCellPicker * HexPicker
vtkPolyDataMapper ** HandleMapper
perform various plane computations
vtkPolyDataMapper * HexFaceMapper
vtkSphereSource ** HandleGeometry
#define VTK_SIZEHINT(...)
vtkPolyData * HexFacePolyData
vtkProperty * SelectedOutlineProperty
create a line defined by two end points
map vtkPolyData to graphics primitives
vtkProperty * FaceProperty
vtkProperty * HandleProperty
void OutlineFaceWiresOn()
Control the representation of the outline.
void OutlineCursorWiresOff()
Control the representation of the outline.
void SetYTranslationAxisOn()
Toggles constraint translation axis on/off.
ray-cast cell picker for all kinds of Prop3Ds
vtkDoubleArray * PlaneNormals
void OutlineCursorWiresOn()
Control the representation of the outline.
void SetForegroundColor(const double _arg[3])
Set the foreground color (the outline of the box).
vtkCellPicker * LastPicker
vtkCellPicker * HandlePicker
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
implicit function for a bounding box
void OutlineFaceWiresOff()
Control the representation of the outline.
represent and manipulate 3D points
vtkPolyData * HexPolyData
void SetZTranslationAxisOn()
Toggles constraint translation axis on/off.
vtkPolyDataMapper * OutlineMapper
void SetTranslationAxisOff()
Toggles constraint translation axis on/off.