Logo
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
SharpKmyGfx::ModelInstance Class Reference

#include <ModelInstance.h>

Public Member Functions

 ModelInstance (ModelData^ data, array< Material^> ^list, System::Guid stampGUID)
 
 ModelInstance (kmyGfx::ModelInstance *ptr)
 
 ~ModelInstance ()
 
ModelData getModel ()
 
kmyGfx::ModelInstance * getNativeModelInstance ()
 
void setVisibility (bool flg)
 
void setDisplayID (unsigned int id)
 
void setPickupID (unsigned short id)
 
void setOverrideColor (float r, float g, float b, float a)
 
void setOpacityMultiplier (float p)
 
void setDrawHidden (bool flg)
 
void buildingLightOn (bool flg)
 
void setIgnoreMotion (int channel, System::Collections::Generic::List< System::String^> ^list)
 
void addMotion (System::String ^name, ModelData ^motion, bool loop, bool useCombine)
 
void addMotion (System::String ^name, ModelData ^motion, bool loop, bool useCombine, System::String ^stackName)
 
void addMotion (System::String ^name, ModelData ^motion, float start, float end, bool loop, bool useCombine, System::String ^stackName)
 
void clearMotion ()
 
void removeAnimatedTransform (bool clearAnimation)
 
void playMotion (System::String^ name, float blendTime, bool force)
 
void playMotion (System::String^ name, float blendTime)
 
void setMorphBlend (System::String ^name, float blend)
 
float getMorphBlend (System::String^ name)
 
bool containsMotion (System::String ^name)
 
int getMotionLoopCount ()
 
System::Collections::Generic::List< System::String^> getMotionNameList ()
 
System::Collections::Generic::List< System::String^> getMorphNameList ()
 
System::Guid getStampGUID ()
 
SharpKmyMath::Matrix4 getNodeMatrix (System::String ^name)
 
void setNodeMatrix (System::String ^name, SharpKmyMath::Matrix4 matrix)
 
NodeInstance getRootNode ()
 
int getMaterialCount ()
 
MaterialInstance getMaterialInstance (unsigned int idx)
 
void setMaterial (int index, Material^ mtl)
 
void getBound (SharpKmyMath::Vector3% min, SharpKmyMath::Vector3% max)
 
void stopPickup (bool flg)
 
SharpKmyPhysics::PhysicsObject getPhysicsObject ()
 
void clearNodePosturePhysicsOverrideFlag ()
 

Static Public Member Functions

static System::Collections::Generic::List< ModelInstance^> getModelInstanceListByStampGUID (System::Guid guid)
 

Public Attributes

kmyGfx::ModelInstance * obj2 = nullptr
 
ModelData mdl = nullptr
 
float minX = 0
 
float minY = 0
 
float minZ = 0
 
float maxX = 0
 
float maxY = 0
 
float maxZ = 0
 

Constructor & Destructor Documentation

◆ ModelInstance() [1/2]

SharpKmyGfx::ModelInstance::ModelInstance ( ModelData data,
array< Material^> ^  list,
System::Guid  stampGUID 
)

◆ ModelInstance() [2/2]

SharpKmyGfx::ModelInstance::ModelInstance ( kmyGfx::ModelInstance *  ptr)

◆ ~ModelInstance()

SharpKmyGfx::ModelInstance::~ModelInstance ( )

Member Function Documentation

◆ addMotion() [1/3]

void SharpKmyGfx::ModelInstance::addMotion ( System::String ^  name,
ModelData motion,
bool  loop,
bool  useCombine 
)

◆ addMotion() [2/3]

void SharpKmyGfx::ModelInstance::addMotion ( System::String ^  name,
ModelData motion,
bool  loop,
bool  useCombine,
System::String ^  stackName 
)

◆ addMotion() [3/3]

void SharpKmyGfx::ModelInstance::addMotion ( System::String ^  name,
ModelData motion,
float  start,
float  end,
bool  loop,
bool  useCombine,
System::String ^  stackName 
)

◆ buildingLightOn()

void SharpKmyGfx::ModelInstance::buildingLightOn ( bool  flg)

◆ clearMotion()

void SharpKmyGfx::ModelInstance::clearMotion ( )

◆ clearNodePosturePhysicsOverrideFlag()

void SharpKmyGfx::ModelInstance::clearNodePosturePhysicsOverrideFlag ( )

◆ containsMotion()

bool SharpKmyGfx::ModelInstance::containsMotion ( System::String ^  name)

◆ getBound()

