Nebula
Loading...
Searching...
No Matches
Models::CharacterNode Class Reference

#include <characternode.h>

Inherits Models::TransformNode.

Public Member Functions

 CharacterNode ()
 constructor
 
virtual ~CharacterNode ()
 destructor
 
void OnResourcesLoaded ()
 called when resources have loaded
 
bool Load (const Util::FourCC &fourcc, const Util::StringAtom &tag, const Ptr< IO::BinaryReader > &reader, bool immediate) override
 parse data tag (called by loader code)
 
void Discard () override
 discard node
 
const Resources::ResourceNameGetAnimResource () const
 get the owned character object
 
const Resources::ResourceId GetAnimationResourceId () const
 get the character's animation resource
 
bool GetImplicitHierarchyActivation () const override
 character nodes should not create the hierarchy implicitly
 
- Public Member Functions inherited from Models::TransformNode
 TransformNode ()
 constructor
 
virtual ~TransformNode ()
 destructor
 
void GetLODDistances (float &minDistance, float &maxDistance)
 Get LOD distances.
 
- Public Member Functions inherited from Models::ModelNode
 ModelNode ()
 constructor
 
virtual ~ModelNode ()
 destructor
 
const Util::Array< ModelNode * > & GetChildren () const
 return constant reference to children
 
const NodeType GetType () const
 get type of node
 
const NodeBits GetBits () const
 get feature bits of node
 
const Util::StringAtomGetName () const
 return name
 
const uint32_t HashCode () const
 get hash
 
virtual std::function< void(const CoreGraphics::CmdBufferId)> GetApplyFunction ()
 Get function to apply node.
 
virtual std::function< const CoreGraphics::PrimitiveGroup()> GetPrimitiveGroupFunction ()
 Get function to fetch primitive group.
 
virtual void Unload ()
 Unload data (don't call explicitly)
 

Protected Attributes

Resources::ResourceName animResId
 recursively create model node instance and child model node instances
 
IndexT animIndex
 
Resources::ResourceName skeletonResId
 
IndexT skeletonIndex
 
Resources::ResourceName variationResId
 
Util::StringAtom tag
 
Resources::ResourceId managedAnimResource
 
Resources::ResourceId managedVariationResource
 
CoreGraphics::ShaderId sharedShader
 
CoreGraphics::BufferId cbo
 
IndexT cboIndex
 
- Protected Attributes inherited from Models::TransformNode
Math::vec3 position
 
Math::quat rotate
 
Math::vec3 scale
 
Math::vec3 rotatePivot
 
Math::vec3 scalePivot
 
bool isInViewSpace
 
float minDistance
 
float maxDistance
 
bool useLodDistances
 
bool lockedToViewer
 
- Protected Attributes inherited from Models::ModelNode
Util::StringAtom name
 
NodeType type
 
NodeBits bits
 
Models::ModelNodeparent
 
Util::Array< Models::ModelNode * > children
 
Math::bbox boundingBox
 
Util::StringAtom tag
 
IndexT uniqueId
 

Additional Inherited Members

- Protected Member Functions inherited from Models::TransformNode
- Protected Member Functions inherited from Models::ModelNode
virtual void OnFinishedLoading (ModelStreamingData *streamingData)
 call when model node data is finished loading (not accounting for secondary resources)
 
- Static Protected Attributes inherited from Models::ModelNode
static IndexT ModelNodeUniqueIdCounter = 0
 

Constructor & Destructor Documentation

◆ CharacterNode()

Models::CharacterNode::CharacterNode ( )

constructor

◆ ~CharacterNode()

Models::CharacterNode::~CharacterNode ( )
virtual

destructor

Member Function Documentation

◆ Discard()

void Models::CharacterNode::Discard ( )
overridevirtual

discard node

Reimplemented from Models::ModelNode.

◆ GetAnimationResourceId()

const Resources::ResourceId Models::CharacterNode::GetAnimationResourceId ( ) const
inline

get the character's animation resource

◆ GetAnimResource()

const Resources::ResourceName & Models::CharacterNode::GetAnimResource ( ) const
inline

get the owned character object

get the character's managed animation resource

◆ GetImplicitHierarchyActivation()

bool Models::CharacterNode::GetImplicitHierarchyActivation ( ) const
inlineoverridevirtual

character nodes should not create the hierarchy implicitly

Reimplemented from Models::ModelNode.

◆ Load()

bool Models::CharacterNode::Load ( const Util::FourCC & fourcc,
const Util::StringAtom & tag,
const Ptr< IO::BinaryReader > & reader,
bool immediate )
overridevirtual

parse data tag (called by loader code)

Reimplemented from Models::TransformNode.

◆ OnResourcesLoaded()

void Models::CharacterNode::OnResourcesLoaded ( )

called when resources have loaded

Member Data Documentation

◆ animIndex

IndexT Models::CharacterNode::animIndex
protected

◆ animResId

Resources::ResourceName Models::CharacterNode::animResId
protected

recursively create model node instance and child model node instances

◆ cbo

CoreGraphics::BufferId Models::CharacterNode::cbo
protected

◆ cboIndex

IndexT Models::CharacterNode::cboIndex
protected

◆ managedAnimResource

Resources::ResourceId Models::CharacterNode::managedAnimResource
protected

◆ managedVariationResource

Resources::ResourceId Models::CharacterNode::managedVariationResource
protected

◆ sharedShader

CoreGraphics::ShaderId Models::CharacterNode::sharedShader
protected

◆ skeletonIndex

IndexT Models::CharacterNode::skeletonIndex
protected

◆ skeletonResId

Resources::ResourceName Models::CharacterNode::skeletonResId
protected

◆ tag

Util::StringAtom Models::CharacterNode::tag
protected

◆ variationResId

Resources::ResourceName Models::CharacterNode::variationResId
protected

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