perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
More...
|
virtual vtkTypeBool | IsA (const char *type) |
| Return 1 if this class is the same type of (or a subclass of) the named class. More...
|
|
vtkCoordinate * | NewInstance () const |
|
void | PrintSelf (ostream &os, vtkIndent indent) override |
| Methods invoked by print to print information about the object including superclasses. More...
|
|
virtual void | SetCoordinateSystem (int) |
| Set/get the coordinate system which this coordinate is defined in. More...
|
|
virtual int | GetCoordinateSystem () |
|
void | SetCoordinateSystemToDisplay () |
|
void | SetCoordinateSystemToNormalizedDisplay () |
|
void | SetCoordinateSystemToViewport () |
|
void | SetCoordinateSystemToNormalizedViewport () |
|
void | SetCoordinateSystemToView () |
|
void | SetCoordinateSystemToPose () |
|
void | SetCoordinateSystemToWorld () |
|
const char * | GetCoordinateSystemAsString () |
|
virtual void | SetValue (double, double, double) |
| Set/get the value of this coordinate. More...
|
|
virtual void | SetValue (double[3]) |
|
virtual double * | GetValue () |
|
virtual void | GetValue (double &, double &, double &) |
|
virtual void | GetValue (double[3]) |
|
void | SetValue (double a, double b) |
|
virtual void | SetReferenceCoordinate (vtkCoordinate *) |
| If this coordinate is relative to another coordinate, then specify that coordinate as the ReferenceCoordinate. More...
|
|
virtual vtkCoordinate * | GetReferenceCoordinate () |
|
void | SetViewport (vtkViewport *viewport) |
| If you want this coordinate to be relative to a specific vtkViewport (vtkRenderer) then you can specify that here. More...
|
|
virtual vtkViewport * | GetViewport () |
|
double * | GetComputedWorldValue (vtkViewport *) |
| Return the computed value in a specified coordinate system. More...
|
|
int * | GetComputedViewportValue (vtkViewport *) |
|
int * | GetComputedDisplayValue (vtkViewport *) |
|
int * | GetComputedLocalDisplayValue (vtkViewport *) |
|
double * | GetComputedDoubleViewportValue (vtkViewport *) |
|
double * | GetComputedDoubleDisplayValue (vtkViewport *) |
|
double * | GetComputedValue (vtkViewport *) |
| GetComputedValue() will return either World, Viewport or Display based on what has been set as the coordinate system. More...
|
|
virtual double * | GetComputedUserDefinedValue (vtkViewport *) |
| GetComputedUserDefinedValue() is to be used only when the coordinate system is VTK_USERDEFINED. More...
|
|
| vtkBaseTypeMacro (vtkObject, vtkObjectBase) |
|
virtual void | DebugOn () |
| Turn debugging output on. More...
|
|
virtual void | DebugOff () |
| Turn debugging output off. More...
|
|
bool | GetDebug () |
| Get the value of the debug flag. More...
|
|
void | SetDebug (bool debugFlag) |
| Set the value of the debug flag. More...
|
|
virtual void | Modified () |
| Update the modification time for this object. More...
|
|
virtual vtkMTimeType | GetMTime () |
| Return this object's modified time. More...
|
|
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
| Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
|
|
unsigned long | AddObserver (const char *event, vtkCommand *, float priority=0.0f) |
|
vtkCommand * | GetCommand (unsigned long tag) |
|
void | RemoveObserver (vtkCommand *) |
|
void | RemoveObservers (unsigned long event, vtkCommand *) |
|
void | RemoveObservers (const char *event, vtkCommand *) |
|
vtkTypeBool | HasObserver (unsigned long event, vtkCommand *) |
|
vtkTypeBool | HasObserver (const char *event, vtkCommand *) |
|
void | RemoveObserver (unsigned long tag) |
|
void | RemoveObservers (unsigned long event) |
|
void | RemoveObservers (const char *event) |
|
void | RemoveAllObservers () |
|
vtkTypeBool | HasObserver (unsigned long event) |
|
vtkTypeBool | HasObserver (const char *event) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
| Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
|
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
|
template<class U , class T > |
unsigned long | AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f) |
| Allow user to set the AbortFlagOn() with the return value of the callback method. More...
|
|
int | InvokeEvent (unsigned long event, void *callData) |
| This method invokes an event and return whether the event was aborted or not. More...
|
|
int | InvokeEvent (const char *event, void *callData) |
|
int | InvokeEvent (unsigned long event) |
|
int | InvokeEvent (const char *event) |
|
const char * | GetClassName () const |
| Return the class name as a string. More...
|
|
virtual void | Delete () |
| Delete a VTK object. More...
|
|
virtual void | FastDelete () |
| Delete a reference to this object. More...
|
|
void | InitializeObjectBase () |
|
void | Print (ostream &os) |
| Print an object to an ostream. More...
|
|
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
|
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
|
virtual void | Register (vtkObjectBase *o) |
| Increase the reference count (mark as used by another object). More...
|
|
virtual void | UnRegister (vtkObjectBase *o) |
| Decrease the reference count (release by another object). More...
|
|
int | GetReferenceCount () |
| Return the current reference count of this object. More...
|
|
void | SetReferenceCount (int) |
| Sets the reference count. More...
|
|
void | PrintRevisions (ostream &) |
| Legacy. More...
|
|
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
vtkCoordinate represents position in a variety of coordinate systems, and converts position to other coordinate systems. It also supports relative positioning, so you can create a cascade of vtkCoordinate objects (no loops please!) that refer to each other. The typical usage of this object is to set the coordinate system in which to represent a position (e.g., SetCoordinateSystemToNormalizedDisplay()), set the value of the coordinate (e.g., SetValue()), and then invoke the appropriate method to convert to another coordinate system (e.g., GetComputedWorldValue()).
The coordinate systems in vtk are as follows:
DISPLAY - x-y pixel values in window
0, 0 is the lower left of the first pixel,
size, size is the upper right of the last pixel
NORMALIZED DISPLAY - x-y (0,1) normalized values
0, 0 is the lower left of the first pixel,
1, 1 is the upper right of the last pixel
VIEWPORT - x-y pixel values in viewport
0, 0 is the lower left of the first pixel,
size, size is the upper right of the last pixel
NORMALIZED VIEWPORT - x-y (0,1) normalized value in viewport
0, 0 is the lower left of the first pixel,
1, 1 is the upper right of the last pixel
VIEW - x-y-z (-1,1) values in pose coordinates. (z is depth)
POSE - world coords translated and rotated to the camera
position and view direction
WORLD - x-y-z global coordinate values
USERDEFINED - x-y-z in User defined space
If you cascade vtkCoordinate objects, you refer to another vtkCoordinate object which in turn can refer to others, and so on. This allows you to create composite groups of things like vtkActor2D that are positioned relative to one another. Note that in cascaded sequences, each vtkCoordinate object may be specified in different coordinate systems!
- See also
- vtkActor2D vtkScalarBarActor
- Examples:
- vtkCoordinate (Examples)
- Tests:
- vtkCoordinate (Tests)
Definition at line 81 of file vtkCoordinate.h.