38 #include "vtkRenderingCoreModule.h" 79 void RemoveAllViewProps(
void);
106 vtkSetVector3Macro(Background2,
double);
107 vtkGetVector3Macro(Background2,
double);
116 vtkSetClampMacro(BackgroundAlpha,
double, 0.0, 1.0);
117 vtkGetMacro(BackgroundAlpha,
double);
127 vtkGetMacro(GradientBackground,
bool);
136 vtkSetVector2Macro(Aspect,
double);
137 vtkGetVectorMacro(Aspect,
double,2);
138 virtual void ComputeAspect();
147 vtkSetVector2Macro(PixelAspect,
double);
148 vtkGetVectorMacro(PixelAspect,
double,2);
157 vtkSetVector4Macro(Viewport,
double);
158 vtkGetVectorMacro(Viewport,
double,4);
167 vtkSetVector3Macro(DisplayPoint,
double);
168 vtkGetVectorMacro(DisplayPoint,
double,3);
177 vtkSetVector3Macro(ViewPoint,
double);
178 vtkGetVectorMacro(ViewPoint,
double,3);
186 vtkSetVector4Macro(WorldPoint,
double);
187 vtkGetVectorMacro(WorldPoint,
double,4);
193 virtual double *GetCenter();
198 virtual int IsInViewport(
int x,
int y);
208 virtual void DisplayToView();
213 virtual void ViewToDisplay();
218 virtual void WorldToView();
223 virtual void ViewToWorld();
243 virtual void LocalDisplayToDisplay(
double &x,
double &y);
244 virtual void DisplayToNormalizedDisplay(
double &u,
double &v);
245 virtual void NormalizedDisplayToViewport(
double &x,
double &y);
246 virtual void ViewportToNormalizedViewport(
double &u,
double &v);
247 virtual void NormalizedViewportToView(
double &x,
double &y,
double &z);
249 virtual void DisplayToLocalDisplay(
double &x,
double &y);
250 virtual void NormalizedDisplayToDisplay(
double &u,
double &v);
251 virtual void ViewportToNormalizedDisplay(
double &x,
double &y);
252 virtual void NormalizedViewportToViewport(
double &u,
double &v);
253 virtual void ViewToNormalizedViewport(
double &x,
double &y,
double &z);
263 virtual int *GetSize();
264 virtual int *GetOrigin();
265 void GetTiledSize(
int *width,
int *
height);
266 virtual void GetTiledSizeAndOrigin(
int *width,
int *
height,
267 int *lowerLeftX,
int *lowerLeftY);
279 virtual vtkAssemblyPath* PickProp(
double selectionX,
double selectionY) = 0;
288 virtual vtkAssemblyPath* PickProp(
double selectionX1,
double selectionY1,
289 double selectionX2,
double selectionY2) = 0;
305 double selectionX2,
double selectionY2,
313 double GetPickX()
const {
return (this->PickX1 + this->PickX2)*0.5;}
314 double GetPickY()
const {
return (this->PickY1 + this->PickY2)*0.5;}
321 vtkGetMacro(IsPicking,
int);
322 vtkGetMacro(CurrentPickId,
unsigned int);
330 virtual double GetPickedZ() = 0;
341 virtual void DevicePickRender() = 0;
343 virtual void StartPick(
unsigned int pickFromSize) = 0;
345 virtual void UpdatePickId() = 0;
347 virtual void DonePick() = 0;
349 virtual unsigned int GetPickedId() = 0;
351 virtual unsigned int GetNumPickedIds() = 0;
354 virtual int GetPickedIds(
unsigned int atMost,
unsigned int *callerBuffer) = 0;
374 double Background2[3];
378 double PixelAspect[2];
384 double DisplayPoint[3];
386 double WorldPoint[4];
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
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
vtkPropCollection * Props
window superclass for vtkRenderWindow
void WorldToDisplay()
Convert world point coordinates to display (or screen) coordinates.
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 &)
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.
a simple class to control print indentation
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...
vtkPropCollection * PickFromProps
vtkSetMacro(IgnoreDriverBugs, bool)
When set known driver bugs are ignored during driver feature detection.
double GetPickY1() 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 GetPickY() 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.
double GetPickX2() 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...
vtkActor2DCollection * Actors2D