MeVisLab Toolbox Reference
XVBasics.h File Reference
#include "ThirdPartyWarningsDisable.h"
#include "windows.h"
#include "ThirdPartyWarningsRestore.h"

Go to the source code of this file.

Macros

#define SONODE_IS_A(node, type)   (node?node->isOfType(SoType::fromName(#type)):FALSE)
 Library init macros, node check macros for inventor wrapper. More...
 
#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. More...
 

Macro Definition Documentation

◆ SONODE_IS_A

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

Library init macros, node check macros for inventor wrapper.

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 26 of file XVBasics.h.

◆ XV_INIT_LIBRARY

#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 31 of file XVBasics.h.