igor::iMeshReferenceComponent Class Reference

#include <iMeshReferenceComponent.h>

Inherits igor::iEntityComponent.

Public Member Functions

 iMeshReferenceComponent ()
 
 iMeshReferenceComponent (iModelPtr model, const std::vector< iaString > &meshPaths=std::vector< iaString >())
 
iModelPtr getModel () const
 
void setModel (iModelPtr model)
 
void setMeshPaths (const std::vector< iaString > &meshPaths)
 
const std::vector< iaString > & getMeshPaths () const
 
std::vector< iaStringgetInfo () const override
 
- Public Member Functions inherited from igor::iEntityComponent
 iEntityComponent ()
 
virtual ~iEntityComponent ()=default
 
const iEntityComponentIDgetID () const
 
iEntityComponentState getState () const
 
virtual std::vector< iaStringgetInfo () const
 
IGOR_INLINE void setDirty ()
 
uint16 getVersion () const
 

Static Public Member Functions

static iEntityComponentcreateInstance ()
 
static const iaStringgetTypeName ()
 

Friends

class iPrefabIO
 

Additional Inherited Members

- Protected Member Functions inherited from igor::iEntityComponent
virtual bool onLoad (iEntityPtr entity, bool &asyncLoad)
 
virtual void onActivate (iEntityPtr entity)
 
virtual void onDeactivate (iEntityPtr entity)
 
virtual void onUnLoad (iEntityPtr entity)
 
virtual iEntityComponentPtr getCopy ()=0
 
iEntityPtr getEntity () const
 

Detailed Description

mesh reference component

Constructor & Destructor Documentation

◆ iMeshReferenceComponent() [1/2]

igor::iMeshReferenceComponent::iMeshReferenceComponent ( )

default ctor

◆ iMeshReferenceComponent() [2/2]

igor::iMeshReferenceComponent::iMeshReferenceComponent ( iModelPtr  model,
const std::vector< iaString > &  meshPaths = std::vector<iaString>() 
)

ctor

Parameters
modelthe model to refer to
meshPathsthe paths to the meshes inside the model to refer to (ie "foo:bar:myMesh")

Member Function Documentation

◆ createInstance()

iEntityComponent * igor::iMeshReferenceComponent::createInstance ( )
static

creates instance of this component type

◆ getInfo()

std::vector< iaString > igor::iMeshReferenceComponent::getInfo ( ) const
overridevirtual
Returns
a set of info strings

Reimplemented from igor::iEntityComponent.

◆ getMeshPaths()

const std::vector< iaString > & igor::iMeshReferenceComponent::getMeshPaths ( ) const
Returns
mesh path

◆ getModel()

iModelPtr igor::iMeshReferenceComponent::getModel ( ) const
Returns
model

◆ getTypeName()

const iaString & igor::iMeshReferenceComponent::getTypeName ( )
static
Returns
type name of component

◆ setMeshPaths()

void igor::iMeshReferenceComponent::setMeshPaths ( const std::vector< iaString > &  meshPaths)

sets paths to meshes in model

Parameters
meshPathsthe given mesh paths

◆ setModel()

void igor::iMeshReferenceComponent::setModel ( iModelPtr  model)

set model

Parameters
modelthe model to set

Friends And Related Function Documentation

◆ iPrefabIO

friend class iPrefabIO
friend

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