#include <vtkViewport.h>
Inheritance diagram for vtkViewport:
Public Methods | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
void | AddProp (vtkProp *) |
vtkPropCollection * | GetProps () |
void | RemoveProp (vtkProp *) |
virtual float * | GetCenter () |
virtual int | IsInViewport (int x, int y) |
virtual vtkWindow * | GetVTKWindow ()=0 |
void | SetStartRenderMethod (void(*f)(void *), void *arg) |
void | SetEndRenderMethod (void(*f)(void *), void *arg) |
void | SetStartRenderMethodArgDelete (void(*f)(void *)) |
void | SetEndRenderMethodArgDelete (void(*f)(void *)) |
virtual void | DisplayToView () |
virtual void | ViewToDisplay () |
virtual void | WorldToView () |
virtual void | ViewToWorld () |
void | DisplayToWorld () |
void | WorldToDisplay () |
virtual vtkAssemblyPath * | PickProp (float selectionX, float selectionY)=0 |
virtual float | GetPickedZ ()=0 |
void | AddActor2D (vtkProp *p) |
void | RemoveActor2D (vtkProp *p) |
vtkActor2DCollection * | GetActors2D () |
virtual void | SetBackground (float, float, float) |
virtual void | SetBackground (float[3]) |
virtual float * | GetBackground () |
virtual void | GetBackground (float data[3]) |
virtual void | SetAspect (float, float) |
void | SetAspect (float[2]) |
virtual float * | GetAspect () |
virtual void | GetAspect (float data[2]) |
void | ComputeAspect () |
virtual void | SetPixelAspect (float, float) |
void | SetPixelAspect (float[2]) |
virtual float * | GetPixelAspect () |
virtual void | GetPixelAspect (float data[2]) |
virtual void | SetViewport (float, float, float, float) |
virtual void | SetViewport (float[4]) |
virtual float * | GetViewport () |
virtual void | GetViewport (float data[4]) |
virtual void | SetDisplayPoint (float, float, float) |
virtual void | SetDisplayPoint (float[3]) |
virtual float * | GetDisplayPoint () |
virtual void | GetDisplayPoint (float data[3]) |
void | GetDisplayPoint (double *a) |
virtual void | SetViewPoint (float, float, float) |
virtual void | SetViewPoint (float[3]) |
virtual float * | GetViewPoint () |
virtual void | GetViewPoint (float data[3]) |
virtual void | SetWorldPoint (float, float, float, float) |
virtual void | SetWorldPoint (float[4]) |
virtual float * | GetWorldPoint () |
virtual void | GetWorldPoint (float data[4]) |
void | GetWorldPoint (double *a) |
virtual void | LocalDisplayToDisplay (float &x, float &y) |
virtual void | DisplayToNormalizedDisplay (float &u, float &v) |
virtual void | NormalizedDisplayToViewport (float &x, float &y) |
virtual void | ViewportToNormalizedViewport (float &u, float &v) |
virtual void | NormalizedViewportToView (float &x, float &y, float &z) |
virtual void | ViewToWorld (float &, float &, float &) |
virtual void | DisplayToLocalDisplay (float &x, float &y) |
virtual void | NormalizedDisplayToDisplay (float &u, float &v) |
virtual void | ViewportToNormalizedDisplay (float &x, float &y) |
virtual void | NormalizedViewportToViewport (float &u, float &v) |
virtual void | ViewToNormalizedViewport (float &x, float &y, float &z) |
virtual void | WorldToView (float &, float &, float &) |
int * | GetSize () |
int * | GetOrigin () |
vtkAssemblyPath * | PickPropFrom (float selectionX, float selectionY, vtkPropCollection *) |
virtual float | GetPickX () |
virtual float | GetPickY () |
virtual int | GetIsPicking () |
Static Public Methods | |
int | IsTypeOf (const char *type) |
vtkViewport * | SafeDownCast (vtkObject *o) |
Protected Methods | |
vtkViewport () | |
~vtkViewport () | |
virtual void | DevicePickRender ()=0 |
virtual void | StartPick (unsigned int pickFromSize)=0 |
virtual void | UpdatePickId ()=0 |
virtual void | DonePick ()=0 |
virtual unsigned int | GetPickedId ()=0 |
Protected Attributes | |
vtkAssemblyPath * | PickedProp |
vtkPropCollection * | PickFromProps |
int | IsPicking |
unsigned int | CurrentPickId |
float | PickX |
float | PickY |
vtkPropCollection * | Props |
vtkActor2DCollection * | Actors2D |
vtkWindow * | VTKWindow |
float | Background [3] |
float | Viewport [4] |
float | Aspect [2] |
float | PixelAspect [2] |
float | Center [2] |
unsigned long | StartTag |
unsigned long | EndTag |
int | Size [2] |
int | Origin [2] |
float | DisplayPoint [3] |
float | ViewPoint [3] |
float | WorldPoint [4] |
vtkViewport provides an abstract specification for Viewports. A Viewport is an object that controls the rendering process for objects. Rendering is the process of converting geometry, a specification for lights, and a camera view into an image. vtkViewport also performs coordinate transformation between world coordinates, view coordinates (the computer graphics rendering coordinate system), and display coordinates (the actual screen coordinates on the display device). Certain advanced rendering features such as two-sided lighting can also be controlled.
Definition at line 72 of file vtkViewport.h.
|
|
|
|
|
Return the class name as a string. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkImager, vtkMesaImager, vtkMesaRenderer, vtkOpenGLImager, vtkOpenGLRenderer, and vtkRenderer. |
|
Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkImager, vtkMesaImager, vtkMesaRenderer, vtkOpenGLImager, vtkOpenGLRenderer, and vtkRenderer. |
|
Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkImager, vtkMesaImager, vtkMesaRenderer, vtkOpenGLImager, vtkOpenGLRenderer, and vtkRenderer. |
|
Will cast the supplied object to vtkObject* is this is a safe operation (i.e., a safe downcast); otherwise NULL is returned. This method is defined in all subclasses of vtkObject with the vtkTypeMacro found in vtkSetGet.h. Reimplemented from vtkObject. Reimplemented in vtkImager, vtkMesaImager, vtkMesaRenderer, vtkOpenGLImager, vtkOpenGLRenderer, and vtkRenderer. |
|
Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes. Reimplemented from vtkObject. Reimplemented in vtkMesaRenderer, vtkOpenGLRenderer, and vtkRenderer. |
|
Add a prop to the list of props. Prop is the superclass of all actors, volumes, 2D actors, composite props etc. Referenced by vtkRenderer::AddActor(), and vtkRenderer::AddVolume().
|
|
Return any props in this viewport. Definition at line 83 of file vtkViewport.h. |
|
Remove an actor from the list of actors. Referenced by vtkRenderer::RemoveActor(), and vtkRenderer::RemoveVolume().
|
|
Add/Remove different types of props to the renderer. These methods are all synonyms to AddProp and RemoveProp. They are here for convenience and backwards compatibility. Definition at line 92 of file vtkViewport.h. |
|
Add/Remove different types of props to the renderer. These methods are all synonyms to AddProp and RemoveProp. They are here for convenience and backwards compatibility. |
|
Add/Remove different types of props to the renderer. These methods are all synonyms to AddProp and RemoveProp. They are here for convenience and backwards compatibility. |
|
Set/Get the background color of the rendering screen using an rgb color specification. |
|
Set/Get the background color of the rendering screen using an rgb color specification. |
|
Set/Get the background color of the rendering screen using an rgb color specification. |
|
Set/Get the background color of the rendering screen using an rgb color specification. |
|
Set the aspect ratio of the rendered image. This is computed automatically and should not be set by the user. |
|
Set the aspect ratio of the rendered image. This is computed automatically and should not be set by the user. |
|
Set the aspect ratio of the rendered image. This is computed automatically and should not be set by the user. |
|
Set the aspect ratio of the rendered image. This is computed automatically and should not be set by the user. |
|
Set the aspect ratio of the rendered image. This is computed automatically and should not be set by the user. |
|
Set the aspect ratio of a pixel in the rendered image. This factor permits the image to rendered anisotropically (i.e., stretched in one direction or the other). |
|
Set the aspect ratio of a pixel in the rendered image. This factor permits the image to rendered anisotropically (i.e., stretched in one direction or the other). |
|
Set the aspect ratio of a pixel in the rendered image. This factor permits the image to rendered anisotropically (i.e., stretched in one direction or the other). |
|
Set the aspect ratio of a pixel in the rendered image. This factor permits the image to rendered anisotropically (i.e., stretched in one direction or the other). |
|
Specify the viewport for the Viewport to draw in the rendering window. Coordinates are expressed as (xmin,ymin,xmax,ymax), where each coordinate is 0 <= coordinate <= 1.0. |
|
Specify the viewport for the Viewport to draw in the rendering window. Coordinates are expressed as (xmin,ymin,xmax,ymax), where each coordinate is 0 <= coordinate <= 1.0. |
|
Specify the viewport for the Viewport to draw in the rendering window. Coordinates are expressed as (xmin,ymin,xmax,ymax), where each coordinate is 0 <= coordinate <= 1.0. |
|
Specify the viewport for the Viewport to draw in the rendering window. Coordinates are expressed as (xmin,ymin,xmax,ymax), where each coordinate is 0 <= coordinate <= 1.0. |
|
Set/get a point location in display (or screen) coordinates. The lower left corner of the window is the origin and y increases as you go up the screen. |
|
Set/get a point location in display (or screen) coordinates. The lower left corner of the window is the origin and y increases as you go up the screen. |
|
Set/get a point location in display (or screen) coordinates. The lower left corner of the window is the origin and y increases as you go up the screen. |
|
Set/get a point location in display (or screen) coordinates. The lower left corner of the window is the origin and y increases as you go up the screen. |
|
Set/get a point location in display (or screen) coordinates. The lower left corner of the window is the origin and y increases as you go up the screen. Definition at line 134 of file vtkViewport.h. |
|
Specify a point location in view coordinates. The origin is in the middle of the viewport and it extends from -1 to 1 in all three dimensions. |
|
Specify a point location in view coordinates. The origin is in the middle of the viewport and it extends from -1 to 1 in all three dimensions. |
|
Specify a point location in view coordinates. The origin is in the middle of the viewport and it extends from -1 to 1 in all three dimensions. |
|
Specify a point location in view coordinates. The origin is in the middle of the viewport and it extends from -1 to 1 in all three dimensions. |
|
Specify a point location in world coordinates. This method takes homogeneous coordinates. |
|
Specify a point location in world coordinates. This method takes homogeneous coordinates. |
|
Specify a point location in world coordinates. This method takes homogeneous coordinates. |
|
Specify a point location in world coordinates. This method takes homogeneous coordinates. |
|
Specify a point location in world coordinates. This method takes homogeneous coordinates. Definition at line 156 of file vtkViewport.h. |
|
Return the center of this viewport in display coordinates. |
|
Is a given display point in this Viewport's viewport. |
|
Return the vtkWindow that owns this vtkViewport. Reimplemented in vtkImager, and vtkRenderer. |
|
Specify a function to be called before rendering process begins. Function will be called with argument provided. |
|
Specify a function to be called when rendering process completes. Function will be called with argument provided. |
|
Set the arg delete method. This is used to free user memory. |
|
Set the arg delete method. This is used to free user memory. |
|
Convert display coordinates to view coordinates. |
|
Convert view coordinates to display coordinates. |
|
Convert world point coordinates to view coordinates. Reimplemented in vtkRenderer. |
|
Convert view point coordinates to world coordinates. Reimplemented in vtkRenderer. |
|
Convert display (or screen) coordinates to world coordinates. Definition at line 201 of file vtkViewport.h. |
|
Convert world point coordinates to display (or screen) coordinates. Definition at line 204 of file vtkViewport.h. |
|
These methods map from one coordinate system to another. They are primarily used by the vtkCoordinate object and are often strung together. These methods return valid information only if the window has been realized (e.g., GetSize() returns something other than (0,0)). |
|
These methods map from one coordinate system to another. They are primarily used by the vtkCoordinate object and are often strung together. These methods return valid information only if the window has been realized (e.g., GetSize() returns something other than (0,0)). |
|
These methods map from one coordinate system to another. They are primarily used by the vtkCoordinate object and are often strung together. These methods return valid information only if the window has been realized (e.g., GetSize() returns something other than (0,0)). |
|
These methods map from one coordinate system to another. They are primarily used by the vtkCoordinate object and are often strung together. These methods return valid information only if the window has been realized (e.g., GetSize() returns something other than (0,0)). |
|
These methods map from one coordinate system to another. They are primarily used by the vtkCoordinate object and are often strung together. These methods return valid information only if the window has been realized (e.g., GetSize() returns something other than (0,0)). |
|
These methods map from one coordinate system to another. They are primarily used by the vtkCoordinate object and are often strung together. These methods return valid information only if the window has been realized (e.g., GetSize() returns something other than (0,0)). Reimplemented in vtkRenderer. Definition at line 217 of file vtkViewport.h. |
|
These methods map from one coordinate system to another. They are primarily used by the vtkCoordinate object and are often strung together. These methods return valid information only if the window has been realized (e.g., GetSize() returns something other than (0,0)). |
|
These methods map from one coordinate system to another. They are primarily used by the vtkCoordinate object and are often strung together. These methods return valid information only if the window has been realized (e.g., GetSize() returns something other than (0,0)). |
|
These methods map from one coordinate system to another. They are primarily used by the vtkCoordinate object and are often strung together. These methods return valid information only if the window has been realized (e.g., GetSize() returns something other than (0,0)). |
|
These methods map from one coordinate system to another. They are primarily used by the vtkCoordinate object and are often strung together. These methods return valid information only if the window has been realized (e.g., GetSize() returns something other than (0,0)). |
|
These methods map from one coordinate system to another. They are primarily used by the vtkCoordinate object and are often strung together. These methods return valid information only if the window has been realized (e.g., GetSize() returns something other than (0,0)). |
|
These methods map from one coordinate system to another. They are primarily used by the vtkCoordinate object and are often strung together. These methods return valid information only if the window has been realized (e.g., GetSize() returns something other than (0,0)). Reimplemented in vtkRenderer. Definition at line 223 of file vtkViewport.h. |
|
Get the size and origin of the viewport in display coordinates. Note: if the window has not yet been realized, GetSize() and GetOrigin() return (0,0). |
|
Get the size and origin of the viewport in display coordinates. Note: if the window has not yet been realized, GetSize() and GetOrigin() return (0,0). |
|
Return the Prop that has the highest z value at the given x, y position in the viewport. Basically, the top most prop that renders the pixel at selectionX, selectionY will be returned. If no Props are there NULL is returned. This method selects from the Viewports Prop list. Reimplemented in vtkImager, and vtkRenderer. |
|
Same as PickProp with two arguments, but selects from the given collection of Props instead of the Renderers props. Make sure the Props in the collection are in this renderer. |
|
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selectionX and selectionY). |
|
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selectionX and selectionY). |
|
Methods used to return the pick (x,y) in local display coordinates (i.e., it's that same as selectionX and selectionY). |
|
Return the Z value for the last picked Prop. Reimplemented in vtkImager, vtkMesaRenderer, and vtkOpenGLRenderer. |
|
Reimplemented in vtkImager, vtkMesaRenderer, and vtkOpenGLRenderer. |
|
Reimplemented in vtkImager, vtkMesaRenderer, and vtkOpenGLRenderer. |
|
Reimplemented in vtkImager, vtkMesaRenderer, and vtkOpenGLRenderer. |
|
Reimplemented in vtkImager, vtkMesaRenderer, and vtkOpenGLRenderer. |
|
Reimplemented in vtkImager, vtkMesaRenderer, and vtkOpenGLRenderer. |
|
Definition at line 286 of file vtkViewport.h. |
|
Definition at line 287 of file vtkViewport.h. |
|
Definition at line 289 of file vtkViewport.h. |
|
Definition at line 290 of file vtkViewport.h. |
|
Definition at line 291 of file vtkViewport.h. |
|
Definition at line 292 of file vtkViewport.h. |
|
Definition at line 295 of file vtkViewport.h. |
|
Definition at line 296 of file vtkViewport.h. |
|
Definition at line 297 of file vtkViewport.h. |
|
Definition at line 298 of file vtkViewport.h. |
|
Definition at line 299 of file vtkViewport.h. |
|
Definition at line 300 of file vtkViewport.h. |
|
Definition at line 301 of file vtkViewport.h. |
|
Definition at line 302 of file vtkViewport.h. |
|
Definition at line 304 of file vtkViewport.h. |
|
Definition at line 305 of file vtkViewport.h. |
|
Definition at line 307 of file vtkViewport.h. |
|
Definition at line 308 of file vtkViewport.h. |
|
Definition at line 309 of file vtkViewport.h. |
|
Definition at line 310 of file vtkViewport.h. |
|
Definition at line 311 of file vtkViewport.h. |