Polyphase Game Engine
Loading...
Searching...
No Matches
BoneMaskAsset Class Reference

#include <BoneMaskAsset.h>

Inheritance diagram for BoneMaskAsset:
Asset Object

Classes

struct  ResolvedCache
 

Public Member Functions

 DECLARE_ASSET (BoneMaskAsset, Asset)
 
 BoneMaskAsset ()
 
 ~BoneMaskAsset ()
 
virtual void LoadStream (Stream &stream, Platform platform) override
 
virtual void SaveStream (Stream &stream, Platform platform) override
 
virtual void Create () override
 
virtual void Destroy () override
 
virtual void GatherProperties (std::vector< Property > &outProps) override
 
virtual glm::vec4 GetTypeColor () override
 
virtual const char * GetTypeName () override
 
SkeletalMeshGetTargetMesh () const
 
void SetTargetMesh (SkeletalMesh *mesh)
 
const std::vector< std::string > & GetIncludeRoots () const
 
const std::vector< std::string > & GetExcludeRoots () const
 
bool GetSelfOnly () const
 
void SetIncludeRoots (const std::vector< std::string > &roots)
 
void SetExcludeRoots (const std::vector< std::string > &roots)
 
void SetSelfOnly (bool selfOnly)
 
void AddIncludeRoot (const std::string &boneName)
 
void RemoveIncludeRoot (const std::string &boneName)
 
void AddExcludeRoot (const std::string &boneName)
 
void RemoveExcludeRoot (const std::string &boneName)
 
const std::vector< uint8_t > & Resolve (const SkeletalMesh *mesh)
 
void InvalidateCache ()
 
- Public Member Functions inherited from Asset
 DECLARE_FACTORY_MANAGER (Asset)
 
 DECLARE_FACTORY (Asset, Asset)
 
 DECLARE_OBJECT (Asset, Object)
 
 Asset ()
 
virtual ~Asset ()
 
virtual void Copy (Asset *srcAsset)
 
void ResetLoadedFlag ()
 
const std::string & GetName () const
 
bool IsLoaded () const
 
bool IsRefCounted () const
 
int32_t GetRefCount () const
 
bool IsEmbedded () const
 
void SetEmbedded (bool embed)
 
bool IsEngineAsset () const
 
void SetEngineAsset (bool engineAsset)
 
void SetName (const std::string &name)
 
void IncrementRefCount ()
 
void DecrementRefCount ()
 
void LoadFile (const char *path, AsyncLoadRequest *request=nullptr)
 
void LoadEmbedded (const EmbeddedFile *embeddedAsset, AsyncLoadRequest *request=nullptr)
 
void SaveFile (const char *path, Platform platform)
 
virtual bool Import (const std::string &path, ImportOptions *options=nullptr)
 
virtual const char * GetTypeImportExt ()
 
virtual bool ShouldSnapshotForPie () const
 
bool IsTransient () const
 
void SetTransient (bool transient)
 
uint64_t GetUuid () const
 
void SetUuid (uint64_t uuid)
 
void EnsureUuid ()
 
void WriteHeader (Stream &stream)
 
- Public Member Functions inherited from Object
virtual ~Object ()=default
 
virtual const char * RuntimeName () const =0
 
virtual const char * RuntimeParentName () const =0
 
virtual RuntimeId InstanceRuntimeId () const =0
 
virtual ObjectQueryInterface (RuntimeId id) const
 
virtual bool Is (RuntimeId id) const
 
virtual bool Is (const char *name) const
 
virtual bool DrawCustomProperty (Property &prop)
 
template<typename T >
T * As () const
 
virtual bool Equals (const Object *rhs) const
 

Static Public Member Functions

static bool HandlePropChange (Datum *datum, uint32_t index, const void *newValue)
 
- Static Public Member Functions inherited from Asset
static AssetHeader ReadHeader (Stream &stream)
 
static std::string GetNameFromPath (const std::string &path)
 
static std::string GetDirectoryFromPath (const std::string &path)
 
static const char * GetNameFromTypeId (TypeId id)
 
static TypeId GetTypeIdFromName (const char *name)
 
- Static Public Member Functions inherited from Object
static const char * ClassRuntimeName ()
 

Protected Attributes

SkeletalMeshRef mTargetMesh
 
std::vector< std::string > mIncludeRoots
 
