The Nebula Device 3: RenderUtil::NodeLookupUtil Class Reference

The Nebula Device 3

RenderUtil::NodeLookupUtil Class Reference

#include <nodelookuputil.h>


Detailed Description

Helper class to find specific nodes and nodeinstances inside a internalgraphicsentity

WARNING: this util uses SLOW methods, like 'ModelInstanceLookupNodeInstance', use it careful!!!

(C) 2009 Radon Labs GmbH

Static Public Member Functions

static Ptr< Models::StateNodeInstanceLookupStateNodeInstance (const Ptr< InternalGraphics::InternalModelEntity > &entity, const Util::StringAtom &nodeName, bool checkResourceState=true)
 find state node instance
static Ptr< Models::AnimatorNodeInstance > LookupAnimatorNodeInstance (const Ptr< InternalGraphics::InternalModelEntity > &entity, const Util::StringAtom &nodeName, bool checkResourceState=true)
 find state node instance

Member Function Documentation

Ptr< StateNodeInstance > RenderUtil::NodeLookupUtil::LookupStateNodeInstance ( const Ptr< InternalGraphics::InternalModelEntity > &  entity,
const Util::StringAtom nodeName,
bool  checkResourceState = true 
) [static]

find state node instance

FIXME: THESE METHODS ARE SLOW AS HELL!!!

Utility function which searches a specified statenodeinstance in a internalgraphicsentity.

returns 0 if

  • resource is not loaded and resourcecheck flag is enabled
  • node was not found
  • internalmodelentity is not active
  • model instanes is not valid

Ptr< AnimatorNodeInstance > RenderUtil::NodeLookupUtil::LookupAnimatorNodeInstance ( const Ptr< InternalGraphics::InternalModelEntity > &  entity,
const Util::StringAtom nodeName,
bool  checkResourceState = true 
) [static]

find state node instance

FIXME: THESE METHODS ARE SLOW AS HELL!!!

Utility function which searches a specified animatornodeinstance in a internalgraphicsentity.

returns 0 if

  • resource is not loaded and resourcecheck flag is enabled
  • node was not found
  • internalmodelentity is not active
  • model instanes is not valid