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

M_VRJapp Class Reference

#include <VRJugglerApp.h>

List of all members.

Public Methods

 M_VRJapp ()
virtual ~M_VRJapp (void)
virtual void init ()
void setScene (VRJugglerScene *s)
void appendCommand (const char *str)
virtual void apiInit ()
virtual void bufferPreDraw ()
virtual void preFrame ()
virtual void latePreFrame ()
virtual void intraFrame ()
virtual void postFrame ()
virtual void contextInit ()
virtual void draw ()
void getWandXYZ (float &x, float &y, float &z)
void getWandRotMat (Matrix4 &rot)
bool getWandButton (unsigned nr)

Public Attributes

std::vector< std::stringcmdQueue
gadget::PositionInterface mWand
gadget::PositionInterface mHead
gadget::DigitalInterface mButton0
gadget::DigitalInterface mButton1
cluster::UserData< VRJugglerSharedDatasharedData
VRJugglerScenescene


Detailed Description

VRjuggler application.

This application receives positional and digital intput from the wand.

Definition at line 57 of file VRJugglerApp.h.


Constructor & Destructor Documentation

M_VRJapp::M_VRJapp   [inline]
 

Definition at line 60 of file VRJugglerApp.h.

References cmdQueue.

virtual M_VRJapp::~M_VRJapp void    [inline, virtual]
 

Definition at line 64 of file VRJugglerApp.h.


Member Function Documentation

virtual void M_VRJapp::apiInit   [inline, virtual]
 

Executes any initialization needed after API is started but before the drawManager starts the drawing loops.

This is called once after OGL is initialized.

Definition at line 89 of file VRJugglerApp.h.

void M_VRJapp::appendCommand const char *    str
 

Definition at line 80 of file VRJugglerApp.C.

References cmdQueue.

Referenced by VRJugglerScene::appendCommand.

void M_VRJapp::bufferPreDraw   [virtual]
 

Function that is called upon entry into a buffer of an OpenGL context (window).

Note:
This function is designed to be used when you want to do something only once per buffer (ie.once for left buffer, once for right buffer).

Definition at line 162 of file VRJugglerApp.C.

void M_VRJapp::contextInit   [virtual]
 

Function that is called immediately after a new OGL context is created. Initialize GL state here. Also used to create context specific information.

This is called once for each context.

Definition at line 70 of file VRJugglerApp.C.

void M_VRJapp::draw   [virtual]
 

Function to draw the scene.

Precondition:
OpenGL state has correct transformation and buffer selected.
Postcondition:
The current scene has been drawn.
Note:
Called 1 or more times per frame.

Definition at line 169 of file VRJugglerApp.C.

References VRJugglerScene::app, scene, and vrjuggler_renderer.

bool M_VRJapp::getWandButton unsigned    nr
 

Definition at line 287 of file VRJugglerApp.C.

References mButton0, and mButton1.

Referenced by VRJugglerScene::getWandButton.

void M_VRJapp::getWandRotMat Matrix4   rot
 

Definition at line 271 of file VRJugglerApp.C.

References Matrix4::mat, and mWand.

Referenced by VRJugglerScene::getWandRotMat.

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

Definition at line 260 of file VRJugglerApp.C.

References mWand, and z.

Referenced by VRJugglerScene::getWandXYZ.

void M_VRJapp::init   [virtual]
 

Executes any initialization needed before the API is started.

Postcondition:
Device interfaces are initialized with the device names we want to use.
Note:
This is called once before OpenGL is initialized.

Definition at line 54 of file VRJugglerApp.C.

References mButton0, mButton1, mHead, mWand, and sharedData.

void M_VRJapp::intraFrame   [virtual]
 

Called during the Frame.

Note:
Function called after drawing has been triggered but BEFORE it completes.

Definition at line 199 of file VRJugglerApp.C.

void M_VRJapp::latePreFrame   [virtual]
 

Called before start of frame, after preFrame().

Definition at line 145 of file VRJugglerApp.C.

References VRJugglerScene::app, scene, sharedData, and VMDApp::uiText.

void M_VRJapp::postFrame   [virtual]
 

Called at end of frame.

Note:
Function called before updating trackers but after the frame is drawn.

Definition at line 210 of file VRJugglerApp.C.

References VRJugglerScene::app, and scene.

void M_VRJapp::preFrame   [virtual]
 

Called before start of frame.

Note:
Function called after device updates but before start of drawing.

Definition at line 92 of file VRJugglerApp.C.

References VRJugglerScene::app, cmdQueue, mButton0, mButton1, scene, sharedData, and strupcmp.

void M_VRJapp::setScene VRJugglerScene   s
 

Definition at line 75 of file VRJugglerApp.C.

References scene.

Referenced by VRJugglerScene::init.


Member Data Documentation

std::vector<std::string> M_VRJapp::cmdQueue
 

Definition at line 79 of file VRJugglerApp.h.

Referenced by appendCommand, M_VRJapp, and preFrame.

gadget::DigitalInterface M_VRJapp::mButton0
 

Digital interface for button 0

Definition at line 181 of file VRJugglerApp.h.

Referenced by getWandButton, init, and preFrame.

gadget::DigitalInterface M_VRJapp::mButton1
 

Digital interface for button 1

Definition at line 182 of file VRJugglerApp.h.

Referenced by getWandButton, init, and preFrame.

gadget::PositionInterface M_VRJapp::mHead
 

Positional interface for Head position

Definition at line 180 of file VRJugglerApp.h.

Referenced by init.

gadget::PositionInterface M_VRJapp::mWand
 

Positional interface for Wand position

Definition at line 179 of file VRJugglerApp.h.

Referenced by getWandRotMat, getWandXYZ, and init.

VRJugglerScene* M_VRJapp::scene
 

Definition at line 186 of file VRJugglerApp.h.

Referenced by draw, latePreFrame, postFrame, preFrame, and setScene.

cluster::UserData<VRJugglerSharedData> M_VRJapp::sharedData
 

Definition at line 184 of file VRJugglerApp.h.

Referenced by init, latePreFrame, and preFrame.


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