simpleview.C File Reference

Basic viewer for OpenInventor/Coin and Voleon data. Supports any file format that Coin/Voleon support. More...

#include <cstdio>
#include <cassert>
#include <iostream>
#include <fstream>
#include <sstream>
#include <vector>
#include <string>
#include <Inventor/Qt/SoQt.h>
#include <Inventor/Qt/viewers/SoQtExaminerViewer.h>
#include <Inventor/SoOffscreenRenderer.h>
#include <Inventor/SoOutput.h>
#include <Inventor/sensors/SoTimerSensor.h>
#include <Inventor/actions/SoWriteAction.h>
#include <Inventor/events/SoMouseButtonEvent.h>
#include <Inventor/events/SoLocation2Event.h>
#include <Inventor/events/SoKeyboardEvent.h>
#include <Inventor/nodes/SoEventCallback.h>
#include <Inventor/nodes/SoNode.h>
#include <Inventor/nodes/SoCamera.h>
#include <Inventor/nodes/SoPerspectiveCamera.h>
#include <Inventor/nodes/SoSeparator.h>
#include <Inventor/nodes/SoSwitch.h>
#include <Inventor/nodes/SoPointLight.h>
#include <Inventor/nodes/SoLineSet.h>
#include <Inventor/nodes/SoCoordinate3.h>
#include <Inventor/draggers/SoSpotLightDragger.h>
#include <VolumeViz/nodes/SoVolumeRendering.h>
#include "simpleview_cmd.h"
#include "InventorUtilities.H"
#include "debug.H"

Classes

class  SceneInfo

Functions

SoSeparator * MakeSoLineSet (vector< SoSpotLightDragger * > &draggerVec)
 Return a lineset that does through all the dragger waypoints.
void PrintKeyboardShorts ()
 Send help on keyboard shortcuts to stdout.
void keyPressCallback (void *data, SoEventCallback *cb)
 Gets called whenever the user presses a key in interactive mode.
void timerSensorCallback (void *data, SoSensor *sensor)
 Handle details of moving the camera between waypoints.
bool InRange (const float check, const float v1, const float v2)
 Tell if a value is between 2 numbers, inclusive.
int main (int argc, char *argv[])

Variables

int debug_level = 0
 The main program needs to define this as a non-extern.
static const UNUSED char * RCSid = "$Id: simpleview.C,v 1.23 2004/11/26 15:24:59 schwehr Exp $"
 Let the debugger find out which version is being used.


Detailed Description

Basic viewer for OpenInventor/Coin and Voleon data. Supports any file format that Coin/Voleon support.


Function Documentation

bool InRange const float  check,
const float  v1,
const float  v2
 

Tell if a value is between 2 numbers, inclusive.

Returns:
true if v1<=check<=v2 or v2<=check<=v1

void keyPressCallback void *  data,
SoEventCallback *  cb
 

Gets called whenever the user presses a key in interactive mode.

Parameters:
data This will be the SceneInfo structure.
cb SoKeyboardEvent that records the keypress or release
Make sure that this stays in sync with PrintKeyboardShorts()

int main int  argc,
char *  argv[]
 

SoSeparator* MakeSoLineSet vector< SoSpotLightDragger * > &  draggerVec  ) 
 

Return a lineset that does through all the dragger waypoints.

Would be better if I did what Alex did back in `98 and use engines with the draggers so the line gets automatically updated with drags

void PrintKeyboardShorts  ) 
 

Send help on keyboard shortcuts to stdout.

void timerSensorCallback void *  data,
SoSensor *  sensor
 

Handle details of moving the camera between waypoints.

Parameters:
data SceneInfo data structure
sensor The timer that went off
Bug:
The first frame rendered to disk is not right. So for now ignore frame 0000


Variable Documentation

int debug_level = 0
 

The main program needs to define this as a non-extern.

const UNUSED char* RCSid = "$Id: simpleview.C,v 1.23 2004/11/26 15:24:59 schwehr Exp $" [static]
 

Let the debugger find out which version is being used.


Generated on Thu Mar 2 17:55:25 2006 for density by  doxygen 1.4.6