void SharpKmyGfx::ModelInstance::getBound ( SharpKmyMath::Vector3 min,
SharpKmyMath::Vector3 max 
)

◆ getMaterialCount()

int SharpKmyGfx::ModelInstance::getMaterialCount ( )

◆ getMaterialInstance()

MaterialInstance SharpKmyGfx::ModelInstance::getMaterialInstance ( unsigned int  idx)

◆ getModel()

ModelData SharpKmyGfx::ModelInstance::getModel ( )

◆ getModelInstanceListByStampGUID()

System::Collections::Generic::List< ModelInstance^> SharpKmyGfx::ModelInstance::getModelInstanceListByStampGUID ( System::Guid  guid)
static

◆ getMorphBlend()

float SharpKmyGfx::ModelInstance::getMorphBlend ( System::String^  name)

◆ getMorphNameList()

System::Collections::Generic::List< System::String^> SharpKmyGfx::ModelInstance::getMorphNameList ( )

◆ getMotionLoopCount()

int SharpKmyGfx::ModelInstance::getMotionLoopCount ( )

◆ getMotionNameList()

System::Collections::Generic::List< System::String^> SharpKmyGfx::ModelInstance::getMotionNameList ( )

◆ getNativeModelInstance()

kmyGfx::ModelInstance * SharpKmyGfx::ModelInstance::getNativeModelInstance ( )

◆ getNodeMatrix()

SharpKmyMath::Matrix4 SharpKmyGfx::ModelInstance::getNodeMatrix ( System::String ^  name)

◆ getPhysicsObject()

SharpKmyPhysics::PhysicsObject SharpKmyGfx::ModelInstance::getPhysicsObject ( )

◆ getRootNode()

NodeInstance SharpKmyGfx::ModelInstance::getRootNode ( )

◆ getStampGUID()

System::Guid SharpKmyGfx::ModelInstance::getStampGUID ( )

◆ playMotion() [1/2]

void SharpKmyGfx::ModelInstance::playMotion ( System::String^  name,
float  blendTime 
)

◆ playMotion() [2/2]

void SharpKmyGfx::ModelInstance::playMotion ( System::String^  name,
float  blendTime,
bool  force 
)

◆ removeAnimatedTransform()

void SharpKmyGfx::ModelInstance::removeAnimatedTransform ( bool  clearAnimation)

◆ setDisplayID()

void SharpKmyGfx::ModelInstance::setDisplayID ( unsigned int  id)

◆ setDrawHidden()

void SharpKmyGfx::ModelInstance::setDrawHidden ( bool  flg)

◆ setIgnoreMotion()

void SharpKmyGfx::ModelInstance::setIgnoreMotion ( int  channel,
System::Collections::Generic::List< System::String^> ^  list 
)

◆ setMaterial()

void SharpKmyGfx::ModelInstance::setMaterial ( int  index,
Material mtl 
)

◆ setMorphBlend()

void SharpKmyGfx::ModelInstance::setMorphBlend ( System::String ^  name,
float  blend 
)

◆ setNodeMatrix()

void SharpKmyGfx::ModelInstance::setNodeMatrix ( System::String ^  name,
SharpKmyMath::Matrix4  matrix 
)

◆ setOpacityMultiplier()

void SharpKmyGfx::ModelInstance::setOpacityMultiplier ( float  p)

◆ setOverrideColor()

void SharpKmyGfx::ModelInstance::setOverrideColor ( float  r,
float  g,
float  b,
float  a 
)

◆ setPickupID()

void SharpKmyGfx::ModelInstance::setPickupID ( unsigned short  id)

◆ setVisibility()

void SharpKmyGfx::ModelInstance::setVisibility ( bool  flg)

◆ stopPickup()

void SharpKmyGfx::ModelInstance::stopPickup ( bool  flg)

Member Data Documentation

◆ maxX

float SharpKmyGfx::ModelInstance::maxX = 0

◆ maxY

float SharpKmyGfx::ModelInstance::maxY = 0

◆ maxZ

float SharpKmyGfx::ModelInstance::maxZ = 0

◆ mdl

ModelData SharpKmyGfx::ModelInstance::mdl = nullptr

◆ minX

float SharpKmyGfx::ModelInstance::minX = 0

◆ minY

float SharpKmyGfx::ModelInstance::minY = 0

◆ minZ

float SharpKmyGfx::ModelInstance::minZ = 0

◆ obj2

kmyGfx::ModelInstance* SharpKmyGfx::ModelInstance::obj2 = nullptr