vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Animator.cpp File Reference
#include "precompiled.h"
#include <vrecko/Scene.h>
#include <vrecko/EnvironmentObject.h>
#include <vrecko/EventDispatcher.h>
#include <helpers/XercesXMLUtils.h>
#include <vreckoAP/ObjectUtils/KeepOnScreen.h>
#include <vreckoAP/ObjectUtils/Animator.h>
#include <math.h>
#include <vrecko/PluginManager.h>
#include <osg/BlendFunc>
#include <osg/BlendColor>

Namespaces

namespace  APObjectUtils
 

Macros

#define READ_XML_VECTOR(parentNode, name, function_set, pnt)
 
#define READ_XML_QUAT(parentNode, name, function_set, pnt)
 
#define READ_XML_FLOAT(parentNode, name, function_set)
 
#define ASSERT_POINT_INDEX(pointIndex, return_value_if_error)
 

Macro Definition Documentation

#define ASSERT_POINT_INDEX (   pointIndex,
  return_value_if_error 
)
Value:
if (((pointIndex) < 0) || ((pointIndex) >= (int)points.dwNum)) { \
logger.errorLog("Animator: Specified pointIndex (%d) is out of bounds (0 .. %d)", pointIndex, (int)points.dwNum - 1); \
return (return_value_if_error); \
}
#define READ_XML_FLOAT (   parentNode,
  name,
  function_set 
)
Value:
if (tmpNode = findXMLNode (parentNode, name)) { \
tmpStr = getNodeTextTrans(tmpNode); \
sscanf(tmpStr, "%f", &x); \
function_set(x); \
XERCES_CPP_NAMESPACE_QUALIFIER XMLString::release (&tmpStr); \
}
#define READ_XML_QUAT (   parentNode,
  name,
  function_set,
  pnt 
)
Value:
if (tmpNode = findXMLNode (parentNode, name)) { \
tmpStr = getNodeTextTrans(tmpNode); \
sscanf(tmpStr, "%f %f %f %f", &x, &y, &z, &w); \
function_set(pnt, osg::Quat(x, y, z, w)); \
XERCES_CPP_NAMESPACE_QUALIFIER XMLString::release (&tmpStr); \
}
#define READ_XML_VECTOR (   parentNode,
  name,
  function_set,
  pnt 
)
Value:
if (tmpNode = findXMLNode (parentNode, name)) { \
tmpStr = getNodeTextTrans(tmpNode); \
sscanf(tmpStr, "%f %f %f", &x, &y, &z); \
function_set(pnt, osg::Vec3(x, y, z)); \
XERCES_CPP_NAMESPACE_QUALIFIER XMLString::release (&tmpStr); \
}