AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 所有成员列表
AnyCAD::API::RenderableInstance类 参考

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>

类 AnyCAD::API::RenderableInstance 继承关系图:
AnyCAD::API::RenderableElement AnyCAD::API::PropertiesElement AnyCAD::API::Element AnyCAD::API::Object

Public 成员函数

void SetTypeId (const ElementId &_TypeId)
 
ElementId GetTypeId () const
 
void SetOrientation (const Vector3 &_Orientation)
 
Vector3 GetOrientation () const
 
void SetPosition (const Vector3 &_Position)
 
Vector3 GetPosition () const
 
void SetScale (const Vector3 &_Scale)
 
Vector3 GetScale () const
 
void SetRotation (const Vector3 &_Rotation)
 
Vector3 GetRotation () const
 
void SetLocalMatrix (const Matrix4 &_LocalMatrix)
 
Matrix4 GetLocalMatrix () const
 
void SetNameVisible (bool _NameVisible)
 
bool GetNameVisible () const
 
void SetMoveable (bool _Moveable)
 
bool GetMoveable () const
 
void SetPickable (bool _Pickable)
 
bool GetPickable () const
 
void SetNameColor (const ColorValue &_NameColor)
 
ColorValue GetNameColor () const
 
void SetSize (const Vector3 &var)
 
Vector3 GetSize () const
 
void SetTransform (const Vector3 &axisOrigion, const Vector3 &axisDir, Real angle)
 
Matrix4 GetTransform () const
 
AABox GetBBox () const
 
AABox GetTypeBBox () const
 
ElementId GetGroupTypeId () const
 
GroupSceneNode GetInstanceNode () const
 
virtual bool EnableAnimationByName (const String &strName)
 
Animator GetAnimator () const
 
TransformAnimator GetTransformAnimator () const
 
void SetTransformAnimator (const TransformAnimator &val)
 
virtual SceneNode GetSceneNode () const
 
- Public 成员函数 继承自 AnyCAD::API::RenderableElement
void SetVisible (bool _Visible)
 
bool GetVisible () const
 
void SetStandalone (bool _Standalone)
 
bool GetStandalone () const
 
void SetStyleId (const ElementId &_StyleId)
 
ElementId GetStyleId () const
 
bool IsVisible () const
 
- Public 成员函数 继承自 AnyCAD::API::PropertiesElement
void AddParameter (ParameterId paramId, const ParameterValue &pParameter)
 
ParameterValue RemoveParameter (ParameterId paramId)
 
void AddParameterUI (ParameterId paramId, const ParameterUI &pParameterUI)
 
ParameterUI GetParameterUI (ParameterId paramId) const
 
ParameterUI RemoveParameterUI (ParameterId paramId)
 
ParameterUISet GetParameterUISet () const
 
virtual ParameterValue GetParameterValue (ParameterId paramId) const
 
virtual bool SetParameterValue (ParameterId paramId, const ParameterValue &pValue)
 
- Public 成员函数 继承自 AnyCAD::API::Element
ElementId GetId () const
 
String GetName () const
 
void SetName (const String &strName)
 
String GetCategory () const
 
void SetCategory (const String &category)
 
ParameterUISet GetSystemParameterUISet () const
 
Document GetOwnerDocument () const
 
- Public 成员函数 继承自 AnyCAD::API::Object
String GetObjectClassId () const
 
StringList ListParentClassIds () const
 

详细描述

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 bool AnyCAD::API::RenderableInstance::EnableAnimationByName ( const String strName)
virtual

Enable the animation by animation name.

返回
false if failed.
Animator AnyCAD::API::RenderableInstance::GetAnimator ( ) const

Get Animator.

返回
the Animator.
AABox AnyCAD::API::RenderableInstance::GetBBox ( ) const

Get the local bounding box of the instance.

返回
the local bounding box.
ElementId AnyCAD::API::RenderableInstance::GetGroupTypeId ( ) const

Get the group type id if having.

返回
the type id.
GroupSceneNode AnyCAD::API::RenderableInstance::GetInstanceNode ( ) const

Get the render able node.

返回
GroupSceneNode.
Matrix4 AnyCAD::API::RenderableInstance::GetLocalMatrix ( ) const

