Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

VRJugglerScene Class Reference

#include <VRJugglerScene.h>

Inheritance diagram for VRJugglerScene:

Scene List of all members.

Public Methods

 VRJugglerScene (VMDApp *)
 pass in VMDApp handle, needed for VMDexit. More...

void init ()
virtual ~VRJugglerScene (void)
virtual void draw (DisplayDevice *)
 draw the scene to the given DisplayDevice, can change display states XXX note, this method should really be a 'const' method since it is run concurrently by several processes that share memory, but we can't actually write it that way since the locking routines do indeed write to lock variables. The code in draw() should be written as though it were a const method however. More...

virtual void draw_finished (void)
 perform any post-drawing cleanup, reset state caching variables, etc. More...

virtual int prepare ()
 Call the parent's prepare, then update the shared memory info. More...

void waitForKernelStop ()
void appendCommand (const char *str)
 Use VRJuggler allocator-deallocator for VRJugglerScene object. More...

void getWandXYZ (float &x, float &y, float &z)
void getWandRotMat (Matrix4 &rot)
bool getWandButton (unsigned nr)

Public Attributes

VMDAppapp
Kernel * kernel
M_VRJappapplication

Constructor & Destructor Documentation

VRJugglerScene::VRJugglerScene VMDApp  
 

pass in VMDApp handle, needed for VMDexit.

Definition at line 38 of file VRJugglerScene.C.

VRJugglerScene::~VRJugglerScene void    [virtual]
 

Definition at line 78 of file VRJugglerScene.C.

References application, and kernel.


Member Function Documentation

void VRJugglerScene::appendCommand const char *    str
 

Use VRJuggler allocator-deallocator for VRJugglerScene object.

Definition at line 121 of file VRJugglerScene.C.

References app, M_VRJapp::appendCommand, and application.

void VRJugglerScene::draw DisplayDevice   [virtual]
 

draw the scene to the given DisplayDevice, can change display states XXX note, this method should really be a 'const' method since it is run concurrently by several processes that share memory, but we can't actually write it that way since the locking routines do indeed write to lock variables. The code in draw() should be written as though it were a const method however.

Reimplemented from Scene.

Definition at line 88 of file VRJugglerScene.C.

References app, and Scene::draw.

Referenced by vrjuggler_renderer.

void VRJugglerScene::draw_finished void    [virtual]
 

perform any post-drawing cleanup, reset state caching variables, etc.

Reimplemented from Scene.

Definition at line 100 of file VRJugglerScene.C.

References app, and Scene::draw_finished.

Referenced by vrjuggler_renderer.

bool VRJugglerScene::getWandButton unsigned    nr
 

Definition at line 153 of file VRJugglerScene.C.

References application, and M_VRJapp::getWandButton.

Referenced by VRJugglerButtons::update.

void VRJugglerScene::getWandRotMat Matrix4   rot
 

Definition at line 145 of file VRJugglerScene.C.

References application, and M_VRJapp::getWandRotMat.

Referenced by VRJugglerTracker::update.

void VRJugglerScene::getWandXYZ float &    x,
float &    y,
float &    z
 

Definition at line 135 of file VRJugglerScene.C.

References application, M_VRJapp::getWandXYZ, and z.

Referenced by VRJugglerTracker::update.

void VRJugglerScene::init  
 

Definition at line 42 of file VRJugglerScene.C.

References application, kernel, and M_VRJapp::setScene.

int VRJugglerScene::prepare   [virtual]
 

Call the parent's prepare, then update the shared memory info.

Reimplemented from Scene.

Definition at line 110 of file VRJugglerScene.C.

References Scene::prepare.

void VRJugglerScene::waitForKernelStop  
 

Definition at line 114 of file VRJugglerScene.C.

References kernel.


Member Data Documentation

VMDApp* VRJugglerScene::app
 

Definition at line 56 of file VRJugglerScene.h.

Referenced by appendCommand, draw, M_VRJapp::draw, draw_finished, M_VRJapp::latePreFrame, M_VRJapp::postFrame, and M_VRJapp::preFrame.

M_VRJapp* VRJugglerScene::application
 

Definition at line 92 of file VRJugglerScene.h.

Referenced by appendCommand, getWandButton, getWandRotMat, getWandXYZ, init, and ~VRJugglerScene.

Kernel* VRJugglerScene::kernel
 

Definition at line 91 of file VRJugglerScene.h.

Referenced by init, waitForKernelStop, and ~VRJugglerScene.


The documentation for this class was generated from the following files:
Generated on Fri Nov 8 02:47:29 2024 for VMD (current) by doxygen1.2.14 written by Dimitri van Heesch, © 1997-2002