35 #include "vtkRenderingCoreModule.h"
76 void RemoveAllViewProps(
void);
103 vtkSetVector3Macro(Background2,
double);
104 vtkGetVector3Macro(Background2,
double);
113 vtkSetClampMacro(BackgroundAlpha,
double, 0.0, 1.0);
114 vtkGetMacro(BackgroundAlpha,
double);
124 vtkGetMacro(GradientBackground,
bool);
133 vtkSetVector2Macro(Aspect,
double);
134 vtkGetVectorMacro(Aspect,
double,2);
135 virtual void ComputeAspect();
144 vtkSetVector2Macro(PixelAspect,
double);
145 vtkGetVectorMacro(PixelAspect,
double,2);
154 vtkSetVector4Macro(Viewport,
double);
155 vtkGetVectorMacro(Viewport,
double,4);
164 vtkSetVector3Macro(DisplayPoint,
double);
165 vtkGetVectorMacro(DisplayPoint,
double,3);
174 vtkSetVector3Macro(ViewPoint,
double);
175 vtkGetVectorMacro(ViewPoint,
double,3);
183 vtkSetVector4Macro(WorldPoint,
double);
184 vtkGetVectorMacro(WorldPoint,
double,4);
190 virtual double *GetCenter();
195 virtual int IsInViewport(
int x,
int y);
205 virtual void DisplayToView();
210 virtual void ViewToDisplay();
215 virtual void WorldToView();
220 virtual void ViewToWorld();
240 virtual void LocalDisplayToDisplay(
double &x,
double &y);
241 virtual void DisplayToNormalizedDisplay(
double &u,
double &v);
242 virtual void NormalizedDisplayToViewport(
double &x,
double &y);
243 virtual void ViewportToNormalizedViewport(
double &u,
double &v);
244 virtual void NormalizedViewportToView(
double &x,
double &y,
double &z);
246 virtual void DisplayToLocalDisplay(
double &x,
double &y);
247 virtual void NormalizedDisplayToDisplay(
double &u,
double &v);
248 virtual void ViewportToNormalizedDisplay(
double &x,
double &y);
249 virtual void NormalizedViewportToViewport(
double &u,
double &v);
250 virtual void ViewToNormalizedViewport(
double &x,
double &y,
double &z);
260 virtual int *GetSize();
261 virtual int *GetOrigin();
262 void GetTiledSize(
int *width,
int *
height);
263 virtual void GetTiledSizeAndOrigin(
int *width,
int *
height,
264 int *lowerLeftX,
int *lowerLeftY);
276 virtual vtkAssemblyPath* PickProp(
double selectionX,
double selectionY) = 0;
285 virtual vtkAssemblyPath* PickProp(
double selectionX1,
double selectionY1,
286 double selectionX2,
double selectionY2) = 0;
302 double selectionX2,
double selectionY2,
310 double GetPickX()
const {
return (this->PickX1 + this->PickX2)*0.5;}
311 double GetPickY()
const {
return (this->PickY1 + this->PickY2)*0.5;}
318 vtkGetMacro(IsPicking,
int);
319 vtkGetMacro(CurrentPickId,
unsigned int);
327 virtual double GetPickedZ() = 0;
338 virtual
void DevicePickRender() = 0;
340 virtual
void StartPick(
unsigned int pickFromSize) = 0;
342 virtual
void UpdatePickId() = 0;
344 virtual
void DonePick() = 0;
346 virtual
unsigned int GetPickedId() = 0;
348 virtual
unsigned int GetNumPickedIds() = 0;
351 virtual
int GetPickedIds(
unsigned int atMost,
unsigned int *callerBuffer) = 0;
360 unsigned int CurrentPickId;
371 double Background2[3];
372 double BackgroundAlpha;
375 double PixelAspect[2];
377 bool GradientBackground;
381 double DisplayPoint[3];
383 double WorldPoint[4];
388 void operator=(const
vtkViewport&) VTK_DELETE_FUNCTION;
abstract superclass for all actors, volumes and annotations
abstract base class for most VTK objects
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.
double GetPickY() const
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selection...
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...
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.