std::vector< std::string > mExcludeRoots
 
bool mSelfOnly = false
 
ResolvedCache mCache
 
- Protected Attributes inherited from Asset
uint32_t mVersion = 0
 
TypeId mType = INVALID_TYPE_ID
 
uint64_t mUuid = 0
 
bool mEmbedded = false
 
bool mLoaded = false
 
bool mEnableRefCount = true
 
bool mEngineAsset = false
 
bool mTransient = false
 
std::string mName = "Asset"
 
int32_t mRefCount = 0
 

Constructor & Destructor Documentation

◆ BoneMaskAsset()

BoneMaskAsset::BoneMaskAsset ( )

◆ ~BoneMaskAsset()

BoneMaskAsset::~BoneMaskAsset ( )

Member Function Documentation

◆ AddExcludeRoot()

void BoneMaskAsset::AddExcludeRoot ( const std::string &  boneName)

◆ AddIncludeRoot()

void BoneMaskAsset::AddIncludeRoot ( const std::string &  boneName)

◆ Create()

void BoneMaskAsset::Create ( )
overridevirtual

Reimplemented from Asset.

◆ DECLARE_ASSET()

BoneMaskAsset::DECLARE_ASSET ( BoneMaskAsset  ,
Asset   
)

◆ Destroy()

void BoneMaskAsset::Destroy ( )
overridevirtual

Reimplemented from Asset.

◆ GatherProperties()

void BoneMaskAsset::GatherProperties ( std::vector< Property > &  outProps)
overridevirtual

Reimplemented from Asset.

◆ GetExcludeRoots()

const std::vector< std::string > & BoneMaskAsset::GetExcludeRoots ( ) const
inline

◆ GetIncludeRoots()

const std::vector< std::string > & BoneMaskAsset::GetIncludeRoots ( ) const
inline

◆ GetSelfOnly()

bool BoneMaskAsset::GetSelfOnly ( ) const
inline

◆ GetTargetMesh()

SkeletalMesh * BoneMaskAsset::GetTargetMesh ( ) const

◆ GetTypeColor()

glm::vec4 BoneMaskAsset::GetTypeColor ( )
overridevirtual

Reimplemented from Asset.

◆ GetTypeName()

const char * BoneMaskAsset::GetTypeName ( )
overridevirtual

Reimplemented from Asset.

◆ HandlePropChange()

bool BoneMaskAsset::HandlePropChange ( Datum datum,
uint32_t  index,
const void *  newValue 
)
static

◆ InvalidateCache()

void BoneMaskAsset::InvalidateCache ( )

◆ LoadStream()

void BoneMaskAsset::LoadStream ( Stream stream,
Platform  platform 
)
overridevirtual

Reimplemented from Asset.

◆ RemoveExcludeRoot()

void BoneMaskAsset::RemoveExcludeRoot ( const std::string &  boneName)

◆ RemoveIncludeRoot()

void BoneMaskAsset::RemoveIncludeRoot ( const std::string &  boneName)

◆ Resolve()

const std::vector< uint8_t > & BoneMaskAsset::Resolve ( const SkeletalMesh mesh)

◆ SaveStream()

void BoneMaskAsset::SaveStream ( Stream stream,
Platform  platform 
)
overridevirtual

Reimplemented from Asset.

◆ SetExcludeRoots()

void BoneMaskAsset::SetExcludeRoots ( const std::vector< std::string > &  roots)

◆ SetIncludeRoots()

void BoneMaskAsset::SetIncludeRoots ( const std::vector< std::string > &  roots)

◆ SetSelfOnly()

void BoneMaskAsset::SetSelfOnly ( bool  selfOnly)

◆ SetTargetMesh()

void BoneMaskAsset::SetTargetMesh ( SkeletalMesh mesh)

Member Data Documentation

◆ mCache

ResolvedCache BoneMaskAsset::mCache
protected

◆ mExcludeRoots

std::vector<std::string> BoneMaskAsset::mExcludeRoots
protected

◆ mIncludeRoots

std::vector<std::string> BoneMaskAsset::mIncludeRoots
protected

◆ mSelfOnly

bool BoneMaskAsset::mSelfOnly = false
protected

◆ mTargetMesh

SkeletalMeshRef BoneMaskAsset::mTargetMesh
protected

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