Open Inventor Reference
SoDebug Class Reference

List of environment variables for tracing: More...

#include <Inventor/SoDebug.h>

List of all members.

Static Public Member Functions

static const char * GetEnv (const char *envVar)
 Returns value of environment variable; faster than getenv() because the environment variables are stored in a dictionary.
static void RTPrintf (const char *formatString...)
 Prints into an internal buffer that is emptied every once in a while.
static void NamePtr (const char *name, void *ptr)
 Assign the given pointer a name.
static const char * PtrName (void *ptr)
 Return the name of the given pointer (returns "<noName>" if not named previously with NamePtr).
static void write (SoNode *node)
 Applies an SoWriteAction to the graph rooted by the given node.
static void writeFile (SoNode *node, const char *filename)
 Applies an SoWriteAction to the graph rooted by the given node, writing to given file, or /tmp/debug.iv if filename is NULL.
static void writeField (SoField *node)
 Applies an SoWriteAction to the container of the given field.
static void printName (SoBase *base)
 Writes the name of the given object to stdout.

Detailed Description

IV_DEBUG_BUFLEN : Number of lines RTPrintf saves up before dumping out. Defaults to 100, set to 1 to get it to dump after every line. IV_DEBUG_SENSORS : will print out info as sensors are triggered/etc IV_DEBUG_CACHES : print out info on cache validity, etc. IV_DEBUG_CACHELIST : print out info on Separator render caches.

Definition at line 80 of file SoDebug.h.


Member Function Documentation

static const char* SoDebug::GetEnv ( const char *  envVar) [static]
static void SoDebug::NamePtr ( const char *  name,
void *  ptr 
) [static]

The passed name string isn't copied; if it changes, the name of the pointer changes.

static void SoDebug::printName ( SoBase base) [static]

Very useful when called from within a debugger!

static const char* SoDebug::PtrName ( void *  ptr) [static]
static void SoDebug::RTPrintf ( const char *  formatString...) [static]

Useful when doing the print right away screws up the timing of the thing you're trying to debug.

static void SoDebug::write ( SoNode node) [static]

The results go to stdout. Very useful when called from within a debugger!

static void SoDebug::writeField ( SoField node) [static]

The results go to stdout. Very useful when called from within a debugger!

static void SoDebug::writeFile ( SoNode node,
const char *  filename 
) [static]

The documentation for this class was generated from the following file: