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

#include <transformnode.h>

Inherits Models::ModelNode.

Inherited by Models::CharacterNode, and Models::ShaderStateNode.

Public Member Functions

 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
 
virtual bool GetImplicitHierarchyActivation () const
 return true if all children should create hierarchies upon calling CreateInstance
 
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 Member Functions

virtual bool Load (const Util::FourCC &fourcc, const Util::StringAtom &tag, const Ptr< IO::BinaryReader > &reader, bool immediate) override
 load transform
 
- 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)
 
virtual void Discard ()
 discard node
 

Protected Attributes

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
 

Friends

class ModelLoader
 
class ModelContext
 

Additional Inherited Members

- Static Protected Attributes inherited from Models::ModelNode
static IndexT ModelNodeUniqueIdCounter = 0
 

Constructor & Destructor Documentation

◆ TransformNode()

Models::TransformNode::TransformNode ( )

constructor

◆ ~TransformNode()

Models::TransformNode::~TransformNode ( )
virtual

destructor

Member Function Documentation

◆ GetLODDistances()

void Models::TransformNode::GetLODDistances ( float & minDistance,
float & maxDistance )

Get LOD distances.

◆ Load()

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

Friends And Related Symbol Documentation

◆ ModelContext

friend class ModelContext
friend

◆ ModelLoader

friend class ModelLoader
friend

Member Data Documentation

◆ isInViewSpace

bool Models::TransformNode::isInViewSpace
protected

◆ lockedToViewer

bool Models::TransformNode::lockedToViewer
protected

◆ maxDistance

float Models::TransformNode::maxDistance
protected

◆ minDistance

float Models::TransformNode::minDistance
protected

◆ position

Math::vec3 Models::TransformNode::position
protected

◆ rotate

Math::quat Models::TransformNode::rotate
protected

◆ rotatePivot

Math::vec3 Models::TransformNode::rotatePivot
protected

◆ scale

Math::vec3 Models::TransformNode::scale
protected

◆ scalePivot

Math::vec3 Models::TransformNode::scalePivot
protected

◆ useLodDistances

bool Models::TransformNode::useLodDistances
protected

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