38 #include "vtkRenderingCoreModule.h"
79 void RemoveAllViewProps(
void);
106 vtkSetVector3Macro(Background2,
double);
107 vtkGetVector3Macro(Background2,
double);
117 vtkGetMacro(GradientBackground,
bool);
126 vtkSetVector2Macro(Aspect,
double);
127 vtkGetVectorMacro(Aspect,
double,2);
128 virtual void ComputeAspect();
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);
183 virtual double *GetCenter();
188 virtual int IsInViewport(
int x,
int y);
198 virtual void DisplayToView();
203 virtual void ViewToDisplay();
208 virtual void WorldToView();
213 virtual void ViewToWorld();
233 virtual void LocalDisplayToDisplay(
double &x,
double &y);
234 virtual void DisplayToNormalizedDisplay(
double &u,
double &v);
235 virtual void NormalizedDisplayToViewport(
double &x,
double &y);
236 virtual void ViewportToNormalizedViewport(
double &u,
double &v);
237 virtual void NormalizedViewportToView(
double &x,
double &y,
double &z);
239 virtual void DisplayToLocalDisplay(
double &x,
double &y);
240 virtual void NormalizedDisplayToDisplay(
double &u,
double &v);
241 virtual void ViewportToNormalizedDisplay(
double &x,
double &y);
242 virtual void NormalizedViewportToViewport(
double &u,
double &v);
243 virtual void ViewToNormalizedViewport(
double &x,
double &y,
double &z);
253 virtual int *GetSize();
254 virtual int *GetOrigin();
255 void GetTiledSize(
int *width,
int *
height);
256 virtual void GetTiledSizeAndOrigin(
int *width,
int *
height,
257 int *lowerLeftX,
int *lowerLeftY);
269 virtual vtkAssemblyPath* PickProp(
double selectionX,
double selectionY) = 0;
278 virtual vtkAssemblyPath* PickProp(
double selectionX1,
double selectionY1,
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);
320 virtual double GetPickedZ() = 0;
331 virtual void DevicePickRender() = 0;
333 virtual void StartPick(
unsigned int pickFromSize) = 0;
335 virtual void UpdatePickId() = 0;
337 virtual void DonePick() = 0;
339 virtual unsigned int GetPickedId() = 0;
341 virtual unsigned int GetNumPickedIds() = 0;
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;
abstract superclass for all actors, volumes and annotations
unsigned int CurrentPickId
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.
void SetCurrentPickId(unsigned int a)
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
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.
vtkPropCollection * GetViewProps()
Return any props in this viewport.
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
double GetPickX() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
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
void DisplayToWorld()
Convert display (or screen) coordinates to world coordinates.
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
double GetPickHeight() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
vtkPropCollection * PickFromProps
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
double GetPickX1() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
double GetPickY2() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
vtkBooleanMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
vtkActor2DCollection * Actors2D