The view 3d control API for MFC. 更多...
#include <AuView3dAPI.h>
Public 成员函数 | |
| const AnyCAD::API::View3d & | GetView () const |
| AnyCAD::API::View3d & | GetView () |
| void | SetBackgoundColor (const AnyCAD::API::ColorValue &topClr, const AnyCAD::API::ColorValue &midClr, const AnyCAD::API::ColorValue &bottomClr) |
| AnyCAD::API::EntitySceneNode | ShowGeometry (const AnyCAD::API::TopoShape &geometry, const AnyCAD::API::ElementId &id, float accurate=0.2) |
| void | ShowSceneNode (const AnyCAD::API::SceneNode &node) |
| AnyCAD::API::SceneNode | FindSceneNode (const AnyCAD::API::ElementId &id) const |
| void | RemoveSenceNode (const AnyCAD::API::SceneNode &node) |
| void | RequestDraw (int hint=1) |
| bool | ExecuteCommand (const AnyCAD::API::String &commandId, const AnyCAD::API::String ¶ms="") |
Protected 成员函数 | |
| AuView3dAPI () | |
| virtual | ~AuView3dAPI () |
Protected 属性 | |
| AnyCAD::API::View3d | m_View3d |
| bool | m_bHandleMouseMessage |
| const UINT_PTR | m_RenderTimerId |
| UINT | m_RenderTick |
The view 3d control API for MFC.
|
protected |
|
protectedvirtual |
| bool AuView3dAPI::ExecuteCommand | ( | const AnyCAD::API::String & | commandId, |
| const AnyCAD::API::String & | params = "" |
||
| ) |
Execute the command.
| commandId | the command id. |
| params | the parameters. |
| AnyCAD::API::SceneNode AuView3dAPI::FindSceneNode | ( | const AnyCAD::API::ElementId & | id | ) | const |
Find the scene node by id.
| id | the id of the geometry or scene node. |
|
inline |
Get the View3d object.
|
inline |
| void AuView3dAPI::RemoveSenceNode | ( | const AnyCAD::API::SceneNode & | node | ) |
Remove the node from the scene.
| node | the scene node to be removed. |
| void AuView3dAPI::RequestDraw | ( | int | hint = 1 | ) |
| void AuView3dAPI::SetBackgoundColor | ( | const AnyCAD::API::ColorValue & | topClr, |
| const AnyCAD::API::ColorValue & | midClr, | ||
| const AnyCAD::API::ColorValue & | bottomClr | ||
| ) |
Set the background.
| topClr | the top color |
| midClr | the middle color |
| bottomClr | the bottom color |
| AnyCAD::API::EntitySceneNode AuView3dAPI::ShowGeometry | ( | const AnyCAD::API::TopoShape & | geometry, |
| const AnyCAD::API::ElementId & | id, | ||
| float | accurate = 0.2 |
||
| ) |
Binding the geometry to SceneNode and show it in scene.
| geometry | the TopoShape object. |
| id | the id of the shape. You can use this id to find the SceneNode. |
| accurate | the tolerance for visualize the geometry. |
| void AuView3dAPI::ShowSceneNode | ( | const AnyCAD::API::SceneNode & | node | ) |
Add the scene node to the scene.
| node | the node to show. |
|
protected |
|
protected |
|
protected |
|
protected |
1.8.5