31#include "vtkRenderingCoreModule.h"
39VTK_ABI_NAMESPACE_BEGIN
81 void RemoveAllViewProps();
111 vtkSetVector3Macro(Background,
double);
112 vtkGetVector3Macro(Background,
double);
120 vtkSetVector3Macro(Background2,
double);
121 vtkGetVector3Macro(Background2,
double);
130 vtkSetClampMacro(BackgroundAlpha,
double, 0.0, 1.0);
131 vtkGetMacro(BackgroundAlpha,
double);
140 vtkSetMacro(GradientBackground,
bool);
141 vtkGetMacro(GradientBackground,
bool);
142 vtkBooleanMacro(GradientBackground,
bool);
151 vtkSetMacro(DitherGradient,
bool);
152 vtkGetMacro(DitherGradient,
bool);
153 vtkBooleanMacro(DitherGradient,
bool);
159 VTK_GRADIENT_VERTICAL,
161 VTK_GRADIENT_HORIZONTAL,
165 VTK_GRADIENT_RADIAL_VIEWPORT_FARTHEST_SIDE,
169 VTK_GRADIENT_RADIAL_VIEWPORT_FARTHEST_CORNER,
187 vtkSetVector2Macro(Aspect,
double);
188 vtkGetVectorMacro(Aspect,
double, 2);
198 vtkSetVector2Macro(PixelAspect,
double);
199 vtkGetVectorMacro(PixelAspect,
double, 2);
208 vtkSetVector4Macro(Viewport,
double);
209 vtkGetVectorMacro(Viewport,
double, 4);
218 vtkSetVector3Macro(DisplayPoint,
double);
219 vtkGetVectorMacro(DisplayPoint,
double, 3);
228 vtkSetVector3Macro(ViewPoint,
double);
229 vtkGetVectorMacro(ViewPoint,
double, 3);
237 vtkSetVector4Macro(WorldPoint,
double);
238 vtkGetVectorMacro(WorldPoint,
double, 4);
259 virtual
void DisplayToView();
264 virtual
void ViewToDisplay();
269 virtual
void WorldToView();
274 virtual
void ViewToWorld();
279 void DisplayToWorld()
281 this->DisplayToView();
291 this->ViewToDisplay();
299 this->WorldToView(x, y, z);
300 this->ViewToDisplay(x, y, z);
338 void GetTiledSize(
int* width,
int* height);
339 virtual
void GetTiledSizeAndOrigin(
int* width,
int* height,
int* lowerLeftX,
int* lowerLeftY);
361 double selectionX1,
double selectionY1,
double selectionX2,
double selectionY2) = 0;
375 vtkAssemblyPath* PickPropFrom(
double selectionX1,
double selectionY1,
double selectionX2,
386 virtual
vtkAssemblyPath* PickProp(
double selectionX,
double selectionY,
int fieldAssociation,
398 virtual
vtkAssemblyPath* PickProp(
double selectionX1,
double selectionY1,
double selectionX2,
418 vtkAssemblyPath* PickPropFrom(
double selectionX1,
double selectionY1,
double selectionX2,
427 double GetPickX()
const {
return (this->PickX1 + this->PickX2) * 0.5; }
428 double GetPickY()
const {
return (this->PickY1 + this->PickY2) * 0.5; }
429 double GetPickWidth()
const {
return this->PickX2 - this->PickX1 + 1; }
442 virtual
double GetPickedZ() {
return this->PickedZ; }
449 vtkSetVector3Macro(EnvironmentalBG,
double);
450 vtkGetVector3Macro(EnvironmentalBG,
double);
458 vtkSetVector3Macro(EnvironmentalBG2,
double);
459 vtkGetVector3Macro(EnvironmentalBG2,
double);
468 vtkSetMacro(GradientEnvironmentalBG,
bool);
469 vtkGetMacro(GradientEnvironmentalBG,
bool);
470 vtkBooleanMacro(GradientEnvironmentalBG,
bool);
495 double Background[3];
496 double Background2[3];
500 double PixelAspect[2];
506 double EnvironmentalBG[3];
507 double EnvironmentalBG2[3];
512 double DisplayPoint[3];
514 double WorldPoint[4];
517 std::array<int, 2> LastComputeAspectSize;
518 std::array<double, 4> LastComputeAspectVPort;
519 std::array<double, 2> LastComputeAspectPixelAspect;
a list of nodes that form an assembly path
a simple class to control print indentation
abstract base class for most VTK objects
abstract superclass for all actors, volumes and annotations
data object that represents a "selection" in VTK.
Hold a reference to a vtkObjectBase instance.
abstract specification for Viewports
double GetPickY2() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
virtual void ViewToWorld(double &, double &, double &)
These methods map from one coordinate system to another.
double GetPickX1() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
vtkPropCollection * Props
void WorldToDisplay(double &x, double &y, double &z)
Convert world point coordinates to display (or screen) coordinates.
vtkTypeBool HasViewProp(vtkProp *)
Query if a prop is in the list of props.
virtual void DisplayToLocalDisplay(double &x, double &y)
These methods map from one coordinate system to another.
virtual void WorldToPose(double &, double &, double &)
These methods map from one coordinate system to another.
void WorldToDisplay()
Convert world point coordinates to display (or screen) coordinates.
vtkAssemblyPath * PickedProp
virtual void ViewToNormalizedViewport(double &x, double &y, double &z)
These methods map from one coordinate system to another.
virtual double * GetCenter()
Return the center of this viewport in display coordinates.
vtkGetEnumMacro(GradientMode, GradientModes)
Specify the direction of the gradient background.
virtual void ViewToPose(double &, double &, double &)
These methods map from one coordinate system to another.
double GetPickX2() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
vtkActor2DCollection * Actors2D
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 NormalizedDisplayToViewport(double &x, double &y)
These methods map from one coordinate system to another.
virtual void PoseToWorld(double &, double &, double &)
These methods map from one coordinate system to another.
virtual void ComputeAspect()
Set the aspect ratio of the rendered image.
vtkPropCollection * PickResultProps
virtual int * GetSize()
Get the size and origin of the viewport in display coordinates.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual void NormalizedViewportToView(double &x, double &y, double &z)
These methods map from one coordinate system to another.
virtual void ViewportToNormalizedDisplay(double &x, double &y)
These methods map from one coordinate system to another.
vtkSetEnumMacro(GradientMode, GradientModes)
Specify the direction of the gradient background.
virtual void LocalDisplayToDisplay(double &x, double &y)
These methods map from one coordinate system to another.
vtkPropCollection * PickFromProps
virtual void NormalizedDisplayToDisplay(double &u, double &v)
These methods map from one coordinate system to another.
bool GradientEnvironmentalBG
double GetPickWidth() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
double GetPickY() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
virtual void DisplayToNormalizedDisplay(double &u, double &v)
These methods map from one coordinate system to another.
virtual void ViewToDisplay(double &x, double &y, double &z)
These methods map from one coordinate system to another.
virtual void NormalizedViewportToViewport(double &u, double &v)
These methods map from one coordinate system to another.
virtual void PoseToView(double &, double &, double &)
These methods map from one coordinate system to another.
virtual void ViewportToNormalizedViewport(double &u, double &v)
These methods map from one coordinate system to another.
double GetPickY1() 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.
window superclass for vtkRenderWindow
#define VTK_DEPRECATED_IN_9_5_0(reason)
#define VTK_SIZEHINT(...)
#define VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL
#define VTK_MARSHALEXCLUDE(reason)