Go to the documentation of this file.
65 #ifndef vtkCoordinate_h
66 #define vtkCoordinate_h
68 #include "vtkRenderingCoreModule.h"
73 #define VTK_NORMALIZED_DISPLAY 1
74 #define VTK_VIEWPORT 2
75 #define VTK_NORMALIZED_VIEWPORT 3
79 #define VTK_USERDEFINED 7
99 vtkSetMacro(CoordinateSystem,
int);
100 vtkGetMacro(CoordinateSystem,
int);
110 { this->SetCoordinateSystem(
VTK_VIEW); }
112 { this->SetCoordinateSystem(
VTK_POSE); }
114 { this->SetCoordinateSystem(
VTK_WORLD); }
124 vtkSetVector3Macro(Value,
double);
125 vtkGetVector3Macro(Value,
double);
127 { this->SetValue(a, b, 0.0); }
181 {
return this->Value; }
191 double ComputedWorldValue[3];
192 int ComputedDisplayValue[2];
193 int ComputedViewportValue[2];
196 double ComputedDoubleDisplayValue[2];
197 double ComputedDoubleViewportValue[2];
198 double ComputedUserDefinedValue[3];
static vtkCoordinate * New()
Creates an instance of this class with the following defaults: value of (0,0,0) in world coordinates.
void SetValue(double a, double b)
virtual void SetReferenceCoordinate(vtkCoordinate *)
If this coordinate is relative to another coordinate, then specify that coordinate as the ReferenceCo...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
#define VTK_NORMALIZED_VIEWPORT
void SetCoordinateSystemToNormalizedViewport()
void SetCoordinateSystemToDisplay()
abstract base class for most VTK objects
const char * GetCoordinateSystemAsString()
vtkCoordinate * ReferenceCoordinate
double * GetComputedWorldValue(vtkViewport *)
Return the computed value in a specified coordinate system.
void SetCoordinateSystemToWorld()
double * GetComputedValue(vtkViewport *)
GetComputedValue() will return either World, Viewport or Display based on what has been set as the co...
#define VTK_SIZEHINT(...)
int * GetComputedLocalDisplayValue(vtkViewport *)
a simple class to control print indentation
#define VTK_NORMALIZED_DISPLAY
void SetCoordinateSystemToViewport()
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
virtual double * GetComputedUserDefinedValue(vtkViewport *)
GetComputedUserDefinedValue() is to be used only when the coordinate system is VTK_USERDEFINED.
abstract specification for Viewports
void SetViewport(vtkViewport *viewport)
If you want this coordinate to be relative to a specific vtkViewport (vtkRenderer) then you can speci...
void SetCoordinateSystemToNormalizedDisplay()
int * GetComputedDisplayValue(vtkViewport *)
int * GetComputedViewportValue(vtkViewport *)
~vtkCoordinate() override
void SetCoordinateSystemToView()
double * GetComputedDoubleDisplayValue(vtkViewport *)
double * GetComputedDoubleViewportValue(vtkViewport *)
void SetCoordinateSystemToPose()