pfViewkitViewer(3pf) OpenGL Performer 3.2.2 libpfx C++ Reference Pages
NAMEpfViewkitViewer - pfViewer based on Viewkit GUI Toolkit
FUNCTION SPECIFICATION
#include <Performer/pfx/pfViewkitViewer.h>
pfViewkitViewer::pfViewkitViewer(VkApp* app,
VkSimpleWindow* win = 0, pfPipe* p = NULL,
int numChannels = 1, int stereoMode = PFVIEWER_MONO,
int *attr = NULL);
static pfType* pfViewkitViewer::getClassType(void);
virtual void pfViewkitViewer::guiMainLoop();
virtual void pfViewkitViewer::show();
PARENT CLASS FUNCTIONS
The OpenGL Performer class pfViewkitViewer is derived from the parent
class pfMotifViewer, so each of these member functions of class
pfMotifViewer are also directly usable with objects of class
pfViewkitViewer. This is also true for ancestor classes of class
pfMotifViewer.
virtual void pfMotifViewer::guiMainLoop();
virtual void pfMotifViewer::show();
Widget pfMotifViewer::getTopLevelWidget();
void pfMotifViewer::setTopLevelWidget(Widget topLevel);
XtAppContext pfMotifViewer::getAppContext();
void pfMotifViewer::setAppContext(XtAppContext appContext);
Since the class pfMotifViewer is itself derived from the parent class
pfGUIViewer, objects of class pfViewkitViewer can also be used with these
functions designed for objects of class pfGUIViewer.
virtual void pfGUIViewer::addWorkProc() = 0;
virtual void pfGUIViewer::removeWorkProc() = 0;
virtual void pfGUIViewer::guiMainLoop() = 0;
virtual void pfGUIViewer::show() = 0;
int pfGUIViewer::mapUnmapCB(int evenType);
void* pfGUIViewer::getWidget();
void pfGUIViewer::setWidget(void* widget);
void pfGUIViewer::getMainWindow();
Since the class pfGUIViewer is itself derived from the parent class
pfViewer, objects of class pfViewkitViewer can also be used with these
functions designed for objects of class pfViewer.
Page 1
pfViewkitViewer(3pf) OpenGL Performer 3.2.2 libpfx C++ Reference Pages
pfLightSource* pfViewer::getHeadLight() const;
void pfViewer::setHeadLight(pfLightSource *headlight);
pfEarthSky * pfViewer::getESky() const;
void pfViewer::setESky(pfEarthSky *eSky);
void pfViewer::loadModel(char *filename, int optimize = 1);
void pfViewer::setSceneGraph(pfNode *newRoot,
int optimize = 0);
pfNode * pfViewer::getSceneGraph() const;
pfChannel * pfViewer::getChannel(int i = 0);
int pfViewer::getNumChannels() const;
pfPipeWindow* pfViewer::getPipeWindow() const;
void pfViewer::resetToHomePosition();
void pfViewer::saveHomePosition();
pfScene* pfViewer::getScene(int whichChannel = 0) const;
int pfViewer::getWidth() const;
int pfViewer::getHeight() const;
void pfViewer::setWidth(int width);
void pfViewer::setHeight(int height);
void pfViewer::setWinSizes(int width, int height);
void pfViewer::setOriginSize(int origX, int origY,
orig width, int height);
void pfViewer::getXOrigin() const;
void pfViewer::getYOrigin() const;
Window pfViewer::getXWin();
Window pfViewer::getGXWin();
void pfViewer::setDisplay(Display *);
Display* pfViewer::getDisplay() const;
pfCoord& pfViewer::getView();
void pfViewer::setInterOcularDistance(float distance);
void pfViewer::setConvergenceRatio(float ratio);
void pfViewer::setView(pfCoord& view);
pfDrawAction * pfViewer::getDrawAction(int i = 0);
void pfViewer::setDrawAction(int i,
pfDrawAction *drawAction);
int pfViewer::getStereoMode();
void viewAll();
virtual void pfViewer::show();
void pfViewer::setLoadNewModelFlag(int flag);
void pfViewer::setLoadFilename(const char *filename);
void pfViewer::setXWin(Window win);
void pfViewer::setGXWin(Window win);
Since the class pfViewer is itself derived from the parent class
pfObject, objects of class pfViewkitViewer can also be used with these
functions designed for objects of class pfObject.
void* pfObject::operator new(size_t);
void* pfObject::operator new(size_t, pfFluxMemory *fmem);
void pfObject::setUserData(void *data);
Page 2
pfViewkitViewer(3pf) OpenGL Performer 3.2.2 libpfx C++ Reference Pages
void pfObject::setUserData(int slot, void *data);
void* pfObject::getUserData(pfObject *obj);
void* pfObject::getUserData(pfObject *obj, int slot);
int pfObject::getNumUserData();
Since the class pfObject is itself derived from the parent class
pfMemory, objects of class pfViewkitViewer can also be used with these
functions designed for objects of class pfMemory.
void* pfMemory::getData(const void *ptr);
pfType * pfMemory::getType();
int pfMemory::isOfType(pfType *type);
int pfMemory::isExactType(pfType *type);
const char * pfMemory::getTypeName();
int pfMemory::copy(pfMemory *src);
int pfMemory::compare(const pfMemory *mem);
void pfMemory::print(uint which, uint verbose, char *prefix,
FILE *file);
int pfMemory::getArena(void *ptr);
void* pfMemory::getArena();
int pfMemory::ref();
int pfMemory::unref();
int pfMemory::unrefDelete();
int pfMemory::unrefGetRef();
int pfMemory::getRef();
int pfMemory::checkDelete();
int pfMemory::isFluxed();
void * pfMemory::getArena();
int pfMemory::getSize();
DESCRIPTION
new pfViewkitViewer creates and returns a handle to a pfViewkitViewer.
Like other pfGUIViewers, pfViewkitViewers are always allocated from
shared memory and can be deleted by the calling
pfViewerManager::removeViewer(). The first argument app for this
constructor must be specified and is a pointer to the viewkit application
object. The second argument which specifies the VkSimpleWindow may be
omitted and if this is the case, a top level window of this type will be
created for the user
NOTES
If you plan on using VkSubMenus, you may want to set the ::useWorkProcs()
option to 0 and the ::useOverlayMenus() option to 1 to ensure proper
functionning with OpenGL Performer.
The libpfx source code, object code and documentation are provided as
unsupported software. Routines are subject to change in future releases.
The most recent version of this software may be found at the following
URL: http://oss.sgi.com/projects/performer/.
Page 3
pfViewkitViewer(3pf) OpenGL Performer 3.2.2 libpfx C++ Reference Pages
SEE ALSO
pfMotifViewer, pfViewerManager, pfGUIViewer, pfViewer
Page 4