AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
APIRenderableInstance.h
浏览该文件的文档.
1 //Public API. Powered by AnyCAD.
2 
3 #ifndef _APIRenderableInstance_H_
4 #define _APIRenderableInstance_H_
5 
6 #include "APIObjectDef.h"
7 
8 #include "APIRenderableElement.h"
9 
10 namespace AnyCAD{ namespace API
11 {
12  class TransformAnimator;
13  class GroupSceneNode;
14  class Animator;
15  class TextNode;
16  class RenderableType;
17  class SceneNode;
26  : public RenderableElement
27  {
29  public:
34  void SetTypeId(const ElementId& _TypeId);
39  ElementId GetTypeId() const;
40 
45  void SetOrientation(const Vector3& _Orientation);
50  Vector3 GetOrientation() const;
51 
56  void SetPosition(const Vector3& _Position);
61  Vector3 GetPosition() const;
62 
67  void SetScale(const Vector3& _Scale);
72  Vector3 GetScale() const;
73 
78  void SetRotation(const Vector3& _Rotation);
83  Vector3 GetRotation() const;
84 
89  void SetLocalMatrix(const Matrix4& _LocalMatrix);
94  Matrix4 GetLocalMatrix() const;
95 
100  void SetNameVisible(bool _NameVisible);
105  bool GetNameVisible() const;
106 
111  void SetMoveable(bool _Moveable);
116  bool GetMoveable() const;
117 
122  void SetPickable(bool _Pickable);
127  bool GetPickable() const;
128 
133  void SetNameColor(const ColorValue& _NameColor);
138  ColorValue GetNameColor() const;
139 
144  void SetSize (const Vector3& var) ;
149  Vector3 GetSize () const;
156  void SetTransform (const Vector3& axisOrigion, const Vector3& axisDir, Real angle) ;
161  Matrix4 GetTransform () const;
166  AABox GetBBox () const;
171  AABox GetTypeBBox () const;
176  ElementId GetGroupTypeId () const;
181  GroupSceneNode GetInstanceNode () const;
186  virtual bool EnableAnimationByName (const String& strName) ;
191  Animator GetAnimator () const;
196  TransformAnimator GetTransformAnimator () const;
201  void SetTransformAnimator (const TransformAnimator& val) ;
206  virtual SceneNode GetSceneNode () const;
207  };//RenderableInstance;
208 }}//API
209 
210 #endif //_APIRenderableInstance_H_
#define AnyPlatformAPI_API
Definition: AnyPlatformAPI.h:8
AABox.
Definition: APIMath.h:281
Matrix4.
Definition: APIMath.h:248
The element that can hold geometry.
Definition: APIRenderableElement.h:22
std::string String
Definition: APIString.h:10
The base class for the TypeElement instance. The default direction is UNIT_Y; the rotation use Eular ...
Definition: APIRenderableInstance.h:25
动画操作器
Definition: APIAnimator.h:17
The id.
Definition: APIElementId.h:16
场景的节点的基类。
Definition: APISceneNode.h:22
Point or vector.
Definition: APIMath.h:37
#define DECLARE_APISUPER(className, super)
Definition: APIObjectDef.h:33
节点组。
Definition: APIGroupSceneNode.h:22
Color Value.
Definition: APIMath.h:183
The transform animator.
Definition: APITransformAnimator.h:20
double Real
Definition: APIMath.h:7