39 #ifndef vtkBoxRepresentation_h
40 #define vtkBoxRepresentation_h
42 #include "vtkInteractionWidgetsModule.h"
96 vtkGetMacro(InsideOut,
int);
165 vtkGetMacro(OutlineFaceWires,
int);
177 vtkGetMacro(OutlineCursorWires,
int);
214 enum {Outside=0,
MoveF0,MoveF1,MoveF2,MoveF3,MoveF4,MoveF5,Translating,Rotating,Scaling};
232 double LastEventPosition[3];
296 virtual void Scale(
double *p1,
double *p2,
int X,
int Y);
297 virtual void Rotate(
int X,
int Y,
double *p1,
double *p2,
double *vpn);
313 double *x1,
double *x2,
double *x3,
double *x4,
318 const double Nz[3],
double dir[3]);
represents an object (geometry & properties) in a rendered scene
a class defining the representation for the vtkBoxWidget2
virtual int ComputeInteractionState(int X, int Y, int modify=0)
virtual void PositionHandles()
virtual void SetTransform(vtkTransform *t)
Set the position, scale and orientation of the box widget using the transform specified.
vtkProperty * OutlineProperty
void OutlineCursorWiresOff()
void GetPlanes(vtkPlanes *planes)
Get the planes describing the implicit function defined by the box widget.
virtual void RegisterPickers()
Register internal Pickers in the Picking Manager.
virtual void Rotate(int X, int Y, double *p1, double *p2, double *vpn)
void SetOutlineCursorWires(int)
Control the representation of the outline.
vtkPolyDataMapper * HexFaceMapper
vtkProperty * FaceProperty
virtual void HandlesOff()
vtkProperty * HandleProperty
virtual int RenderOpaqueGeometry(vtkViewport *)
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
void HighlightFace(int cellId)
int HighlightHandle(vtkProp *prop)
void MovePlusZFace(double *p1, double *p2)
void OutlineFaceWiresOn()
virtual int HasTranslucentPolygonalGeometry()
WARNING: INTERNAL METHOD - NOT INTENDED FOR GENERAL USE DO NOT USE THESE METHODS OUTSIDE OF THE RENDE...
vtkPolyDataMapper * OutlineMapper
void GetDirection(const double Nx[3], const double Ny[3], const double Nz[3], double dir[3])
void MoveMinusZFace(double *p1, double *p2)
static vtkBoxRepresentation * New()
Instantiate the class.
virtual void SizeHandles()
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void WidgetInteraction(double e[2])
vtkCellPicker * LastPicker
virtual void StartWidgetInteraction(double e[2])
vtkSphereSource ** HandleGeometry
virtual void GetTransform(vtkTransform *t)
Retrieve a linear transform characterizing the transformation of the box.
virtual void Scale(double *p1, double *p2, int X, int Y)
vtkDoubleArray * PlaneNormals
void MoveFace(double *p1, double *p2, double *dir, double *x1, double *x2, double *x3, double *x4, double *x5)
virtual void Translate(double *p1, double *p2)
vtkProperty * SelectedOutlineProperty
void OutlineCursorWiresOn()
virtual void ComputeNormals()
vtkProperty * SelectedFaceProperty
void HighlightOutline(int highlight)
void MovePlusYFace(double *p1, double *p2)
vtkPolyData * HexPolyData
virtual void PlaceWidget(double bounds[6])
These are methods that satisfy vtkWidgetRepresentation's API.
void GetPolyData(vtkPolyData *pd)
Grab the polydata (including points) that define the box widget.
vtkProperty * SelectedHandleProperty
virtual void ReleaseGraphicsResources(vtkWindow *)
Methods supporting, and required by, the rendering process.
virtual double * GetBounds()
Methods to make this class behave as a vtkProp.
vtkPolyDataMapper * HexMapper
virtual int RenderTranslucentPolygonalGeometry(vtkViewport *)
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.
virtual void BuildRepresentation()
void SetOutlineFaceWires(int)
Control the representation of the outline.
void OutlineFaceWiresOff()
virtual void CreateDefaultProperties()
vtkPolyData * HexFacePolyData
vtkPolyData * OutlinePolyData
void MoveMinusXFace(double *p1, double *p2)
void MovePlusXFace(double *p1, double *p2)
vtkCellPicker * HexPicker
void MoveMinusYFace(double *p1, double *p2)
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
implicit function for convex set of planes
represent the position of a point in 3D space
represent and manipulate 3D points
Superclass for algorithms that produce only polydata as output.
map vtkPolyData to graphics primitives
concrete dataset represents vertices, lines, polygons, and triangle strips
abstract superclass for all actors, volumes and annotations
represent surface properties of a geometric object
create a polygonal sphere centered at the origin
abstract specification for Viewports
window superclass for vtkRenderWindow
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.