VTK
|
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems More...
#include <vtkCoordinate.h>
Public Types | |
typedef vtkObject | Superclass |
![]() | |
typedef vtkObjectBase | Superclass |
Public Member Functions | |
virtual int | IsA (const char *type) |
vtkCoordinate * | NewInstance () const |
void | PrintSelf (ostream &os, vtkIndent indent) |
const char * | GetCoordinateSystemAsString () |
double * | GetComputedDoubleViewportValue (vtkViewport *) |
double * | GetComputedDoubleDisplayValue (vtkViewport *) |
double * | GetComputedValue (vtkViewport *) |
virtual void | SetCoordinateSystem (int) |
virtual int | GetCoordinateSystem () |
void | SetCoordinateSystemToDisplay () |
void | SetCoordinateSystemToNormalizedDisplay () |
void | SetCoordinateSystemToViewport () |
void | SetCoordinateSystemToNormalizedViewport () |
void | SetCoordinateSystemToView () |
void | SetCoordinateSystemToWorld () |
virtual void | SetValue (double, double, double) |
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 *) |
virtual vtkCoordinate * | GetReferenceCoordinate () |
void | SetViewport (vtkViewport *viewport) |
virtual vtkViewport * | GetViewport () |
double * | GetComputedWorldValue (vtkViewport *) |
int * | GetComputedViewportValue (vtkViewport *) |
int * | GetComputedDisplayValue (vtkViewport *) |
int * | GetComputedLocalDisplayValue (vtkViewport *) |
virtual double * | GetComputedUserDefinedValue (vtkViewport *) |
![]() | |
vtkObject * | NewInstance () const |
virtual void | DebugOn () |
virtual void | DebugOff () |
bool | GetDebug () |
void | SetDebug (bool debugFlag) |
virtual void | Modified () |
virtual unsigned long | GetMTime () |
unsigned long | AddObserver (unsigned long event, vtkCommand *, float priority=0.0f) |
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 *) |
int | HasObserver (unsigned long event, vtkCommand *) |
int | HasObserver (const char *event, vtkCommand *) |
void | RemoveObserver (unsigned long tag) |
void | RemoveObservers (unsigned long event) |
void | RemoveObservers (const char *event) |
void | RemoveAllObservers () |
int | HasObserver (unsigned long event) |
int | HasObserver (const char *event) |
template<class U , class T > | |
unsigned long | AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f) |
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) |
int | InvokeEvent (unsigned long event, void *callData) |
int | InvokeEvent (const char *event, void *callData) |
int | InvokeEvent (unsigned long event) |
int | InvokeEvent (const char *event) |
![]() | |
const char * | GetClassName () const |
virtual void | Delete () |
virtual void | FastDelete () |
void | Print (ostream &os) |
virtual void | Register (vtkObjectBase *o) |
virtual void | UnRegister (vtkObjectBase *o) |
void | SetReferenceCount (int) |
void | PrintRevisions (ostream &) |
virtual void | PrintHeader (ostream &os, vtkIndent indent) |
virtual void | PrintTrailer (ostream &os, vtkIndent indent) |
int | GetReferenceCount () |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkCoordinate * | SafeDownCast (vtkObjectBase *o) |
static vtkCoordinate * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkObject * | SafeDownCast (vtkObjectBase *o) |
static vtkObject * | New () |
static void | BreakOnError () |
static void | SetGlobalWarningDisplay (int val) |
static void | GlobalWarningDisplayOn () |
static void | GlobalWarningDisplayOff () |
static int | GetGlobalWarningDisplay () |
![]() | |
static int | IsTypeOf (const char *name) |
static vtkObjectBase * | New () |
Protected Member Functions | |
virtual vtkObjectBase * | NewInstanceInternal () const |
vtkCoordinate () | |
~vtkCoordinate () | |
![]() | |
vtkObject () | |
virtual | ~vtkObject () |
virtual void | RegisterInternal (vtkObjectBase *, int check) |
virtual void | UnRegisterInternal (vtkObjectBase *, int check) |
void | InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=NULL) |
void | InternalReleaseFocus () |
![]() | |
vtkObjectBase () | |
virtual | ~vtkObjectBase () |
virtual void | CollectRevisions (ostream &) |
virtual void | ReportReferences (vtkGarbageCollector *) |
vtkObjectBase (const vtkObjectBase &) | |
void | operator= (const vtkObjectBase &) |
Protected Attributes | |
double | Value [3] |
int | CoordinateSystem |
vtkCoordinate * | ReferenceCoordinate |
vtkViewport * | Viewport |
double | ComputedWorldValue [3] |
int | ComputedDisplayValue [2] |
int | ComputedViewportValue [2] |
int | Computing |
double | ComputedDoubleDisplayValue [2] |
double | ComputedDoubleViewportValue [2] |
double | ComputedUserDefinedValue [3] |
![]() | |
bool | Debug |
vtkTimeStamp | MTime |
vtkSubjectHelper * | SubjectHelper |
![]() | |
vtkAtomicInt32 | ReferenceCount |
vtkWeakPointerBase ** | WeakPointers |
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 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!
Definition at line 69 of file vtkCoordinate.h.
typedef vtkObject vtkCoordinate::Superclass |
Definition at line 72 of file vtkCoordinate.h.
|
protected |
|
protected |
|
static |
|
virtual |
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.
|
static |
|
protectedvirtual |
Reimplemented from vtkObject.
vtkCoordinate* vtkCoordinate::NewInstance | ( | ) | const |
|
virtual |
|
static |
Creates an instance of this class with the following defaults: value of (0,0,0) in world coordinates.
|
virtual |
Set/get the coordinate system which this coordinate is defined in. The options are Display, Normalized Display, Viewport, Normalized Viewport, View, and World.
|
virtual |
Set/get the coordinate system which this coordinate is defined in. The options are Display, Normalized Display, Viewport, Normalized Viewport, View, and World.
|
inline |
Set/get the coordinate system which this coordinate is defined in. The options are Display, Normalized Display, Viewport, Normalized Viewport, View, and World.
Definition at line 85 of file vtkCoordinate.h.
|
inline |
Set/get the coordinate system which this coordinate is defined in. The options are Display, Normalized Display, Viewport, Normalized Viewport, View, and World.
Definition at line 87 of file vtkCoordinate.h.
|
inline |
Set/get the coordinate system which this coordinate is defined in. The options are Display, Normalized Display, Viewport, Normalized Viewport, View, and World.
Definition at line 89 of file vtkCoordinate.h.
|
inline |
Set/get the coordinate system which this coordinate is defined in. The options are Display, Normalized Display, Viewport, Normalized Viewport, View, and World.
Definition at line 91 of file vtkCoordinate.h.
|
inline |
Set/get the coordinate system which this coordinate is defined in. The options are Display, Normalized Display, Viewport, Normalized Viewport, View, and World.
Definition at line 93 of file vtkCoordinate.h.
|
inline |
Set/get the coordinate system which this coordinate is defined in. The options are Display, Normalized Display, Viewport, Normalized Viewport, View, and World.
Definition at line 95 of file vtkCoordinate.h.
const char* vtkCoordinate::GetCoordinateSystemAsString | ( | ) |
Set/get the value of this coordinate. This can be thought of as the position of this coordinate in its coordinate system.
|
virtual |
Set/get the value of this coordinate. This can be thought of as the position of this coordinate in its coordinate system.
|
virtual |
Set/get the value of this coordinate. This can be thought of as the position of this coordinate in its coordinate system.
Set/get the value of this coordinate. This can be thought of as the position of this coordinate in its coordinate system.
|
virtual |
Set/get the value of this coordinate. This can be thought of as the position of this coordinate in its coordinate system.
Set/get the value of this coordinate. This can be thought of as the position of this coordinate in its coordinate system.
Definition at line 106 of file vtkCoordinate.h.
|
virtual |
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.
|
virtual |
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.
void vtkCoordinate::SetViewport | ( | vtkViewport * | viewport | ) |
If you want this coordinate to be relative to a specific vtkViewport (vtkRenderer) then you can specify that here. NOTE: this is a raw pointer, not a weak pointer not a reference counted object to avoid reference cycle loop between rendering classes and filter classes.
|
virtual |
If you want this coordinate to be relative to a specific vtkViewport (vtkRenderer) then you can specify that here. NOTE: this is a raw pointer, not a weak pointer not a reference counted object to avoid reference cycle loop between rendering classes and filter classes.
double* vtkCoordinate::GetComputedWorldValue | ( | vtkViewport * | ) |
Return the computed value in a specified coordinate system.
int* vtkCoordinate::GetComputedViewportValue | ( | vtkViewport * | ) |
Return the computed value in a specified coordinate system.
int* vtkCoordinate::GetComputedDisplayValue | ( | vtkViewport * | ) |
Return the computed value in a specified coordinate system.
int* vtkCoordinate::GetComputedLocalDisplayValue | ( | vtkViewport * | ) |
Return the computed value in a specified coordinate system.
double* vtkCoordinate::GetComputedDoubleViewportValue | ( | vtkViewport * | ) |
double* vtkCoordinate::GetComputedDoubleDisplayValue | ( | vtkViewport * | ) |
double* vtkCoordinate::GetComputedValue | ( | vtkViewport * | ) |
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
|
inlinevirtual |
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
Definition at line 149 of file vtkCoordinate.h.
|
protected |
Definition at line 157 of file vtkCoordinate.h.
|
protected |
Definition at line 158 of file vtkCoordinate.h.
|
protected |
Definition at line 159 of file vtkCoordinate.h.
|
protected |
Definition at line 160 of file vtkCoordinate.h.
|
protected |
Definition at line 161 of file vtkCoordinate.h.
|
protected |
Definition at line 162 of file vtkCoordinate.h.
|
protected |
Definition at line 163 of file vtkCoordinate.h.
|
protected |
Definition at line 164 of file vtkCoordinate.h.
|
protected |
Definition at line 166 of file vtkCoordinate.h.
|
protected |
Definition at line 167 of file vtkCoordinate.h.
|
protected |
Definition at line 168 of file vtkCoordinate.h.