represent the vtkDistanceWidget
More...
#include <vtkDistanceRepresentation.h>
represent the vtkDistanceWidget
The vtkDistanceRepresentation is a superclass for various types of representations for the vtkDistanceWidget. Logically subclasses consist of an axis and two handles for placing/manipulating the end points.
- See Also
- vtkDistanceWidget vtkHandleRepresentation vtkDistanceRepresentation2D vtkDistanceRepresentation
Definition at line 35 of file vtkDistanceRepresentation.h.
vtkDistanceRepresentation::vtkDistanceRepresentation |
( |
| ) |
|
|
protected |
vtkDistanceRepresentation::~vtkDistanceRepresentation |
( |
| ) |
|
|
protected |
static int vtkDistanceRepresentation::IsTypeOf |
( |
const char * |
type | ) |
|
|
static |
virtual int vtkDistanceRepresentation::IsA |
( |
const char * |
type | ) |
|
|
virtual |
virtual vtkObjectBase* vtkDistanceRepresentation::NewInstanceInternal |
( |
| ) |
const |
|
protectedvirtual |
void vtkDistanceRepresentation::PrintSelf |
( |
ostream & |
os, |
|
|
vtkIndent |
indent |
|
) |
| |
virtual double vtkDistanceRepresentation::GetDistance |
( |
| ) |
|
|
pure virtual |
virtual void vtkDistanceRepresentation::GetPoint1WorldPosition |
( |
double |
pos[3] | ) |
|
|
pure virtual |
virtual void vtkDistanceRepresentation::GetPoint2WorldPosition |
( |
double |
pos[3] | ) |
|
|
pure virtual |
virtual double* vtkDistanceRepresentation::GetPoint1WorldPosition |
( |
| ) |
|
|
pure virtual |
virtual double* vtkDistanceRepresentation::GetPoint2WorldPosition |
( |
| ) |
|
|
pure virtual |
virtual void vtkDistanceRepresentation::SetPoint1DisplayPosition |
( |
double |
pos[3] | ) |
|
|
pure virtual |
virtual void vtkDistanceRepresentation::SetPoint2DisplayPosition |
( |
double |
pos[3] | ) |
|
|
pure virtual |
virtual void vtkDistanceRepresentation::GetPoint1DisplayPosition |
( |
double |
pos[3] | ) |
|
|
pure virtual |
virtual void vtkDistanceRepresentation::GetPoint2DisplayPosition |
( |
double |
pos[3] | ) |
|
|
pure virtual |
virtual void vtkDistanceRepresentation::SetPoint1WorldPosition |
( |
double |
pos[3] | ) |
|
|
pure virtual |
virtual void vtkDistanceRepresentation::SetPoint2WorldPosition |
( |
double |
pos[3] | ) |
|
|
pure virtual |
This method is used to specify the type of handle representation to use for the two internal vtkHandleWidgets within vtkDistanceWidget. To use this method, create a dummy vtkHandleWidget (or subclass), and then invoke this method with this dummy. Then the vtkDistanceRepresentation uses this dummy to clone two vtkHandleWidgets of the same type. Make sure you set the handle representation before the widget is enabled. (The method InstantiateHandleRepresentation() is invoked by the vtkDistance widget.)
void vtkDistanceRepresentation::InstantiateHandleRepresentation |
( |
| ) |
|
This method is used to specify the type of handle representation to use for the two internal vtkHandleWidgets within vtkDistanceWidget. To use this method, create a dummy vtkHandleWidget (or subclass), and then invoke this method with this dummy. Then the vtkDistanceRepresentation uses this dummy to clone two vtkHandleWidgets of the same type. Make sure you set the handle representation before the widget is enabled. (The method InstantiateHandleRepresentation() is invoked by the vtkDistance widget.)
Set/Get the two handle representations used for the vtkDistanceWidget. (Note: properties can be set by grabbing these representations and setting the properties appropriately.)
Set/Get the two handle representations used for the vtkDistanceWidget. (Note: properties can be set by grabbing these representations and setting the properties appropriately.)
virtual void vtkDistanceRepresentation::SetTolerance |
( |
int |
| ) |
|
|
virtual |
The tolerance representing the distance to the widget (in pixels) in which the cursor is considered near enough to the end points of the widget to be active.
virtual int vtkDistanceRepresentation::GetTolerance |
( |
| ) |
|
|
virtual |
The tolerance representing the distance to the widget (in pixels) in which the cursor is considered near enough to the end points of the widget to be active.
virtual void vtkDistanceRepresentation::SetLabelFormat |
( |
const char * |
| ) |
|
|
virtual |
Specify the format to use for labelling the distance. Note that an empty string results in no label, or a format string without a "%" character will not print the distance value.
virtual char* vtkDistanceRepresentation::GetLabelFormat |
( |
| ) |
|
|
virtual |
Specify the format to use for labelling the distance. Note that an empty string results in no label, or a format string without a "%" character will not print the distance value.
virtual void vtkDistanceRepresentation::SetRulerMode |
( |
int |
| ) |
|
|
virtual |
Enable or disable ruler mode. When enabled, the ticks on the distance widget are separated by the amount specified by RulerDistance. Otherwise, the ivar NumberOfRulerTicks is used to draw the tick marks.
virtual int vtkDistanceRepresentation::GetRulerMode |
( |
| ) |
|
|
virtual |
Enable or disable ruler mode. When enabled, the ticks on the distance widget are separated by the amount specified by RulerDistance. Otherwise, the ivar NumberOfRulerTicks is used to draw the tick marks.
virtual void vtkDistanceRepresentation::RulerModeOn |
( |
| ) |
|
|
virtual |
Enable or disable ruler mode. When enabled, the ticks on the distance widget are separated by the amount specified by RulerDistance. Otherwise, the ivar NumberOfRulerTicks is used to draw the tick marks.
virtual void vtkDistanceRepresentation::RulerModeOff |
( |
| ) |
|
|
virtual |
Enable or disable ruler mode. When enabled, the ticks on the distance widget are separated by the amount specified by RulerDistance. Otherwise, the ivar NumberOfRulerTicks is used to draw the tick marks.
virtual void vtkDistanceRepresentation::SetRulerDistance |
( |
double |
| ) |
|
|
virtual |
Specify the RulerDistance which indicates the spacing of the major ticks. This ivar only has effect when the RulerMode is on.
virtual double vtkDistanceRepresentation::GetRulerDistance |
( |
| ) |
|
|
virtual |
Specify the RulerDistance which indicates the spacing of the major ticks. This ivar only has effect when the RulerMode is on.
virtual void vtkDistanceRepresentation::SetNumberOfRulerTicks |
( |
int |
| ) |
|
|
virtual |
Specify the number of major ruler ticks. This overrides any subclasses (e.g., vtkDistanceRepresentation2D) that have alternative methods to specify the number of major ticks. Note: the number of ticks is the number between the two handle endpoints. This ivar only has effect when the RulerMode is off.
virtual int vtkDistanceRepresentation::GetNumberOfRulerTicks |
( |
| ) |
|
|
virtual |
Specify the number of major ruler ticks. This overrides any subclasses (e.g., vtkDistanceRepresentation2D) that have alternative methods to specify the number of major ticks. Note: the number of ticks is the number between the two handle endpoints. This ivar only has effect when the RulerMode is off.
virtual void vtkDistanceRepresentation::BuildRepresentation |
( |
| ) |
|
|
virtual |
virtual int vtkDistanceRepresentation::ComputeInteractionState |
( |
int |
X, |
|
|
int |
Y, |
|
|
int |
modify = 0 |
|
) |
| |
|
virtual |
virtual void vtkDistanceRepresentation::StartWidgetInteraction |
( |
double |
e[2] | ) |
|
|
virtual |
virtual void vtkDistanceRepresentation::WidgetInteraction |
( |
double |
e[2] | ) |
|
|
virtual |
int vtkDistanceRepresentation::Tolerance |
|
protected |
char* vtkDistanceRepresentation::LabelFormat |
|
protected |
int vtkDistanceRepresentation::RulerMode |
|
protected |
double vtkDistanceRepresentation::RulerDistance |
|
protected |
int vtkDistanceRepresentation::NumberOfRulerTicks |
|
protected |
The documentation for this class was generated from the following file: