28 #ifndef __InstancedEntity_H__
29 #define __InstancedEntity_H__
130 size_t getTransforms(
Matrix4 *xform )
const;
132 size_t getTransforms3x4(
float *xform )
const;
135 bool findVisible(
Camera *camera )
const;
138 void createSkeletonInstance();
139 void destroySkeletonInstance();
143 void stopSharingTransformAsSlave(
bool notifyMaster );
146 void unlinkTransform(
bool notifyMaster=
true );
152 inline void markTransformDirty();
188 void stopSharingTransform();
192 const String& getMovableType(
void)
const;
195 Real getBoundingRadius(
void)
const;
199 Real getSquaredViewDepth(
const Camera* cam )
const;
202 void _notifyMoved(
void);
203 void _notifyAttached(
Node* parent,
bool isTagPoint =
false );
224 virtual bool _updateAnimation(
void);
232 void setPosition(
const Vector3& position,
bool doUpdate =
true);
237 void setOrientation(
const Quaternion& orientation,
bool doUpdate =
true);
242 void setScale(
const Vector3& scale,
bool doUpdate =
true);
245 Real getMaxScaleCoef()
const;
248 void updateTransforms();
253 void setInUse(
bool used);
257 assert((!mNeedTransformUpdate || !mUseLocalTransform) &&
"Transform data should be updated at this point");
258 return mUseLocalTransform ? mFullLocalTransform :
264 assert((!mNeedTransformUpdate || !mUseLocalTransform) &&
"Transform data should be updated at this point");
265 return mUseLocalTransform ? mDerivedLocalPosition :
266 mParentNode ? mParentNode->_getDerivedPosition() :
Vector3::ZERO;
288 void setCustomParam(
unsigned char idx,
const Vector4 &newParam );
289 const Vector4& getCustomParam(
unsigned char idx );