36 #ifndef vtkBoxRepresentation_h 37 #define vtkBoxRepresentation_h 39 #include "vtkInteractionWidgetsModule.h" 137 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
147 vtkGetObjectMacro(SelectedFaceProperty,
vtkProperty);
157 vtkGetObjectMacro(SelectedOutlineProperty,
vtkProperty);
165 void SetOutlineFaceWires(
int);
166 vtkGetMacro(OutlineFaceWires,
int);
177 void SetOutlineCursorWires(
int);
178 vtkGetMacro(OutlineCursorWires,
int);
188 virtual void HandlesOn();
189 virtual void HandlesOff();
203 unsigned long event,
void* calldata) override;
205 unsigned long event,
void* calldata) override;
207 unsigned long event,
void* calldata,
int modify = 0) override;
209 unsigned long event,
void* calldata) override;
216 void ReleaseGraphicsResources(
vtkWindow*) override;
218 int RenderTranslucentPolygonalGeometry(
vtkViewport*) override;
219 vtkTypeBool HasTranslucentPolygonalGeometry() override;
246 void SetInteractionState(
int state);
253 vtkGetMacro(TwoPlaneMode,
bool);
254 void SetTwoPlaneMode(
bool);
262 vtkGetMacro(SnapToAxes,
bool);
263 vtkSetMacro(SnapToAxes,
bool);
285 vtkGetMacro(TranslationAxis,
int);
286 vtkSetClampMacro(TranslationAxis,
int, -1, 2);
311 double LastEventPosition[3];
312 double LastEventOrientation[4];
313 double StartEventOrientation[4];
314 double SnappedEventOrientations[3][4];
315 bool SnappedOrientation[3];
339 virtual void PositionHandles();
340 int HighlightHandle(
vtkProp* prop);
341 void HighlightFace(
int cellId);
342 void HighlightOutline(
int highlight);
343 virtual void ComputeNormals();
344 virtual void SizeHandles();
372 virtual void CreateDefaultProperties();
378 void GenerateOutline();
381 virtual void Translate(
const double* p1,
const double* p2);
382 virtual void Scale(
const double* p1,
const double* p2,
int X,
int Y);
383 virtual void Rotate(
int X,
int Y,
const double* p1,
const double* p2,
const double* vpn);
384 void MovePlusXFace(
const double* p1,
const double* p2);
385 void MoveMinusXFace(
const double* p1,
const double* p2);
386 void MovePlusYFace(
const double* p1,
const double* p2);
387 void MoveMinusYFace(
const double* p1,
const double* p2);
388 void MovePlusZFace(
const double* p1,
const double* p2);
389 void MoveMinusZFace(
const double* p1,
const double* p2);
390 void UpdatePose(
const double* p1,
const double* d1,
const double* p2,
const double* d2);
402 void MoveFace(
const double* p1,
const double* p2,
const double*
dir,
double* x1,
double* x2,
403 double* x3,
double* x4,
double* x5);
406 void GetDirection(
const double Nx[3],
const double Ny[3],
const double Nz[3],
double dir[3]);
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 ContrainedAxis.
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.
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.