Main Page | Namespace List | Class Hierarchy | Class List | File List | Namespace Members | Class Members | File Members | Related Pages

vrvis::VisApp Class Reference

Main application that calls everything else; connection to VR Juggler. More...

#include <VisApp.hpp>

Inheritance diagram for vrvis::VisApp:

vrj::GlApp List of all members.

Public Member Functions

 VisApp (Vis *pVis)
 Constructor that takes the visalization object.
 ~VisApp (void)
void exec (void)
 Start the visualization and stay in the execution loop.

Detailed Description

Main "application", derived from VR Juggler's GlApp, therefore filled with all kinds of VR Juggler callbacks which are forwarded to the suitable classes/functions of the visualization.

The typical main function for VRVis visualizations looks like this:

 // ... all needed includes here ...

 using namespace vrvis;

 int main(int argc, char** argv)
   // Initialize the VR Juggler kernel.
   visInit(argc, argv);

   // Instantiate the user visualization.
   MyVis* pMyVis = new MyVis(...);

   // Create a VisApp out of the user visualization.
   VisApp* pApp = new VisApp(pMyVis);

   // Execute and wait for the control loop to end.

   delete pApp;
   return 0;
See also:

Constructor & Destructor Documentation

VisApp::VisApp Vis pVis  ) 

Constructs a visualization application based on a given Vis.

[in] pVis Pointer to the visualization object to use.
VisApp takes over control of the input visualization, i.e. the user does not have to worry about the deletion/destruction of his visualization object.

VisApp::~VisApp void   ) 


Member Function Documentation

void VisApp::exec void   ) 

Starts the application by starting the VR Juggler kernel. The application enters the execution loop and waits for it to finish.

The documentation for this class was generated from the following files:
Generated on Tue Sep 21 07:31:11 2004 for VRVis by doxygen 1.3.8