#include <Modules/Loadable/Annotations/VTKWidgets/vtkAnnotationROIRepresentation.h>
|
void | ComputeNormals () |
|
virtual void | CreateDefaultProperties () |
|
void | GenerateOutline () |
|
void | GetDirection (const double Nx[3], const double Ny[3], const double Nz[3], double dir[3]) |
|
virtual void | HighlightFace (int cellId) |
|
virtual int | HighlightHandle (vtkProp *prop) |
|
void | HighlightOutline (int highlight) |
|
void | MoveFace (double *p1, double *p2, double *dir, double *x1, double *x2, double *x3, double *x4, double *x5) |
|
void | MoveMinusXFace (double *p1, double *p2) |
|
void | MoveMinusYFace (double *p1, double *p2) |
|
void | MoveMinusZFace (double *p1, double *p2) |
|
void | MovePlusXFace (double *p1, double *p2) |
|
void | MovePlusYFace (double *p1, double *p2) |
|
void | MovePlusZFace (double *p1, double *p2) |
|
virtual void | PositionHandles () |
|
virtual void | Rotate (int X, int Y, double *p1, double *p2, double *vpn) |
|
virtual void | Scale (double *p1, double *p2, int X, int Y) |
|
virtual void | SizeHandles () |
|
virtual void | Translate (double *p1, double *p2) |
| Helper methods. More...
|
|
| vtkAnnotationROIRepresentation () |
|
| ~vtkAnnotationROIRepresentation () override |
|
◆ Superclass
◆ anonymous enum
◆ vtkAnnotationROIRepresentation()
vtkAnnotationROIRepresentation::vtkAnnotationROIRepresentation |
( |
| ) |
|
|
protected |
◆ ~vtkAnnotationROIRepresentation()
vtkAnnotationROIRepresentation::~vtkAnnotationROIRepresentation |
( |
| ) |
|
|
overrideprotected |
◆ BuildRepresentation()
void vtkAnnotationROIRepresentation::BuildRepresentation |
( |
| ) |
|
|
override |
◆ ComputeInteractionState()
int vtkAnnotationROIRepresentation::ComputeInteractionState |
( |
int |
X, |
|
|
int |
Y, |
|
|
int |
modify = 0 |
|
) |
| |
|
override |
◆ ComputeNormals()
void vtkAnnotationROIRepresentation::ComputeNormals |
( |
| ) |
|
|
protected |
◆ CreateDefaultProperties()
virtual void vtkAnnotationROIRepresentation::CreateDefaultProperties |
( |
| ) |
|
|
protectedvirtual |
◆ GenerateOutline()
void vtkAnnotationROIRepresentation::GenerateOutline |
( |
| ) |
|
|
protected |
◆ GetActors()
void vtkAnnotationROIRepresentation::GetActors |
( |
vtkPropCollection * |
actors | ) |
|
|
override |
◆ GetBounds()
double* vtkAnnotationROIRepresentation::GetBounds |
( |
| ) |
|
|
override |
◆ GetCenter()
void vtkAnnotationROIRepresentation::GetCenter |
( |
double |
center[] | ) |
|
get the center of the box
◆ GetClassName()
virtual const char* vtkAnnotationROIRepresentation::GetClassName |
( |
| ) |
|
|
virtual |
◆ GetDirection()
void vtkAnnotationROIRepresentation::GetDirection |
( |
const double |
Nx[3], |
|
|
const double |
Ny[3], |
|
|
const double |
Nz[3], |
|
|
double |
dir[3] |
|
) |
| |
|
protected |
◆ GetExtents()
void vtkAnnotationROIRepresentation::GetExtents |
( |
double |
bounds[] | ) |
|
get 3 extents along sides of the box
◆ GetFaceProperty()
virtual vtkProperty* vtkAnnotationROIRepresentation::GetFaceProperty |
( |
| ) |
|
|
virtual |
Get the face properties (the faces of the box). The properties of the face when selected and normal can be set.
◆ GetInsideOut()
virtual int vtkAnnotationROIRepresentation::GetInsideOut |
( |
| ) |
|
|
virtual |
◆ GetOutlineCursorWires()
virtual int vtkAnnotationROIRepresentation::GetOutlineCursorWires |
( |
| ) |
|
|
virtual |
◆ GetOutlineFaceWires()
virtual int vtkAnnotationROIRepresentation::GetOutlineFaceWires |
( |
| ) |
|
|
virtual |
◆ GetOutlineProperty()
virtual vtkProperty* vtkAnnotationROIRepresentation::GetOutlineProperty |
( |
| ) |
|
|
virtual |
Get the outline properties (the outline of the box). The properties of the outline when selected and normal can be set.
◆ GetPlanes()
void vtkAnnotationROIRepresentation::GetPlanes |
( |
vtkPlanes * |
planes | ) |
|
Get the planes describing the implicit function defined by the box widget. The user must provide the instance of the class vtkPlanes. Note that vtkPlanes is a subclass of vtkImplicitFunction, meaning that it can be used by a variety of filters to perform clipping, cutting, and selection of data. (The direction of the normals of the planes can be reversed enabling the InsideOut flag.)
◆ GetPolyData()
void vtkAnnotationROIRepresentation::GetPolyData |
( |
vtkPolyData * |
pd | ) |
|
Grab the polydata (including points) that define the box widget. The polydata consists of 6 quadrilateral faces and 15 points. The first eight points define the eight corner vertices; the next six define the -x,+x, -y,+y, -z,+z face points; and the final point (the 15th out of 15 points) defines the center of the box. These point values are guaranteed to be up-to-date when either the widget's corresponding InteractionEvent or EndInteractionEvent events are invoked. The user provides the vtkPolyData and the points and cells are added to it.
◆ GetSelectedFaceProperty()
virtual vtkProperty* vtkAnnotationROIRepresentation::GetSelectedFaceProperty |
( |
| ) |
|
|
virtual |
◆ GetSelectedHandleProperty()
virtual vtkProperty* vtkAnnotationROIRepresentation::GetSelectedHandleProperty |
( |
| ) |
|
|
virtual |
Get the handle properties (the little balls are the handles). The properties of the handles, when selected or normal, can be specified.
◆ GetSelectedOutlineProperty()
virtual vtkProperty* vtkAnnotationROIRepresentation::GetSelectedOutlineProperty |
( |
| ) |
|
|
virtual |
◆ GetTransform()
virtual void vtkAnnotationROIRepresentation::GetTransform |
( |
vtkTransform * |
t | ) |
|
|
virtual |
Retrieve a linear transform characterizing the transformation of the box. Note that the transformation is relative to where PlaceWidget() was initially called. This method modifies the transform provided. The transform can be used to control the position of vtkProp3D's, as well as other transformation operations (e.g., vtkTranformPolyData).
◆ GetWorldToLocalMatrix()
virtual vtkMatrix4x4* vtkAnnotationROIRepresentation::GetWorldToLocalMatrix |
( |
| ) |
|
|
virtual |
◆ HandlesOff()
void vtkAnnotationROIRepresentation::HandlesOff |
( |
| ) |
|
◆ HandlesOn()
void vtkAnnotationROIRepresentation::HandlesOn |
( |
| ) |
|
Switches handles (the spheres) on or off by manipulating the underlying actor visibility.
◆ HasTranslucentPolygonalGeometry()
int vtkAnnotationROIRepresentation::HasTranslucentPolygonalGeometry |
( |
| ) |
|
|
override |
◆ HighlightFace()
virtual void vtkAnnotationROIRepresentation::HighlightFace |
( |
int |
cellId | ) |
|
|
protectedvirtual |
◆ HighlightHandle()
virtual int vtkAnnotationROIRepresentation::HighlightHandle |
( |
vtkProp * |
prop | ) |
|
|
protectedvirtual |
◆ HighlightOutline()
void vtkAnnotationROIRepresentation::HighlightOutline |
( |
int |
highlight | ) |
|
|
protected |
◆ InsideOutOff()
virtual void vtkAnnotationROIRepresentation::InsideOutOff |
( |
| ) |
|
|
virtual |
◆ InsideOutOn()
virtual void vtkAnnotationROIRepresentation::InsideOutOn |
( |
| ) |
|
|
virtual |
◆ IsA()
virtual int vtkAnnotationROIRepresentation::IsA |
( |
const char * |
type | ) |
|
|
virtual |
◆ IsTypeOf()
static int vtkAnnotationROIRepresentation::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
◆ MoveFace()
void vtkAnnotationROIRepresentation::MoveFace |
( |
double * |
p1, |
|
|
double * |
p2, |
|
|
double * |
dir, |
|
|
double * |
x1, |
|
|
double * |
x2, |
|
|
double * |
x3, |
|
|
double * |
x4, |
|
|
double * |
x5 |
|
) |
| |
|
protected |
◆ MoveMinusXFace()
void vtkAnnotationROIRepresentation::MoveMinusXFace |
( |
double * |
p1, |
|
|
double * |
p2 |
|
) |
| |
|
protected |
◆ MoveMinusYFace()
void vtkAnnotationROIRepresentation::MoveMinusYFace |
( |
double * |
p1, |
|
|
double * |
p2 |
|
) |
| |
|
protected |
◆ MoveMinusZFace()
void vtkAnnotationROIRepresentation::MoveMinusZFace |
( |
double * |
p1, |
|
|
double * |
p2 |
|
) |
| |
|
protected |
◆ MovePlusXFace()
void vtkAnnotationROIRepresentation::MovePlusXFace |
( |
double * |
p1, |
|
|
double * |
p2 |
|
) |
| |
|
protected |
◆ MovePlusYFace()
void vtkAnnotationROIRepresentation::MovePlusYFace |
( |
double * |
p1, |
|
|
double * |
p2 |
|
) |
| |
|
protected |
◆ MovePlusZFace()
void vtkAnnotationROIRepresentation::MovePlusZFace |
( |
double * |
p1, |
|
|
double * |
p2 |
|
) |
| |
|
protected |
◆ New()
◆ OutlineCursorWiresOff()
void vtkAnnotationROIRepresentation::OutlineCursorWiresOff |
( |
| ) |
|
|
inline |
◆ OutlineCursorWiresOn()
void vtkAnnotationROIRepresentation::OutlineCursorWiresOn |
( |
| ) |
|
|
inline |
◆ OutlineFaceWiresOff()
void vtkAnnotationROIRepresentation::OutlineFaceWiresOff |
( |
| ) |
|
|
inline |
◆ OutlineFaceWiresOn()
void vtkAnnotationROIRepresentation::OutlineFaceWiresOn |
( |
| ) |
|
|
inline |
◆ PlaceWidget()
void vtkAnnotationROIRepresentation::PlaceWidget |
( |
double |
bounds[6] | ) |
|
|
override |
These are methods that satisfy vtkWidgetRepresentation's API.
◆ PositionHandles()
virtual void vtkAnnotationROIRepresentation::PositionHandles |
( |
| ) |
|
|
protectedvirtual |
◆ PrintSelf()
void vtkAnnotationROIRepresentation::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
|
override |
◆ ReleaseGraphicsResources()
void vtkAnnotationROIRepresentation::ReleaseGraphicsResources |
( |
vtkWindow * |
| ) |
|
|
override |
Methods supporting, and required by, the rendering process.
◆ RenderOpaqueGeometry()
int vtkAnnotationROIRepresentation::RenderOpaqueGeometry |
( |
vtkViewport * |
| ) |
|
|
override |
◆ RenderTranslucentPolygonalGeometry()
int vtkAnnotationROIRepresentation::RenderTranslucentPolygonalGeometry |
( |
vtkViewport * |
| ) |
|
|
override |
◆ Rotate()
virtual void vtkAnnotationROIRepresentation::Rotate |
( |
int |
X, |
|
|
int |
Y, |
|
|
double * |
p1, |
|
|
double * |
p2, |
|
|
double * |
vpn |
|
) |
| |
|
protectedvirtual |
◆ SafeDownCast()
◆ Scale()
virtual void vtkAnnotationROIRepresentation::Scale |
( |
double * |
p1, |
|
|
double * |
p2, |
|
|
int |
X, |
|
|
int |
Y |
|
) |
| |
|
protectedvirtual |
◆ SetInsideOut()
virtual void vtkAnnotationROIRepresentation::SetInsideOut |
( |
int |
| ) |
|
|
virtual |
Set/Get the InsideOut flag. This data member is used in conjunction with the GetPlanes() method. When off, the normals point out of the box. When on, the normals point into the hexahedron. InsideOut is off by default.
◆ SetInteractionState()
virtual void vtkAnnotationROIRepresentation::SetInteractionState |
( |
int |
state | ) |
|
|
virtual |
The interaction state may be set from a widget (e.g., vtkSlicerBoxWidget2) or other object. This controls how the interaction with the widget proceeds. Normally this method is used as part of a handshaking process with the widget: First ComputeInteractionState() is invoked that returns a state based on geometric considerations (i.e., cursor near a widget feature), then based on events, the widget may modify this further.
Reimplemented in vtkAnnotationROIRepresentation2D.
◆ SetOutlineCursorWires()
void vtkAnnotationROIRepresentation::SetOutlineCursorWires |
( |
int |
| ) |
|
Control the representation of the outline. This flag enables the cursor lines running between the handles. By default cursor wires are on.
◆ SetOutlineFaceWires()
void vtkAnnotationROIRepresentation::SetOutlineFaceWires |
( |
int |
| ) |
|
Control the representation of the outline. This flag enables face wires. By default face wires are off.
◆ SetTransform()
virtual void vtkAnnotationROIRepresentation::SetTransform |
( |
vtkTransform * |
t | ) |
|
|
virtual |
Set the position, scale and orientation of the box widget using the transform specified. Note that the transformation is relative to where PlaceWidget() was initially called (i.e., the original bounding box).
◆ SetWorldToLocalMatrix()
void vtkAnnotationROIRepresentation::SetWorldToLocalMatrix |
( |
vtkMatrix4x4 * |
worldToLocalMatrix | ) |
|
Get/Set optional world to local coordinate system transformation.
◆ SizeHandles()
virtual void vtkAnnotationROIRepresentation::SizeHandles |
( |
| ) |
|
|
protectedvirtual |
◆ StartWidgetInteraction()
void vtkAnnotationROIRepresentation::StartWidgetInteraction |
( |
double |
e[2] | ) |
|
|
override |
◆ Translate()
virtual void vtkAnnotationROIRepresentation::Translate |
( |
double * |
p1, |
|
|
double * |
p2 |
|
) |
| |
|
protectedvirtual |
◆ WidgetInteraction()
void vtkAnnotationROIRepresentation::WidgetInteraction |
( |
double |
e[2] | ) |
|
|
override |
◆ BoundingBox
vtkBox* vtkAnnotationROIRepresentation::BoundingBox |
|
protected |
◆ CurrentHandle
vtkActor* vtkAnnotationROIRepresentation::CurrentHandle |
|
protected |
◆ CurrentHexFace
int vtkAnnotationROIRepresentation::CurrentHexFace |
|
protected |
◆ FaceProperty
vtkProperty* vtkAnnotationROIRepresentation::FaceProperty |
|
protected |
◆ Handle
vtkActor** vtkAnnotationROIRepresentation::Handle |
|
protected |
◆ HandleGeometry
vtkSphereSource** vtkAnnotationROIRepresentation::HandleGeometry |
|
protected |
◆ HandleMapper
vtkPolyDataMapper** vtkAnnotationROIRepresentation::HandleMapper |
|
protected |
◆ HandlePicker
vtkCellPicker* vtkAnnotationROIRepresentation::HandlePicker |
|
protected |
◆ HandleProperties
vtkProperty* vtkAnnotationROIRepresentation::HandleProperties[NUMBER_HANDLES] |
|
protected |
◆ HexActor
vtkActor* vtkAnnotationROIRepresentation::HexActor |
|
protected |
◆ HexFace
vtkActor* vtkAnnotationROIRepresentation::HexFace |
|
protected |
◆ HexFaceMapper
vtkPolyDataMapper* vtkAnnotationROIRepresentation::HexFaceMapper |
|
protected |
◆ HexFacePolyData
vtkPolyData* vtkAnnotationROIRepresentation::HexFacePolyData |
|
protected |
◆ HexMapper
vtkPolyDataMapper* vtkAnnotationROIRepresentation::HexMapper |
|
protected |
◆ HexOutline
vtkActor* vtkAnnotationROIRepresentation::HexOutline |
|
protected |
◆ HexPolyData
vtkPolyData* vtkAnnotationROIRepresentation::HexPolyData |
|
protected |
◆ InsideOut
int vtkAnnotationROIRepresentation::InsideOut |
|
protected |
◆ LastEventPosition
double vtkAnnotationROIRepresentation::LastEventPosition[4] |
|
protected |
◆ LastPicker
vtkCellPicker* vtkAnnotationROIRepresentation::LastPicker |
|
protected |
◆ Matrix
vtkMatrix4x4* vtkAnnotationROIRepresentation::Matrix |
|
protected |
double vtkAnnotationROIRepresentation::N[6][3] |
|
protected |
◆ NUMBER_HANDLES
const int vtkAnnotationROIRepresentation::NUMBER_HANDLES = 7 |
|
static |
◆ OutlineCursorWires
int vtkAnnotationROIRepresentation::OutlineCursorWires |
|
protected |
◆ OutlineFaceWires
int vtkAnnotationROIRepresentation::OutlineFaceWires |
|
protected |
◆ OutlineMapper
vtkPolyDataMapper* vtkAnnotationROIRepresentation::OutlineMapper |
|
protected |
◆ OutlinePolyData
vtkPolyData* vtkAnnotationROIRepresentation::OutlinePolyData |
|
protected |
◆ OutlineProperty
vtkProperty* vtkAnnotationROIRepresentation::OutlineProperty |
|
protected |
◆ PlaneNormals
vtkDoubleArray* vtkAnnotationROIRepresentation::PlaneNormals |
|
protected |
◆ PlanePoints
vtkPoints* vtkAnnotationROIRepresentation::PlanePoints |
|
protected |
◆ Points
vtkPoints* vtkAnnotationROIRepresentation::Points |
|
protected |
◆ SelectedFaceProperty
vtkProperty* vtkAnnotationROIRepresentation::SelectedFaceProperty |
|
protected |
◆ SelectedHandleProperty
vtkProperty* vtkAnnotationROIRepresentation::SelectedHandleProperty |
|
protected |
◆ SelectedOutlineProperty
vtkProperty* vtkAnnotationROIRepresentation::SelectedOutlineProperty |
|
protected |
◆ Transform
vtkTransform* vtkAnnotationROIRepresentation::Transform |
|
protected |
◆ WorldToLocalMatrix
vtkMatrix4x4* vtkAnnotationROIRepresentation::WorldToLocalMatrix |
|
protected |
The documentation for this class was generated from the following file: