pfvWorld(3pf) OpenGL Performer 3.2.2 libpfv C++ Reference Pages
NAMEpfvWorld - Configure one or more scenes (Worlds) for pfvViewer
Applications
FUNCTION SPECIFICATION
#include <Performer/pfv/pfvViewer.h>
pfvWorld::pfvWorld();
int pfvWorld::getNumViews();
pfvView* pfvWorld::getView(int i=0);
pfScene* pfvWorld::getScene();
int pfvWorld::addNode(pfNode*node);
uint64_t pfvWorld::getViewMask();
DESCRIPTION
The pfvWorld class is used to represent the contents of a scene in a
pfvViewer application. In addition to having an associated pfScene, a
pfvWorld will manage a list of scoped pfvModules.
A pfvWorld object cannot be created through its constructor (which is
private). Instead, a pfvWorld must be created through the
pfvViewer::createWorld method.
During the course of an application a pfvWorld may be viewed by a number
of views, and possibly by more than one view simoultaneously.
pfvWorld::getNumViews() will return the number of views currently viewing
world. Note that this number is not updated immediately after a call to
pfvView::setTargetWorld(), but will be updated at the end of the current
frame, when pfvViewer carries out actual switching (see man page for
pfvView).
pfvWorld::getView returns the ith view in world's view-list, if i is a
valid index, or NULL otherwise.
pfvWorld::getScene() returns a pointer to the pfScene object associated
to a pfvWorld. Since pfScene object is created by pfvViewer::config, this
method returns NULL if called before modules' POSTCONFIG callbacks are
called.
pfvWorld::addNode() adds node to pfScene associated with world. This
method must be called after pfConfig() has been called (by viewer), ie no
sooner than modules' POSTCONFIG callbacks.
pfvWorld::getViewMask() returns a 64-bit mask indicating which views are
currently viewing this world. The bit corresponding to any pfvView v is
given by 1<<(v->getIndex()).
Page 1
pfvWorld(3pf) OpenGL Performer 3.2.2 libpfv C++ Reference Pages
NOTESSEE ALSO
pfvViewer, pfvView, pfScene
Page 2