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

The view 3d control API for MFC. 更多...

#include <AuView3dAPI.h>

类 AuView3dAPI 继承关系图:
AuView3d AuWindow3d

Public 成员函数

const AnyCAD::API::View3dGetView () const
 
AnyCAD::API::View3dGetView ()
 
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 &params="")
 

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.

构造及析构函数说明

AuView3dAPI::AuView3dAPI ( )
protected
virtual AuView3dAPI::~AuView3dAPI ( )
protectedvirtual

成员函数说明

bool AuView3dAPI::ExecuteCommand ( const AnyCAD::API::String commandId,
const AnyCAD::API::String params = "" 
)

Execute the command.

参数
commandIdthe command id.
paramsthe parameters.
返回
true if done.
AnyCAD::API::SceneNode AuView3dAPI::FindSceneNode ( const AnyCAD::API::ElementId id) const

Find the scene node by id.

参数
idthe id of the geometry or scene node.
返回
the SceneNode. Please test if the scene node is valid before using the object returned.
const AnyCAD::API::View3d& AuView3dAPI::GetView ( ) const
inline

Get the View3d object.

AnyCAD::API::View3d& AuView3dAPI::GetView ( )
inline
void AuView3dAPI::RemoveSenceNode ( const AnyCAD::API::SceneNode node)

Remove the node from the scene.

参数
nodethe 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.

参数
topClrthe top color
midClrthe middle color
bottomClrthe 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.

参数
geometrythe TopoShape object.
idthe id of the shape. You can use this id to find the SceneNode.
accuratethe tolerance for visualize the geometry.
返回
the EntitySceneNode binding with the geometry.
void AuView3dAPI::ShowSceneNode ( const AnyCAD::API::SceneNode node)

Add the scene node to the scene.

参数
nodethe node to show.

类成员变量说明

bool AuView3dAPI::m_bHandleMouseMessage
protected
UINT AuView3dAPI::m_RenderTick
protected
const UINT_PTR AuView3dAPI::m_RenderTimerId
protected
AnyCAD::API::View3d AuView3dAPI::m_View3d
protected

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