Get LocalMatrix.

返回
the LocalMatrix.
bool AnyCAD::API::RenderableInstance::GetMoveable ( ) const

Get Moveable.

返回
the Moveable.
ColorValue AnyCAD::API::RenderableInstance::GetNameColor ( ) const

Get NameColor.

返回
the NameColor.
bool AnyCAD::API::RenderableInstance::GetNameVisible ( ) const

Get NameVisible.

返回
the NameVisible.
Vector3 AnyCAD::API::RenderableInstance::GetOrientation ( ) const

Get Orientation.

返回
the Orientation.
bool AnyCAD::API::RenderableInstance::GetPickable ( ) const

Get Pickable.

返回
the Pickable.
Vector3 AnyCAD::API::RenderableInstance::GetPosition ( ) const

Get Position.

返回
the Position.
Vector3 AnyCAD::API::RenderableInstance::GetRotation ( ) const

Get Rotation.

返回
the Rotation.
Vector3 AnyCAD::API::RenderableInstance::GetScale ( ) const

Get Scale.

返回
the Scale.
virtual SceneNode AnyCAD::API::RenderableInstance::GetSceneNode ( ) const
virtual

Get the visual node.

返回
the SceneNode.

重载 AnyCAD::API::RenderableElement .

Vector3 AnyCAD::API::RenderableInstance::GetSize ( ) const

Get the instance scale.

返回
the scale.
Matrix4 AnyCAD::API::RenderableInstance::GetTransform ( ) const

Get the transform the instance.

返回
the transform.
TransformAnimator AnyCAD::API::RenderableInstance::GetTransformAnimator ( ) const
AABox AnyCAD::API::RenderableInstance::GetTypeBBox ( ) const

Get the local bounding box of the type.

返回
the bounding box.
ElementId AnyCAD::API::RenderableInstance::GetTypeId ( ) const

Get TypeId.

返回
the TypeId.
void AnyCAD::API::RenderableInstance::SetLocalMatrix ( const Matrix4 _LocalMatrix)

Set the LocalMatrix.

参数
_LocalMatrixthe LocalMatrix.
void AnyCAD::API::RenderableInstance::SetMoveable ( bool  _Moveable)

Set the Moveable.

参数
_Moveablethe Moveable.
void AnyCAD::API::RenderableInstance::SetNameColor ( const ColorValue _NameColor)

Set the NameColor.

参数
_NameColorthe NameColor.
void AnyCAD::API::RenderableInstance::SetNameVisible ( bool  _NameVisible)

Set the NameVisible.

参数
_NameVisiblethe NameVisible.
void AnyCAD::API::RenderableInstance::SetOrientation ( const Vector3 _Orientation)

Set the Orientation.

参数
_Orientationthe Orientation.
void AnyCAD::API::RenderableInstance::SetPickable ( bool  _Pickable)

Set the Pickable.

参数
_Pickablethe Pickable.
void AnyCAD::API::RenderableInstance::SetPosition ( const Vector3 _Position)

Set the Position.

参数
_Positionthe Position.
void AnyCAD::API::RenderableInstance::SetRotation ( const Vector3 _Rotation)

Set the Rotation.

参数
_Rotationthe Rotation.
void AnyCAD::API::RenderableInstance::SetScale ( const Vector3 _Scale)

Set the Scale.

参数
_Scalethe Scale.
void AnyCAD::API::RenderableInstance::SetSize ( const Vector3 var)

Set the instance scale. Parameter Id: Scale

参数
varthe scale.
void AnyCAD::API::RenderableInstance::SetTransform ( const Vector3 axisOrigion,
const Vector3 axisDir,
Real  angle 
)

Rotating along the axis from current position.

参数
axisOrigionthe origin of the axis.
axisDirthe direction of the axis
anglethe rotation angle by degree.
void AnyCAD::API::RenderableInstance::SetTransformAnimator ( const TransformAnimator val)

Set TransformAnimator.

参数
valthe TransformAnimator.
void AnyCAD::API::RenderableInstance::SetTypeId ( const ElementId _TypeId)

Set the TypeId.

参数
_TypeIdthe TypeId.

该类的文档由以下文件生成: