38 #ifndef vtkBoxRepresentation_h
39 #define vtkBoxRepresentation_h
86 vtkSetMacro(InsideOut,
int);
87 vtkGetMacro(InsideOut,
int);
88 vtkBooleanMacro(InsideOut,
int);
119 vtkGetObjectMacro(SelectedHandleProperty,
vtkProperty);
126 vtkGetObjectMacro(SelectedFaceProperty,
vtkProperty);
133 vtkGetObjectMacro(SelectedOutlineProperty,
vtkProperty);
139 void SetOutlineFaceWires(
int);
140 vtkGetMacro(OutlineFaceWires,
int);
149 void SetOutlineCursorWires(
int);
150 vtkGetMacro(OutlineCursorWires,
int);
158 virtual void HandlesOn();
159 virtual void HandlesOff();
181 enum {Outside=0,MoveF0,MoveF1,MoveF2,MoveF3,MoveF4,MoveF5,
Translating,Rotating,Scaling};
190 void SetInteractionState(
int state);
197 double LastEventPosition[3];
215 virtual void PositionHandles();
216 int HighlightHandle(
vtkProp *prop);
217 void HighlightFace(
int cellId);
218 void HighlightOutline(
int highlight);
219 virtual void ComputeNormals();
220 virtual void SizeHandles();
251 virtual void CreateDefaultProperties();
257 void GenerateOutline();
260 virtual void Translate(
double *p1,
double *p2);
261 virtual void Scale(
double *p1,
double *p2,
int X,
int Y);
262 virtual void Rotate(
int X,
int Y,
double *p1,
double *p2,
double *vpn);
263 void MovePlusXFace(
double *p1,
double *p2);
264 void MoveMinusXFace(
double *p1,
double *p2);
265 void MovePlusYFace(
double *p1,
double *p2);
266 void MoveMinusYFace(
double *p1,
double *p2);
267 void MovePlusZFace(
double *p1,
double *p2);
268 void MoveMinusZFace(
double *p1,
double *p2);
277 void MoveFace(
double *p1,
double *p2,
double *
dir,
278 double *x1,
double *x2,
double *x3,
double *x4,
282 void GetDirection(
const double Nx[3],
const double Ny[3],
283 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
represent the position of a point in 3D space
abstract specification for Viewports
represent surface properties of a geometric object
implicit function for convex set of planes
a class defining the representation for the vtkBoxWidget2
vtkProperty * SelectedFaceProperty
vtkProperty * OutlineProperty
concrete dataset represents vertices, lines, polygons, and triangle strips
dynamic, self-adjusting array of double
window superclass for vtkRenderWindow
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
vtkPolyDataMapper * HexFaceMapper
vtkSphereSource ** HandleGeometry
vtkPolyData * HexFacePolyData
vtkProperty * SelectedOutlineProperty
create a line defined by two end points
map vtkPolyData to graphics primitives
vtkProperty * FaceProperty
vtkProperty * HandleProperty
void OutlineFaceWiresOn()
void OutlineCursorWiresOff()
ray-cast cell picker for all kinds of Prop3Ds
vtkDoubleArray * PlaneNormals
void OutlineCursorWiresOn()
vtkCellPicker * LastPicker
vtkCellPicker * HandlePicker
implicit function for a bounding box
void OutlineFaceWiresOff()
represent and manipulate 3D points
vtkPolyData * HexPolyData
vtkPolyDataMapper * OutlineMapper