Class to define a view. More...
#include <Inventor/Gui/view/PoView.h>
Public Member Functions | |
virtual SoType | getTypeId () const |
virtual const SoNodekitCatalog * | getNodekitCatalog () const |
PoView () | |
Static Public Member Functions | |
static SoType | getClassTypeId () |
static const SoNodekitCatalog * | getClassNodekitCatalog () |
This class allows the user to define a "view".
Views allow the application to specify multiple cameras, each with its own separate viewport (region of the 3D window). This is more powerful than just using multiple SoCamera nodes, because camera nodes do not allow specifying a viewport (the viewport is always the full window).
In addition, when mouse event locations are mapped back into 3D space, Open Inventor automatically uses the view volume of the camera associated with the view whose viewport currently contains the mouse cursor.
Views can be used to efficiently create the effect of multiple windows, without the overhead and system dependent code to manage multiple windows. For example, views can be used to subdivide the window into multiple independent views of a 3D scene or to create an inset "bird's eye" view inside the window.
Basically, a view consists of a camera (specified with an SoCameraKit) and a viewport (specified using the fields of this node). The viewport is the region of the graphics window in which the scene graph will be rendered.
A To define a view, set the fields viewportOrigin and viewportSize to the desired viewport position and size in normalized device coordinates [0..1], then configure the camera (set the part cameraKit). All shape nodes placed after this node will be drawn using the specified camera and viewport. You can define as many views as you want.
NOTES:
LIMITATIONS:
viewportOrigin | 0 0 |
viewportSize | 1 1 |
PoView::PoView | ( | ) |
Default constructor.
static const SoNodekitCatalog* PoView::getClassNodekitCatalog | ( | ) | [static] |
Returns the SoNodekitCatalog for this class.
Reimplemented from PoBaseView.
static SoType PoView::getClassTypeId | ( | ) | [static] |
Returns the type identifier for this class.
Reimplemented from PoBaseView.
virtual const SoNodekitCatalog* PoView::getNodekitCatalog | ( | ) | const [virtual] |
Returns the SoNodekitCatalog for this instance.
Reimplemented from PoBaseView.
virtual SoType PoView::getTypeId | ( | ) | const [virtual] |
Returns the type identifier for this specific instance.
Reimplemented from PoBaseView.