Go to the documentation of this file.
38 #include "vtkRenderingCoreModule.h"
106 vtkSetVector3Macro(Background2,
double);
107 vtkGetVector3Macro(Background2,
double);
117 vtkGetMacro(GradientBackground,
bool);
126 vtkSetVector2Macro(Aspect,
double);
127 vtkGetVectorMacro(Aspect,
double,2);
137 vtkSetVector2Macro(PixelAspect,
double);
138 vtkGetVectorMacro(PixelAspect,
double,2);
147 vtkSetVector4Macro(Viewport,
double);
148 vtkGetVectorMacro(Viewport,
double,4);
157 vtkSetVector3Macro(DisplayPoint,
double);
158 vtkGetVectorMacro(DisplayPoint,
double,3);
167 vtkSetVector3Macro(ViewPoint,
double);
168 vtkGetVectorMacro(ViewPoint,
double,3);
176 vtkSetVector4Macro(WorldPoint,
double);
177 vtkGetVectorMacro(WorldPoint,
double,4);
257 int *lowerLeftX,
int *lowerLeftY);
279 double selectionX2,
double selectionY2) = 0;
295 double selectionX2,
double selectionY2,
303 double GetPickX()
const {
return (this->PickX1 + this->PickX2)*0.5;}
304 double GetPickY()
const {
return (this->PickY1 + this->PickY2)*0.5;}
311 vtkGetMacro(IsPicking,
int);
312 vtkGetMacro(CurrentPickId,
unsigned int);
344 virtual int GetPickedIds(
unsigned int atMost,
unsigned int *callerBuffer) = 0;
364 double Background2[3];
367 double PixelAspect[2];
373 double DisplayPoint[3];
375 double WorldPoint[4];
380 void operator=(
const vtkViewport&) VTK_DELETE_FUNCTION;
virtual void DisplayToNormalizedDisplay(double &u, double &v)
vtkPropCollection * PickResultProps
void RemoveViewProp(vtkProp *)
Remove a prop from the list of props.
virtual int IsInViewport(int x, int y)
Is a given display point in this Viewport's viewport.
unsigned int CurrentPickId
virtual void DisplayToView()
Convert display coordinates to view coordinates.
vtkActor2DCollection * Actors2D
virtual void ViewToDisplay()
Convert view coordinates to display coordinates.
virtual double GetPickedZ()=0
Return the Z value for the last picked Prop.
virtual void ViewToNormalizedViewport(double &x, double &y, double &z)
virtual int GetPickedIds(unsigned int atMost, unsigned int *callerBuffer)=0
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)
virtual void ViewportToNormalizedDisplay(double &x, double &y)
virtual void GetTiledSizeAndOrigin(int *width, int *height, int *lowerLeftX, int *lowerLeftY)
void SetCurrentPickId(unsigned int a)
vtkAssemblyPath * PickPropFrom(double selectionX1, double selectionY1, double selectionX2, double selectionY2, vtkPropCollection *)
Same as PickProp with four arguments, but selects from the given collection of Props instead of the R...
virtual vtkAssemblyPath * PickProp(double selectionX, double selectionY)=0
Return the Prop that has the highest z value at the given x, y position in the viewport.
vtkPropCollection * Props
a list of nodes that form an assembly path
virtual void ComputeAspect()
window superclass for vtkRenderWindow
virtual void WorldToView(double &, double &, double &)
void DisplayToWorld()
Convert display (or screen) coordinates to world coordinates.
vtkPropCollection * GetViewProps()
Return any props in this viewport.
virtual void NormalizedDisplayToViewport(double &x, double &y)
virtual void UpdatePickId()=0
virtual vtkAssemblyPath * PickProp(double selectionX1, double selectionY1, double selectionX2, double selectionY2)=0
Return the Prop that has the highest z value at the given x1, y1 and x2,y2 positions in the viewport.
vtkAssemblyPath * PickedProp
void WorldToDisplay()
Convert world point coordinates to display (or screen) coordinates.
virtual void DisplayToLocalDisplay(double &x, double &y)
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
virtual void ViewportToNormalizedViewport(double &u, double &v)
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)
void AddViewProp(vtkProp *)
Add a prop to the list of props.
virtual void StartPick(unsigned int pickFromSize)=0
virtual void NormalizedDisplayToDisplay(double &u, double &v)
double GetPickX() 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 &)
abstract specification for Viewports
void RemoveActor2D(vtkProp *p)
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
virtual void ViewToWorld()
Convert view point coordinates to world coordinates.
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkPropCollection * PickFromProps
abstract superclass for all actors, volumes and annotations
double GetPickWidth() const
virtual vtkWindow * GetVTKWindow()=0
Return the vtkWindow that owns this vtkViewport.
void GetTiledSize(int *width, int *height)
virtual unsigned int GetNumPickedIds()=0
vtkActor2DCollection * GetActors2D()
int HasViewProp(vtkProp *)
Query if a prop is in the list of props.
virtual void DonePick()=0
virtual void DevicePickRender()=0
virtual unsigned int GetPickedId()=0
double GetPickHeight() const
vtkAssemblyPath * PickPropFrom(double selectionX, double selectionY, vtkPropCollection *)
Same as PickProp with two arguments, but selects from the given collection of Props instead of the Re...
virtual void WorldToView()
Convert world point coordinates to view coordinates.
void RemoveAllViewProps(void)
Remove all props from the list of props.
virtual int * GetOrigin()
virtual void LocalDisplayToDisplay(double &x, double &y)
These methods map from one coordinate system to another.