57 #ifndef vtkCoordinate_h 58 #define vtkCoordinate_h 60 #include "vtkRenderingCoreModule.h" 65 #define VTK_NORMALIZED_DISPLAY 1 66 #define VTK_VIEWPORT 2 67 #define VTK_NORMALIZED_VIEWPORT 3 70 #define VTK_USERDEFINED 6 91 vtkGetMacro(CoordinateSystem,
int);
101 { this->SetCoordinateSystem(
VTK_VIEW); }
103 { this->SetCoordinateSystem(
VTK_WORLD); }
106 const char *GetCoordinateSystemAsString ();
113 vtkSetVector3Macro(Value,
double);
114 vtkGetVector3Macro(Value,
double);
116 { this->SetValue(a, b, 0.0); }
151 double *GetComputedDoubleViewportValue(
vtkViewport *);
152 double *GetComputedDoubleDisplayValue(
vtkViewport *);
170 {
return this->Value; }
177 int CoordinateSystem;
180 double ComputedWorldValue[3];
181 int ComputedDisplayValue[2];
182 int ComputedViewportValue[2];
185 double ComputedDoubleDisplayValue[2];
186 double ComputedDoubleViewportValue[2];
187 double ComputedUserDefinedValue[3];
void SetCoordinateSystemToWorld()
Set/get the coordinate system which this coordinate is defined in.
abstract base class for most VTK objects
void SetCoordinateSystemToNormalizedViewport()
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.
abstract specification for Viewports
void SetValue(double a, double b)
Set/get the value of this coordinate.
#define VTK_NORMALIZED_VIEWPORT
void SetCoordinateSystemToDisplay()
Set/get the coordinate system which this coordinate is defined in.
void SetCoordinateSystemToNormalizedDisplay()
Set/get the coordinate system which this coordinate is defined in.
a simple class to control print indentation
void SetCoordinateSystemToView()
Set/get the coordinate system which this coordinate is defined in.
#define VTK_NORMALIZED_DISPLAY
void SetCoordinateSystemToViewport()
Set/get the coordinate system which this coordinate is defined in.
perform coordinate transformation, and represent position, in a variety of vtk coordinate systems ...
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
static vtkObject * New()
Create an object with Debug turned off, modified time initialized to zero, and reference counting on...
virtual double * GetComputedUserDefinedValue(vtkViewport *)
GetComputedUserDefinedValue() is to be used only when the coordinate system is VTK_USERDEFINED.