42 #include "vtkRenderingCoreModule.h"
87 void RemoveAllViewProps(
void);
114 vtkSetVector3Macro(Background2,
double);
115 vtkGetVector3Macro(Background2,
double);
124 vtkSetClampMacro(BackgroundAlpha,
double, 0.0, 1.0);
125 vtkGetMacro(BackgroundAlpha,
double);
134 vtkSetMacro(GradientBackground,
bool);
135 vtkGetMacro(GradientBackground,
bool);
136 vtkBooleanMacro(GradientBackground,
bool);
144 vtkSetVector2Macro(Aspect,
double);
145 vtkGetVectorMacro(Aspect,
double, 2);
146 virtual void ComputeAspect();
155 vtkSetVector2Macro(PixelAspect,
double);
156 vtkGetVectorMacro(PixelAspect,
double, 2);
165 vtkSetVector4Macro(Viewport,
double);
166 vtkGetVectorMacro(Viewport,
double, 4);
175 vtkSetVector3Macro(DisplayPoint,
double);
176 vtkGetVectorMacro(DisplayPoint,
double, 3);
185 vtkSetVector3Macro(ViewPoint,
double);
186 vtkGetVectorMacro(ViewPoint,
double, 3);
194 vtkSetVector4Macro(WorldPoint,
double);
195 vtkGetVectorMacro(WorldPoint,
double, 4);
206 virtual
int IsInViewport(
int x,
int y);
216 virtual
void DisplayToView();
221 virtual
void ViewToDisplay();
226 virtual
void WorldToView();
231 virtual
void ViewToWorld();
236 void DisplayToWorld()
238 this->DisplayToView();
248 this->ViewToDisplay();
256 this->WorldToView(x, y, z);
257 this->ViewToDisplay(x, y, z);
268 virtual void LocalDisplayToDisplay(
double& x,
double& y);
269 virtual void DisplayToNormalizedDisplay(
double& u,
double& v);
270 virtual void NormalizedDisplayToViewport(
double& x,
double& y);
271 virtual void ViewportToNormalizedViewport(
double& u,
double& v);
272 virtual void NormalizedViewportToView(
double& x,
double& y,
double& z);
275 virtual void DisplayToLocalDisplay(
double& x,
double& y);
276 virtual void NormalizedDisplayToDisplay(
double& u,
double& v);
277 virtual void ViewportToNormalizedDisplay(
double& x,
double& y);
278 virtual void NormalizedViewportToViewport(
double& u,
double& v);
279 virtual void ViewToNormalizedViewport(
double& x,
double& y,
double& z);
284 virtual void ViewToDisplay(
double& x,
double& y,
double& z);
295 void GetTiledSize(
int* width,
int*
height);
296 virtual
void GetTiledSizeAndOrigin(
int* width,
int* height,
int* lowerLeftX,
int* lowerLeftY);
308 virtual
vtkAssemblyPath* PickProp(
double selectionX,
double selectionY) = 0;
318 double selectionX1,
double selectionY1,
double selectionX2,
double selectionY2) = 0;
332 vtkAssemblyPath* PickPropFrom(
double selectionX1,
double selectionY1,
double selectionX2,
333 double selectionY2, vtkPropCollection*);
343 virtual
vtkAssemblyPath* PickProp(
double selectionX,
double selectionY,
int fieldAssociation,
355 virtual
vtkAssemblyPath* PickProp(
double selectionX1,
double selectionY1,
double selectionX2,
365 vtkAssemblyPath* PickPropFrom(
double selectionX,
double selectionY, vtkPropCollection*,
375 vtkAssemblyPath* PickPropFrom(
double selectionX1,
double selectionY1,
double selectionX2,
376 double selectionY2, vtkPropCollection*,
int fieldAssociation,
384 double GetPickX()
const {
return (this->PickX1 + this->PickX2) * 0.5; }
385 double GetPickY()
const {
return (this->PickY1 + this->PickY2) * 0.5; }
386 double GetPickWidth()
const {
return this->PickX2 - this->PickX1 + 1; }
405 vtkSetVector3Macro(EnvironmentalBG,
double);
406 vtkGetVector3Macro(EnvironmentalBG,
double);
414 vtkSetVector3Macro(EnvironmentalBG2,
double);
415 vtkGetVector3Macro(EnvironmentalBG2,
double);
424 vtkSetMacro(GradientEnvironmentalBG,
bool);
425 vtkGetMacro(GradientEnvironmentalBG,
bool);
426 vtkBooleanMacro(GradientEnvironmentalBG,
bool);
452 double Background2[3];
456 double PixelAspect[2];
460 double EnvironmentalBG[3];
461 double EnvironmentalBG2[3];
466 double DisplayPoint[3];
468 double WorldPoint[4];
471 std::array<int, 2> LastComputeAspectSize;
472 std::array<double, 4> LastComputeAspectVPort;
473 std::array<double, 2> LastComputeAspectPixelAspect;
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