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;
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
abstract specification for Viewports
virtual void ViewToWorld(double &, double &, double &)
vtkPropCollection * Props
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 StartPick(unsigned int pickFromSize)=0
virtual void WorldToView()
Convert world point coordinates to view coordinates.
virtual void DisplayToLocalDisplay(double &x, double &y)
void WorldToDisplay()
Convert world point coordinates to display (or screen) coordinates.
vtkAssemblyPath * PickedProp
virtual int GetPickedIds(unsigned int atMost, unsigned int *callerBuffer)=0
virtual void ViewToNormalizedViewport(double &x, double &y, double &z)
virtual double * GetCenter()
Return the center of this viewport in display coordinates.
virtual int * GetSize()
Get the size and origin of the viewport in display coordinates.
virtual void DisplayToView()
Convert display coordinates to view coordinates.
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 unsigned int GetNumPickedIds()=0
void PrintSelf(ostream &os, vtkIndent indent)
Methods invoked by print to print information about the object including superclasses.
void DisplayToWorld()
Convert display (or screen) coordinates to world coordinates.
vtkActor2DCollection * Actors2D
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 NormalizedDisplayToViewport(double &x, double &y)
void RemoveActor2D(vtkProp *p)
virtual void ComputeAspect()
vtkPropCollection * PickResultProps
virtual void DevicePickRender()=0
virtual void NormalizedViewportToView(double &x, double &y, double &z)
vtkActor2DCollection * GetActors2D()
void AddActor2D(vtkProp *p)
Add/Remove different types of props to the renderer.
virtual void ViewportToNormalizedDisplay(double &x, double &y)
virtual vtkWindow * GetVTKWindow()=0
Return the vtkWindow that owns this vtkViewport.
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.
virtual void LocalDisplayToDisplay(double &x, double &y)
These methods map from one coordinate system to another.
void AddViewProp(vtkProp *)
Add a prop to the list of props.
void SetCurrentPickId(unsigned int a)
vtkPropCollection * PickFromProps
virtual void NormalizedDisplayToDisplay(double &u, double &v)
virtual double GetPickedZ()=0
Return the Z value for the last picked Prop.
virtual void GetTiledSizeAndOrigin(int *width, int *height, int *lowerLeftX, int *lowerLeftY)
vtkPropCollection * GetViewProps()
Return any props in this viewport.
double GetPickWidth() const
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.
virtual void UpdatePickId()=0
unsigned int CurrentPickId
virtual void DonePick()=0
virtual int IsInViewport(int x, int y)
Is a given display point in this Viewport's viewport.
virtual int * GetOrigin()
void RemoveAllViewProps(void)
Remove all props from the list of props.
virtual void DisplayToNormalizedDisplay(double &u, double &v)
virtual void NormalizedViewportToViewport(double &u, double &v)
void RemoveViewProp(vtkProp *)
Remove a prop from the list of props.
virtual void ViewToWorld()
Convert view point coordinates to world coordinates.
void GetTiledSize(int *width, int *height)
virtual void ViewToDisplay()
Convert view coordinates to display coordinates.
virtual void ViewportToNormalizedViewport(double &u, double &v)
int HasViewProp(vtkProp *)
Query if a prop is in the list of props.
virtual void WorldToView(double &, double &, double &)
virtual unsigned int GetPickedId()=0
window superclass for vtkRenderWindow
vtkSetMacro(IgnoreDriverBugs, bool)
Updates the extensions string.
vtkBooleanMacro(IgnoreDriverBugs, bool)
Updates the extensions string.