160 #ifndef vtkCoordinate_h
161 #define vtkCoordinate_h
164 #include "vtkRenderingCoreModule.h"
165 VTK_ABI_NAMESPACE_BEGIN
168 #define VTK_DISPLAY 0
169 #define VTK_NORMALIZED_DISPLAY 1
170 #define VTK_VIEWPORT 2
171 #define VTK_NORMALIZED_VIEWPORT 3
175 #define VTK_USERDEFINED 7
195 vtkSetMacro(CoordinateSystem,
int);
196 vtkGetMacro(CoordinateSystem,
int);
219 vtkSetVector3Macro(Value,
double);
220 vtkGetVector3Macro(Value,
double);
284 double ComputedWorldValue[3];
285 int ComputedDisplayValue[2];
286 int ComputedViewportValue[2];
289 double ComputedDoubleDisplayValue[2];
290 double ComputedDoubleViewportValue[2];
291 double ComputedUserDefinedValue[3];
298 VTK_ABI_NAMESPACE_END
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems
int * GetComputedViewportValue(vtkViewport *)
Return the computed value in a specified coordinate system.
void SetCoordinateSystemToWorld()
Set/get the coordinate system which this coordinate is defined in.
double * GetComputedDoubleViewportValue(vtkViewport *)
int * GetComputedDisplayValue(vtkViewport *)
Return the computed value in a specified coordinate system.
const char * GetCoordinateSystemAsString()
virtual void SetReferenceCoordinate(vtkCoordinate *)
If this coordinate is relative to another coordinate, then specify that coordinate as the ReferenceCo...
virtual double * GetComputedUserDefinedValue(vtkViewport *)
GetComputedUserDefinedValue() is to be used only when the coordinate system is VTK_USERDEFINED.
double * GetComputedDoubleDisplayValue(vtkViewport *)
void SetCoordinateSystemToNormalizedViewport()
Set/get the coordinate system which this coordinate is defined in.
void SetCoordinateSystemToDisplay()
Set/get the coordinate system which this coordinate is defined in.
~vtkCoordinate() override
void SetCoordinateSystemToPose()
Set/get the coordinate system which this coordinate is defined in.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
static vtkCoordinate * New()
Creates an instance of this class with the following defaults: value of (0,0,0) in world coordinates.
int * GetComputedLocalDisplayValue(vtkViewport *)
Return the computed value in a specified coordinate system.
vtkCoordinate * ReferenceCoordinate
void SetCoordinateSystemToViewport()
Set/get the coordinate system which this coordinate is defined in.
double * GetComputedWorldValue(vtkViewport *)
Return the computed value in a specified coordinate system.
void SetViewport(vtkViewport *viewport)
If you want this coordinate to be relative to a specific vtkViewport (vtkRenderer) then you can speci...
void SetCoordinateSystemToView()
Set/get the coordinate system which this coordinate is defined in.
double * GetComputedValue(vtkViewport *)
GetComputedValue() will return either World, Viewport or Display based on what has been set as the co...
void SetCoordinateSystemToNormalizedDisplay()
Set/get the coordinate system which this coordinate is defined in.
void SetValue(double a, double b)
Set/get the value of this coordinate.
a simple class to control print indentation
abstract base class for most VTK objects
abstract specification for Viewports
#define VTK_NORMALIZED_VIEWPORT
#define VTK_NORMALIZED_DISPLAY
#define VTK_SIZEHINT(...)