MeVisLabToolboxReference
MeVis/Foundation/Sources/MLInventorBinding/XVBasics.h File Reference

Library init macros, node check macros for inventor wrapper. More...

#include "mlSystemWarningsDisable.h"
#include "windows.h"
#include "mlSystemWarningsRestore.h"

Go to the source code of this file.

Defines

#define SONODE_IS_A(node, type)   (node?node->isOfType(SoType::fromName(#type)):FALSE)
 SONODE_IS_A macro is used to check if the given node pointer is of the wanted type: usage: SONODE_IS_A(node, SoAnyNodeName)
#define XV_INIT_LIBRARY(initMethod)
 XV_INIT_LIBRARY is a macro used to initialize shared libraries independent of the underlying system (WIN32/Unix), the given init method is called on loading of the library.

Detailed Description

Library init macros, node check macros for inventor wrapper.

Author:
Florian Link
Date:
11/2000

Definition in file XVBasics.h.


Define Documentation

#define SONODE_IS_A (   node,
  type 
)    (node?node->isOfType(SoType::fromName(#type)):FALSE)

SONODE_IS_A macro is used to check if the given node pointer is of the wanted type: usage: SONODE_IS_A(node, SoAnyNodeName)

Definition at line 22 of file XVBasics.h.

#define XV_INIT_LIBRARY (   initMethod)
Value:
class _##initMethod##Class { \
    public: \
    _##initMethod##Class() { \
    initMethod(); \
  } \
}; \
 \
static _##initMethod##Class initClass;

XV_INIT_LIBRARY is a macro used to initialize shared libraries independent of the underlying system (WIN32/Unix), the given init method is called on loading of the library.

Definition at line 27 of file XVBasics.h.