31 #include "vtkRenderingCoreModule.h"
39 VTK_ABI_NAMESPACE_BEGIN
81 void RemoveAllViewProps();
97 vtkGetVector3Macro(Background,
double);
105 vtkSetVector3Macro(Background2,
double);
106 vtkGetVector3Macro(Background2,
double);
115 vtkSetClampMacro(BackgroundAlpha,
double, 0.0, 1.0);
116 vtkGetMacro(BackgroundAlpha,
double);
125 vtkSetMacro(GradientBackground,
bool);
126 vtkGetMacro(GradientBackground,
bool);
127 vtkBooleanMacro(GradientBackground,
bool);
136 vtkSetMacro(DitherGradient,
bool);
137 vtkGetMacro(DitherGradient,
bool);
138 vtkBooleanMacro(DitherGradient,
bool);
144 VTK_GRADIENT_VERTICAL,
146 VTK_GRADIENT_HORIZONTAL,
150 VTK_GRADIENT_RADIAL_VIEWPORT_FARTHEST_SIDE,
154 VTK_GRADIENT_RADIAL_VIEWPORT_FARTHEST_CORNER,
163 vtkSetEnumMacro(GradientMode, GradientModes);
164 vtkGetEnumMacro(GradientMode, GradientModes);
172 vtkSetVector2Macro(Aspect,
double);
173 vtkGetVectorMacro(Aspect,
double, 2);
174 virtual void ComputeAspect();
183 vtkSetVector2Macro(PixelAspect,
double);
184 vtkGetVectorMacro(PixelAspect,
double, 2);
193 vtkSetVector4Macro(Viewport,
double);
194 vtkGetVectorMacro(Viewport,
double, 4);
203 vtkSetVector3Macro(DisplayPoint,
double);
204 vtkGetVectorMacro(DisplayPoint,
double, 3);
213 vtkSetVector3Macro(ViewPoint,
double);
214 vtkGetVectorMacro(ViewPoint,
double, 3);
222 vtkSetVector4Macro(WorldPoint,
double);
223 vtkGetVectorMacro(WorldPoint,
double, 4);
244 virtual
void DisplayToView();
249 virtual
void ViewToDisplay();
254 virtual
void WorldToView();
259 virtual
void ViewToWorld();
264 void DisplayToWorld()
266 this->DisplayToView();
276 this->ViewToDisplay();
284 this->WorldToView(x, y, z);
285 this->ViewToDisplay(x, y, z);
296 virtual void LocalDisplayToDisplay(
double& x,
double& y);
297 virtual void DisplayToNormalizedDisplay(
double& u,
double& v);
298 virtual void NormalizedDisplayToViewport(
double& x,
double& y);
299 virtual void ViewportToNormalizedViewport(
double& u,
double& v);
300 virtual void NormalizedViewportToView(
double& x,
double& y,
double& z);
303 virtual void DisplayToLocalDisplay(
double& x,
double& y);
304 virtual void NormalizedDisplayToDisplay(
double& u,
double& v);
305 virtual void ViewportToNormalizedDisplay(
double& x,
double& y);
306 virtual void NormalizedViewportToViewport(
double& u,
double& v);
307 virtual void ViewToNormalizedViewport(
double& x,
double& y,
double& z);
312 virtual void ViewToDisplay(
double& x,
double& y,
double& z);
323 void GetTiledSize(
int* width,
int*
height);
324 virtual
void GetTiledSizeAndOrigin(
int* width,
int* height,
int* lowerLeftX,
int* lowerLeftY);
336 virtual
vtkAssemblyPath* PickProp(
double selectionX,
double selectionY) = 0;
346 double selectionX1,
double selectionY1,
double selectionX2,
double selectionY2) = 0;
360 vtkAssemblyPath* PickPropFrom(
double selectionX1,
double selectionY1,
double selectionX2,
361 double selectionY2, vtkPropCollection*);
371 virtual
vtkAssemblyPath* PickProp(
double selectionX,
double selectionY,
int fieldAssociation,
383 virtual
vtkAssemblyPath* PickProp(
double selectionX1,
double selectionY1,
double selectionX2,
393 vtkAssemblyPath* PickPropFrom(
double selectionX,
double selectionY, vtkPropCollection*,
403 vtkAssemblyPath* PickPropFrom(
double selectionX1,
double selectionY1,
double selectionX2,
404 double selectionY2, vtkPropCollection*,
int fieldAssociation,
412 double GetPickX()
const {
return (this->PickX1 + this->PickX2) * 0.5; }
413 double GetPickY()
const {
return (this->PickY1 + this->PickY2) * 0.5; }
414 double GetPickWidth()
const {
return this->PickX2 - this->PickX1 + 1; }
427 virtual
double GetPickedZ() {
return this->PickedZ; }
434 vtkSetVector3Macro(EnvironmentalBG,
double);
435 vtkGetVector3Macro(EnvironmentalBG,
double);
443 vtkSetVector3Macro(EnvironmentalBG2,
double);
444 vtkGetVector3Macro(EnvironmentalBG2,
double);
453 vtkSetMacro(GradientEnvironmentalBG,
bool);
454 vtkGetMacro(GradientEnvironmentalBG,
bool);
455 vtkBooleanMacro(GradientEnvironmentalBG,
bool);
484 double Background2[3];
488 double PixelAspect[2];
494 double EnvironmentalBG[3];
495 double EnvironmentalBG2[3];
500 double DisplayPoint[3];
502 double WorldPoint[4];
505 std::array<int, 2> LastComputeAspectSize;
506 std::array<double, 4> LastComputeAspectVPort;
507 std::array<double, 2> LastComputeAspectPixelAspect;
513 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 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.
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
#define VTK_MARSHALEXCLUDE(reason)
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...
#define VTK_DEPRECATED_IN_9_7_0(reason)
vtkActor2DCollection * Actors2D
#define VTK_MARSHAL_EXCLUDE_REASON_IS_INTERNAL