AnyCAD SDK PRO  2020
The Professional Graphics SDK for .Net and C++ Developers
Public 成员函数 | Protected 成员函数 | 属性 | 事件 | 所有成员列表
AnyCAD::Presentation::RenderWindow3d类 参考

The RenderWindow3d WinForm control. 更多...

类 AnyCAD::Presentation::RenderWindow3d 继承关系图:

Public 成员函数

void SetBackgroundColor (Platform::ColorValue^ top, Platform::ColorValue^ middle, Platform::ColorValue^ bottom)
 
void SetDisplayMode (int nMode)
 
void SetPickMode (int nMode)
 
void ShowWorkingGrid (bool bShow)
 
void ShowCoordinateAxis (bool bShow)
 
void FitAll ()
 
void SetStandardView (Platform::EnumStandardView viewType)
 
void LookAt (Platform::Vector3^ pos, Platform::Vector3^ target, Platform::Vector3^ up)
 
void ActiveEditor (Platform::Editor^ editor)
 
Platform::SceneNodeShowGeometry (Platform::TopoShape^ topoShape, Platform::ElementId^ id, float precision)
 
Platform::SceneNodeShowGeometry (Platform::TopoShape^ topoShape, Platform::ElementId^ id)
 
Platform::SceneNodeShowGeometry (Platform::TopoShape^ topoShape, long id)
 
void ShowSceneNode (Platform::SceneNode^ sceneNode)
 
void ClearScene ()
 
bool ExecuteCommand (System::String^ commandName, System::String^ paramters)
 
bool ExecuteCommand (System::String^ commandName)
 
void RequestDraw (Platform::EnumRenderHint hint)
 
void RequestDraw ()
 
Platform::PickHelperPickShape (int cx, int cy)
 
Platform::Vector3HitPointOnGrid (int cx, int cy)
 
void QuerySelection (Platform::SelectionQuery^ context)
 
bool CaptureImage (System::String^ fileName)
 

Protected 成员函数

virtual void WndProc (Message% m) override
 
virtual void OnHandleDestroyed (EventArgs^ e) override
 

属性

Platform::View3d^  View3d [get]
 
Platform::Renderer^  Renderer [get]
 
Platform::SceneManager^  SceneManager [get]
 
System::Windows::Forms::Timer^  RenderTimer [get]
 
Platform::Document^  Document [get, set]
 

事件

RenderEventHandler^  RenderTick
 

详细描述

The RenderWindow3d WinForm control.

作者
AnyCAD

成员函数说明

void AnyCAD::Presentation::RenderWindow3d::ActiveEditor ( Platform::Editor editor)
inline

Active the editor

参数
editorthe editor.
bool AnyCAD::Presentation::RenderWindow3d::CaptureImage ( System::String^  fileName)
inline

Capture the scene as image file. such as png, jpg...

参数
thefile name.
返回
false if failed.
void AnyCAD::Presentation::RenderWindow3d::ClearScene ( )
inline

Clear the Scene.

bool AnyCAD::Presentation::RenderWindow3d::ExecuteCommand ( System::String^  commandName,
System::String^  paramters 
)
inline

Execute the command.

参数
commandNamethe command id.
parametersthe parameters for the command.
void AnyCAD::Presentation::RenderWindow3d::FitAll ( )
inline

Zoom the scene to see all the objects.

Platform::Vector3 ^ AnyCAD::Presentation::RenderWindow3d::HitPointOnGrid ( int  cx,
int  cy 
)
inline

Compute the position on working plane.

参数
cxthe x position.
cythe y position.
返回
the position.
void AnyCAD::Presentation::RenderWindow3d::LookAt ( Platform::Vector3 pos,
Platform::Vector3 target,
Platform::Vector3 up 
)
inline

Set the camera.

参数
posthe position
targetthe look at target.
upthe up direction of the camera.
Platform::PickHelper ^ AnyCAD::Presentation::RenderWindow3d::PickShape ( int  cx,
int  cy 
)
inline

Pick the shape by mouse position.

参数
cxthe x position.
cythe y position.
返回
null if nothing is picked.
void AnyCAD::Presentation::RenderWindow3d::QuerySelection ( Platform::SelectionQuery context)
inline

Query the selected scene nodes.

参数
contextthe selection context to get the nodes.
void AnyCAD::Presentation::RenderWindow3d::RequestDraw ( Platform::EnumRenderHint  hint)
inline

Request to draw the view.

参数
thehint the draw flag.
void AnyCAD::Presentation::RenderWindow3d::SetBackgroundColor ( Platform::ColorValue top,
Platform::ColorValue middle,
Platform::ColorValue bottom 
)
inline

Set the background color of the scene.

参数
topthe top color.
middlethe middle color
bottomthe bottom color.
void AnyCAD::Presentation::RenderWindow3d::SetDisplayMode ( int  nMode)
inline

Set the display mode.

参数
nModethe new mode by EnumDisplayStyle.
void AnyCAD::Presentation::RenderWindow3d::SetPickMode ( int  nMode)
inline

Set the pick mode.

参数
nModethe new mode by EnumPickMode.
void AnyCAD::Presentation::RenderWindow3d::SetStandardView ( Platform::EnumStandardView  viewType)
inline

Set the standard view.

参数
viewTypethe view type.
void AnyCAD::Presentation::RenderWindow3d::ShowCoordinateAxis ( bool  bShow)
inline

Show or hide the coordinate axis.

参数
bShowtrue to show.
Platform::SceneNode ^ AnyCAD::Presentation::RenderWindow3d::ShowGeometry ( Platform::TopoShape topoShape,
Platform::ElementId id,
float  precision 
)
inline

Show the geometry.

参数
topoShapethe TopoShape object.
idthe identifier of the geometry.
precisionthe tolerance.
返回
the SceneNode.
void AnyCAD::Presentation::RenderWindow3d::ShowSceneNode ( Platform::SceneNode sceneNode)
inline

Show the SceneNode.

参数
sceneNodethe SceneNode.
void AnyCAD::Presentation::RenderWindow3d::ShowWorkingGrid ( bool  bShow)
inline

Show or hide the working plane.

参数
bShowtrue to show.

属性说明

Platform:: Document^ AnyCAD::Presentation::RenderWindow3d::Document
getset

Get or set the document.

Platform:: Renderer^ AnyCAD::Presentation::RenderWindow3d::Renderer
get

Get the renderer.

System:: Windows:: Forms:: Timer^ AnyCAD::Presentation::RenderWindow3d::RenderTimer
get

Get the render timer.

Platform:: SceneManager^ AnyCAD::Presentation::RenderWindow3d::SceneManager
get

Get the SceneManager

Platform:: View3d^ AnyCAD::Presentation::RenderWindow3d::View3d
get

Get the render view.

事件说明

RenderEventHandler^ AnyCAD::Presentation::RenderWindow3d::RenderTick

The render tick event. You can inject your logic when rendering .


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