AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
AuView3dAPI.h
浏览该文件的文档.
1 #pragma once
2 
3 namespace AnyCAD {namespace API
4 {
5  class TopoShape;
6  class SceneNode;
7  class EntitySceneNode;
8 }
9 }
10 
17 {
18 public:
22  const AnyCAD::API::View3d& GetView() const {return m_View3d; }
23  AnyCAD::API::View3d& GetView() { return m_View3d; }
24 
31  void SetBackgoundColor(const AnyCAD::API::ColorValue& topClr, const AnyCAD::API::ColorValue& midClr, const AnyCAD::API::ColorValue& bottomClr);
32 
41  AnyCAD::API::EntitySceneNode ShowGeometry(const AnyCAD::API::TopoShape& geometry, const AnyCAD::API::ElementId& id, float accurate = 0.2);
42 
47  void ShowSceneNode(const AnyCAD::API::SceneNode& node);
48 
54  AnyCAD::API::SceneNode FindSceneNode(const AnyCAD::API::ElementId& id) const;
55 
60  void RemoveSenceNode(const AnyCAD::API::SceneNode& node);
61 
62  /*
63  * Request to draw the model.
64  */
65  void RequestDraw(int hint = 1);
66 
73  bool ExecuteCommand(const AnyCAD::API::String& commandId, const AnyCAD::API::String& params = "");
74 
75 protected:
76  AuView3dAPI();
77  virtual ~AuView3dAPI();
78 
79 protected:
82  const UINT_PTR m_RenderTimerId;
84 };
85 
86 
std::string String
Definition: APIString.h:10
AnyCAD::API::View3d & GetView()
Definition: AuView3dAPI.h:23
The view 3d control API for MFC.
Definition: AuView3dAPI.h:16
bool m_bHandleMouseMessage
Definition: AuView3dAPI.h:81
The id.
Definition: APIElementId.h:16
EntitySceneNode.
Definition: APIEntitySceneNode.h:20
场景的节点的基类。
Definition: APISceneNode.h:22
#define ANYPLATFORMMFC_API
Definition: AnyPlatformMFCAPI.h:7
拓扑对象
Definition: APITopoShape.h:18
三维视图
Definition: APIView3d.h:24
UINT m_RenderTick
Definition: AuView3dAPI.h:83
const UINT_PTR m_RenderTimerId
Definition: AuView3dAPI.h:82
Color Value.
Definition: APIMath.h:183
const AnyCAD::API::View3d & GetView() const
Definition: AuView3dAPI.h:22
AnyCAD::API::View3d m_View3d
Definition: AuView3dAPI.h:80