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