|  | VTK
    9.0.1
    | 
 
 
 
Go to the documentation of this file.
   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]);
 
  
map vtkPolyData to graphics primitives
represent and manipulate 3D points
perform various plane computations
vtkDoubleArray * PlaneNormals
vtkProperty * SelectedOutlineProperty
a class defining the representation for the vtkBoxWidget2
void SetYTranslationAxisOn()
represent the position of a point in 3D space
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on.
vtkPolyDataMapper * OutlineMapper
vtkPolyData * OutlinePolyData
void SetTranslationAxisOff()
vtkCellPicker * HexPicker
implicit function for convex set of planes
vtkPolyDataMapper ** HandleMapper
window superclass for vtkRenderWindow
#define VTK_SIZEHINT(...)
vtkPolyDataMapper * HexMapper
vtkPolyData * HexFacePolyData
vtkPolyDataMapper * HexFaceMapper
create a polygonal sphere centered at the origin
void SetZTranslationAxisOn()
represents an object (geometry & properties) in a rendered scene
a simple class to control print indentation
represent and manipulate 4x4 transformation matrices
create a line defined by two end points
void OutlineFaceWiresOn()
platform-independent render window interaction including picking and frame rate control.
abstract specification for Viewports
void SetXTranslationAxisOn()
Toggles constraint translation axis on/off.
vtkPolyData * HexPolyData
vtkPlane * GetUnderlyingPlane(int i)
abstract superclass for all actors, volumes and annotations
vtkProperty * FaceProperty
implicit function for a bounding box
void OutlineCursorWiresOff()
vtkProperty * SelectedFaceProperty
vtkSphereSource ** HandleGeometry
concrete dataset represents vertices, lines, polygons, and triangle strips
bool IsTranslationConstrained()
Returns true if ContrainedAxis.
void OutlineCursorWiresOn()
dynamic, self-adjusting array of double
represent surface properties of a geometric object
vtkCellPicker * LastPicker
void OutlineFaceWiresOff()
ray-cast cell picker for all kinds of Prop3Ds
vtkProperty * HandleProperty
vtkProperty * OutlineProperty
vtkProperty * SelectedHandleProperty
vtkCellPicker * HandlePicker
Superclass for algorithms that produce only polydata as output.