The base class for the TypeElement instance. The default direction is UNIT_Y; the rotation use Eular representation: Yaw -> z Pitch -> x and Roll-> y. 更多...
#include <APIRenderableInstance.h>
The base class for the TypeElement instance. The default direction is UNIT_Y; the rotation use Eular representation: Yaw -> z Pitch -> x and Roll-> y.
TODO:
|
virtual |
Enable the animation by animation name.
AABox AnyCAD::API::RenderableInstance::GetBBox | ( | ) | const |
Get the local bounding box of the instance.
ElementId AnyCAD::API::RenderableInstance::GetGroupTypeId | ( | ) | const |
Get the group type id if having.
GroupSceneNode AnyCAD::API::RenderableInstance::GetInstanceNode | ( | ) | const |
Get the render able node.
Matrix4 AnyCAD::API::RenderableInstance::GetLocalMatrix | ( | ) | const |
Get LocalMatrix.
bool AnyCAD::API::RenderableInstance::GetMoveable | ( | ) | const |
Get Moveable.
ColorValue AnyCAD::API::RenderableInstance::GetNameColor | ( | ) | const |
Get NameColor.
bool AnyCAD::API::RenderableInstance::GetNameVisible | ( | ) | const |
Get NameVisible.
Vector3 AnyCAD::API::RenderableInstance::GetOrientation | ( | ) | const |
Get Orientation.
bool AnyCAD::API::RenderableInstance::GetPickable | ( | ) | const |
Get Pickable.
Vector3 AnyCAD::API::RenderableInstance::GetPosition | ( | ) | const |
Get Position.
Vector3 AnyCAD::API::RenderableInstance::GetRotation | ( | ) | const |
Get Rotation.
Vector3 AnyCAD::API::RenderableInstance::GetScale | ( | ) | const |
Get Scale.
|
virtual |
Vector3 AnyCAD::API::RenderableInstance::GetSize | ( | ) | const |
Get the instance scale.
Matrix4 AnyCAD::API::RenderableInstance::GetTransform | ( | ) | const |
Get the transform the instance.
TransformAnimator AnyCAD::API::RenderableInstance::GetTransformAnimator | ( | ) | const |
Get TransformAnimator.
AABox AnyCAD::API::RenderableInstance::GetTypeBBox | ( | ) | const |
Get the local bounding box of the type.
ElementId AnyCAD::API::RenderableInstance::GetTypeId | ( | ) | const |
Get TypeId.
void AnyCAD::API::RenderableInstance::SetLocalMatrix | ( | const Matrix4 & | _LocalMatrix | ) |
Set the LocalMatrix.
_LocalMatrix | the LocalMatrix. |
void AnyCAD::API::RenderableInstance::SetMoveable | ( | bool | _Moveable | ) |
Set the Moveable.
_Moveable | the Moveable. |
void AnyCAD::API::RenderableInstance::SetNameColor | ( | const ColorValue & | _NameColor | ) |
Set the NameColor.
_NameColor | the NameColor. |
void AnyCAD::API::RenderableInstance::SetNameVisible | ( | bool | _NameVisible | ) |
Set the NameVisible.
_NameVisible | the NameVisible. |
void AnyCAD::API::RenderableInstance::SetOrientation | ( | const Vector3 & | _Orientation | ) |
Set the Orientation.
_Orientation | the Orientation. |
void AnyCAD::API::RenderableInstance::SetPickable | ( | bool | _Pickable | ) |
Set the Pickable.
_Pickable | the Pickable. |
void AnyCAD::API::RenderableInstance::SetPosition | ( | const Vector3 & | _Position | ) |
Set the Position.
_Position | the Position. |
void AnyCAD::API::RenderableInstance::SetRotation | ( | const Vector3 & | _Rotation | ) |
Set the Rotation.
_Rotation | the Rotation. |
void AnyCAD::API::RenderableInstance::SetScale | ( | const Vector3 & | _Scale | ) |
Set the Scale.
_Scale | the Scale. |
void AnyCAD::API::RenderableInstance::SetSize | ( | const Vector3 & | var | ) |
Set the instance scale. Parameter Id: Scale
var | the scale. |
void AnyCAD::API::RenderableInstance::SetTransform | ( | const Vector3 & | axisOrigion, |
const Vector3 & | axisDir, | ||
Real | angle | ||
) |
Rotating along the axis from current position.
axisOrigion | the origin of the axis. |
axisDir | the direction of the axis |
angle | the rotation angle by degree. |
void AnyCAD::API::RenderableInstance::SetTransformAnimator | ( | const TransformAnimator & | val | ) |
Set TransformAnimator.
val | the TransformAnimator. |
void AnyCAD::API::RenderableInstance::SetTypeId | ( | const ElementId & | _TypeId | ) |
Set the TypeId.
_TypeId | the TypeId. |