 |
VTK
9.1.0
|
Go to the documentation of this file.
36 #include "vtkRenderingCoreModule.h"
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);
135 vtkSetVector2Macro(Aspect,
double);
136 vtkGetVectorMacro(Aspect,
double, 2);
146 vtkSetVector2Macro(PixelAspect,
double);
147 vtkGetVectorMacro(PixelAspect,
double, 2);
156 vtkSetVector4Macro(Viewport,
double);
157 vtkGetVectorMacro(Viewport,
double, 4);
166 vtkSetVector3Macro(DisplayPoint,
double);
167 vtkGetVectorMacro(DisplayPoint,
double, 3);
176 vtkSetVector3Macro(ViewPoint,
double);
177 vtkGetVectorMacro(ViewPoint,
double, 3);
185 vtkSetVector4Macro(WorldPoint,
double);
186 vtkGetVectorMacro(WorldPoint,
double, 4);
197 virtual
int IsInViewport(
int x,
int y);
207 virtual
void DisplayToView();
212 virtual
void ViewToDisplay();
217 virtual
void WorldToView();
222 virtual
void ViewToWorld();
227 void DisplayToWorld()
229 this->DisplayToView();
239 this->ViewToDisplay();
247 this->WorldToView(x, y, z);
248 this->ViewToDisplay(x, y, z);
286 void GetTiledSize(
int* width,
int*
height);
287 virtual
void GetTiledSizeAndOrigin(
int* width,
int*
height,
int* lowerLeftX,
int* lowerLeftY);
309 double selectionX1,
double selectionY1,
double selectionX2,
double selectionY2) = 0;
323 vtkAssemblyPath* PickPropFrom(
double selectionX1,
double selectionY1,
double selectionX2,
331 double GetPickX()
const {
return (this->PickX1 + this->PickX2) * 0.5; }
332 double GetPickY()
const {
return (this->PickY1 + this->PickY2) * 0.5; }
333 double GetPickWidth()
const {
return this->PickX2 - this->PickX1 + 1; }
352 vtkSetVector3Macro(EnvironmentalBG,
double);
353 vtkGetVector3Macro(EnvironmentalBG,
double);
361 vtkSetVector3Macro(EnvironmentalBG2,
double);
362 vtkGetVector3Macro(EnvironmentalBG2,
double);
371 vtkSetMacro(GradientEnvironmentalBG,
bool);
372 vtkGetMacro(GradientEnvironmentalBG,
bool);
373 vtkBooleanMacro(GradientEnvironmentalBG,
bool);
399 double Background2[3];
403 double PixelAspect[2];
407 double EnvironmentalBG[3];
408 double EnvironmentalBG2[3];
413 double DisplayPoint[3];
415 double WorldPoint[4];
418 std::array<int, 2> LastComputeAspectSize;
419 std::array<double, 4> LastComputeAspectVPort;
420 std::array<double, 2> LastComputeAspectPixelAspect;
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
virtual double GetPickedZ()
Return the Z value for the last picked Prop.
virtual void DisplayToNormalizedDisplay(double &u, double &v)
These methods map from one coordinate system to another.
vtkPropCollection * PickResultProps
double GetPickY2() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
void WorldToDisplay(double &x, double &y, double &z)
Convert world point coordinates to display (or screen) coordinates.
void RemoveViewProp(vtkProp *)
Remove a prop from the list of props.
vtkActor2DCollection * Actors2D
virtual void ViewToNormalizedViewport(double &x, double &y, double &z)
These methods map from one coordinate system to another.
virtual void WorldToPose(double &, double &, double &)
These methods map from one coordinate system to another.
virtual double * GetCenter()
Return the center of this viewport in display coordinates.
void AddActor2D(vtkProp *p)
Add/Remove different types of props to the renderer.
abstract base class for most VTK objects
virtual void NormalizedViewportToViewport(double &u, double &v)
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.
vtkPropCollection * Props
a list of nodes that form an assembly path
virtual void ComputeAspect()
Set the aspect ratio of the rendered image.
window superclass for vtkRenderWindow
virtual void WorldToView(double &, double &, double &)
These methods map from one coordinate system to another.
bool GradientEnvironmentalBG
vtkPropCollection * GetViewProps()
Return any props in this viewport.
virtual void NormalizedDisplayToViewport(double &x, double &y)
These methods map from one coordinate system to another.
#define VTK_SIZEHINT(...)
virtual void ViewToPose(double &, double &, double &)
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.
vtkAssemblyPath * PickedProp
void WorldToDisplay()
Convert world point coordinates to display (or screen) coordinates.
virtual void DisplayToLocalDisplay(double &x, double &y)
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.
virtual int * GetSize()
Get the size and origin of the viewport in display coordinates.
a simple class to control print indentation
virtual void NormalizedViewportToView(double &x, double &y, double &z)
These methods map from one coordinate system to another.
void AddViewProp(vtkProp *)
Add a prop to the list of props.
virtual void NormalizedDisplayToDisplay(double &u, double &v)
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 ViewToWorld(double &, double &, double &)
These methods map from one coordinate system to another.
abstract specification for Viewports
void RemoveActor2D(vtkProp *p)
Add/Remove different types of props to the renderer.
vtkPropCollection * PickFromProps
abstract superclass for all actors, volumes and annotations
double GetPickWidth() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
double GetPickX1() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
vtkActor2DCollection * GetActors2D()
Add/Remove different types of props to the renderer.
int HasViewProp(vtkProp *)
Query if a prop is in the list of props.
double GetPickX2() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
double GetPickHeight() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
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 PoseToView(double &, double &, double &)
These methods map from one coordinate system to another.
void RemoveAllViewProps(void)
Remove all props from the list of props.
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 LocalDisplayToDisplay(double &x, double &y)
These methods map from one coordinate system to another.