30 #include "vtkRenderingCoreModule.h"
37 VTK_ABI_NAMESPACE_BEGIN
76 void RemoveAllViewProps();
103 vtkSetVector3Macro(Background2,
double);
104 vtkGetVector3Macro(Background2,
double);
113 vtkSetClampMacro(BackgroundAlpha,
double, 0.0, 1.0);
114 vtkGetMacro(BackgroundAlpha,
double);
123 vtkSetMacro(GradientBackground,
bool);
124 vtkGetMacro(GradientBackground,
bool);
125 vtkBooleanMacro(GradientBackground,
bool);
134 vtkSetMacro(DitherGradient,
bool);
135 vtkGetMacro(DitherGradient,
bool);
136 vtkBooleanMacro(DitherGradient,
bool);
142 VTK_GRADIENT_VERTICAL,
144 VTK_GRADIENT_HORIZONTAL,
148 VTK_GRADIENT_RADIAL_VIEWPORT_FARTHEST_SIDE,
152 VTK_GRADIENT_RADIAL_VIEWPORT_FARTHEST_CORNER,
161 vtkSetEnumMacro(GradientMode, GradientModes);
162 vtkGetEnumMacro(GradientMode, GradientModes);
170 vtkSetVector2Macro(Aspect,
double);
171 vtkGetVectorMacro(Aspect,
double, 2);
172 virtual void ComputeAspect();
181 vtkSetVector2Macro(PixelAspect,
double);
182 vtkGetVectorMacro(PixelAspect,
double, 2);
191 vtkSetVector4Macro(Viewport,
double);
192 vtkGetVectorMacro(Viewport,
double, 4);
201 vtkSetVector3Macro(DisplayPoint,
double);
202 vtkGetVectorMacro(DisplayPoint,
double, 3);
211 vtkSetVector3Macro(ViewPoint,
double);
212 vtkGetVectorMacro(ViewPoint,
double, 3);
220 vtkSetVector4Macro(WorldPoint,
double);
221 vtkGetVectorMacro(WorldPoint,
double, 4);
242 virtual
void DisplayToView();
247 virtual
void ViewToDisplay();
252 virtual
void WorldToView();
257 virtual
void ViewToWorld();
262 void DisplayToWorld()
264 this->DisplayToView();
274 this->ViewToDisplay();
282 this->WorldToView(x, y, z);
283 this->ViewToDisplay(x, y, z);
294 virtual void LocalDisplayToDisplay(
double& x,
double& y);
295 virtual void DisplayToNormalizedDisplay(
double& u,
double& v);
296 virtual void NormalizedDisplayToViewport(
double& x,
double& y);
297 virtual void ViewportToNormalizedViewport(
double& u,
double& v);
298 virtual void NormalizedViewportToView(
double& x,
double& y,
double& z);
301 virtual void DisplayToLocalDisplay(
double& x,
double& y);
302 virtual void NormalizedDisplayToDisplay(
double& u,
double& v);
303 virtual void ViewportToNormalizedDisplay(
double& x,
double& y);
304 virtual void NormalizedViewportToViewport(
double& u,
double& v);
305 virtual void ViewToNormalizedViewport(
double& x,
double& y,
double& z);
310 virtual void ViewToDisplay(
double& x,
double& y,
double& z);
321 void GetTiledSize(
int* width,
int*
height);
322 virtual
void GetTiledSizeAndOrigin(
int* width,
int* height,
int* lowerLeftX,
int* lowerLeftY);
334 virtual
vtkAssemblyPath* PickProp(
double selectionX,
double selectionY) = 0;
344 double selectionX1,
double selectionY1,
double selectionX2,
double selectionY2) = 0;
358 vtkAssemblyPath* PickPropFrom(
double selectionX1,
double selectionY1,
double selectionX2,
359 double selectionY2, vtkPropCollection*);
369 virtual
vtkAssemblyPath* PickProp(
double selectionX,
double selectionY,
int fieldAssociation,
381 virtual
vtkAssemblyPath* PickProp(
double selectionX1,
double selectionY1,
double selectionX2,
391 vtkAssemblyPath* PickPropFrom(
double selectionX,
double selectionY, vtkPropCollection*,
401 vtkAssemblyPath* PickPropFrom(
double selectionX1,
double selectionY1,
double selectionX2,
402 double selectionY2, vtkPropCollection*,
int fieldAssociation,
410 double GetPickX()
const {
return (this->PickX1 + this->PickX2) * 0.5; }
411 double GetPickY()
const {
return (this->PickY1 + this->PickY2) * 0.5; }
412 double GetPickWidth()
const {
return this->PickX2 - this->PickX1 + 1; }
431 vtkSetVector3Macro(EnvironmentalBG,
double);
432 vtkGetVector3Macro(EnvironmentalBG,
double);
440 vtkSetVector3Macro(EnvironmentalBG2,
double);
441 vtkGetVector3Macro(EnvironmentalBG2,
double);
450 vtkSetMacro(GradientEnvironmentalBG,
bool);
451 vtkGetMacro(GradientEnvironmentalBG,
bool);
452 vtkBooleanMacro(GradientEnvironmentalBG,
bool);
478 double Background2[3];
482 double PixelAspect[2];
488 double EnvironmentalBG[3];
489 double EnvironmentalBG2[3];
494 double DisplayPoint[3];
496 double WorldPoint[4];
499 std::array<int, 2> LastComputeAspectSize;
500 std::array<double, 4> LastComputeAspectVPort;
501 std::array<double, 2> LastComputeAspectPixelAspect;
507 VTK_ABI_NAMESPACE_END
abstract superclass for all actors, volumes and annotations
void WorldToDisplay(double &x, double &y, double &z)
Convert world point coordinates to display (or screen) coordinates.
virtual double GetPickedZ()
Return the Z value for the last picked Prop.
virtual void WorldToPose(double &, double &, double &)
These methods map from one coordinate system to another.
abstract base class for most VTK objects
vtkPropCollection * PickResultProps
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
abstract specification for Viewports
double GetPickWidth() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
virtual void WorldToView(double &, double &, double &)
These methods map from one coordinate system to another.
data object that represents a "selection" in VTK.
vtkPropCollection * GetViewProps()
Return any props in this viewport.
Hold a reference to a vtkObjectBase instance.
vtkAssemblyPath * PickedProp
double GetPickY() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
vtkPropCollection * Props
bool GradientEnvironmentalBG
window superclass for vtkRenderWindow
double GetPickX2() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
void WorldToDisplay()
Convert world point coordinates to display (or screen) coordinates.
virtual void ViewToWorld(double &, double &, double &)
These methods map from one coordinate system to another.
a list of nodes that form an assembly path
double GetPickY1() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
a simple class to control print indentation
virtual void PoseToWorld(double &, double &, double &)
These methods map from one coordinate system to another.
double GetPickHeight() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
virtual void ViewToPose(double &, double &, double &)
These methods map from one coordinate system to another.
#define VTK_SIZEHINT(...)
vtkPropCollection * PickFromProps
double GetPickX1() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
virtual void PoseToView(double &, double &, double &)
These methods map from one coordinate system to another.
double GetPickY2() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
vtkActor2DCollection * Actors2D