#include <vtkCoordinate.h>
Inheritance diagram for vtkCoordinate:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | SetCoordinateSystem (int) |
virtual int | GetCoordinateSystem () |
void | SetCoordinateSystemToDisplay () |
void | SetCoordinateSystemToNormalizedDisplay () |
void | SetCoordinateSystemToViewport () |
void | SetCoordinateSystemToNormalizedViewport () |
void | SetCoordinateSystemToView () |
void | SetCoordinateSystemToWorld () |
const char * | GetCoordinateSystemAsString () |
virtual void | SetValue (float, float, float) |
virtual void | SetValue (float[3]) |
virtual float * | GetValue () |
virtual void | GetValue (float &, float &, float &) |
virtual void | GetValue (float[3]) |
void | SetValue (float a, float b) |
virtual void | SetReferenceCoordinate (vtkCoordinate *) |
virtual vtkCoordinate * | GetReferenceCoordinate () |
void | SetViewport (vtkViewport *viewport) |
virtual vtkViewport * | GetViewport () |
float * | GetComputedWorldValue (vtkViewport *) |
int * | GetComputedViewportValue (vtkViewport *) |
int * | GetComputedDisplayValue (vtkViewport *) |
int * | GetComputedLocalDisplayValue (vtkViewport *) |
float * | GetComputedFloatViewportValue (vtkViewport *) |
float * | GetComputedFloatDisplayValue (vtkViewport *) |
float * | GetComputedValue (vtkViewport *) |
virtual float * | GetComputedUserDefinedValue (vtkViewport *) |
Static Public Methods | |
int | IsTypeOf (const char *type) |
vtkCoordinate * | SafeDownCast (vtkObject *o) |
vtkCoordinate * | New () |
Protected Methods | |
vtkCoordinate () | |
~vtkCoordinate () | |
vtkCoordinate (const vtkCoordinate &) | |
void | operator= (const vtkCoordinate &) |
Protected Attributes | |
float | Value [3] |
int | CoordinateSystem |
vtkCoordinate * | ReferenceCoordinate |
vtkViewport * | Viewport |
float | ComputedWorldValue [3] |
int | ComputedDisplayValue [2] |
int | ComputedViewportValue [2] |
int | Computing |
float | ComputedFloatDisplayValue [2] |
float | ComputedFloatViewportValue [2] |
float | ComputedUserDefinedValue [3] |
The coordinate systems in vtk are as follows:
DISPLAY - x-y pixel values in window NORMALIZED DISPLAY - x-y (0,1) normalized values VIEWPORT - x-y pixel values in viewport NORMALIZED VIEWPORT - x-y (0,1) normalized value in viewport VIEW - x-y-z (-1,1) values in camera coordinates. (z is depth) 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!
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. |
|
GetComputedUserDefinedValue() is to be used only when the coordinate system is VTK_USERDEFINED. The user must subclass vtkCoordinate and override this function, when set as the TransformCoordinate in 2D-Mappers, the user can customize display of 2D polygons |
|
GetComputedValue() will return either World, Viewport or Display based on what has been set as the coordinate system. This is good for objects like vtkLineSource, where the user might want to use them as World or Viewport coordinates |
|
Return the computed value in a specified coordinate system. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. |
|
Creates an instance of this class with the following defaults: value of (0,0,0) in world coordinates. Reimplemented from vtkObject. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkObject. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. |
|
Set/get the coordinate system which this coordinate is defined in. The options are Display, Normalized Display, Viewport, Normalized Viewport, View, and World. |
|
If this coordinate is relative to another coordinate, then specify that coordinate as the ReferenceCoordinate. If this is NULL the coordinate is assumed to be absolute. |
|
Set/get the value of this coordinate. This can be thought of as the position of this coordinate in its coordinate system. |
|
If you want this coordinate to be relative to a specific vtkViewport (vtkRenderer, vtkImager) then you can specify that here. |