The RenderWindow3d WinForm control.
更多...
|
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::SceneNode^ | ShowGeometry (Platform::TopoShape^ topoShape, Platform::ElementId^ id, float precision) |
|
Platform::SceneNode^ | ShowGeometry (Platform::TopoShape^ topoShape, Platform::ElementId^ id) |
|
Platform::SceneNode^ | ShowGeometry (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::PickHelper^ | PickShape (int cx, int cy) |
|
Platform::Vector3^ | HitPointOnGrid (int cx, int cy) |
|
void | QuerySelection (Platform::SelectionQuery^ context) |
|
bool | CaptureImage (System::String^ fileName) |
|
|
virtual void | WndProc (Message% m) override |
|
virtual void | OnHandleDestroyed (EventArgs^ e) override |
|
The RenderWindow3d WinForm control.
- 作者
- AnyCAD
void AnyCAD::Presentation::RenderWindow3d::ActiveEditor |
( |
Platform::Editor^ |
editor | ) |
|
|
inline |
bool AnyCAD::Presentation::RenderWindow3d::CaptureImage |
( |
System::String^ |
fileName | ) |
|
|
inline |
Capture the scene as image file. such as png, jpg...
- 参数
-
- 返回
- false if failed.
void AnyCAD::Presentation::RenderWindow3d::ClearScene |
( |
| ) |
|
|
inline |
bool AnyCAD::Presentation::RenderWindow3d::ExecuteCommand |
( |
System::String^ |
commandName, |
|
|
System::String^ |
paramters |
|
) |
| |
|
inline |
Execute the command.
- 参数
-
commandName | the command id. |
parameters | the 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.
- 参数
-
cx | the x position. |
cy | the y position. |
- 返回
- the position.
Set the camera.
- 参数
-
pos | the position |
target | the look at target. |
up | the up direction of the camera. |
Pick the shape by mouse position.
- 参数
-
cx | the x position. |
cy | the y position. |
- 返回
- null if nothing is picked.
Query the selected scene nodes.
- 参数
-
context | the selection context to get the nodes. |
void AnyCAD::Presentation::RenderWindow3d::RequestDraw |
( |
Platform::EnumRenderHint |
hint | ) |
|
|
inline |
Request to draw the view.
- 参数
-
Set the background color of the scene.
- 参数
-
top | the top color. |
middle | the middle color |
bottom | the bottom color. |
void AnyCAD::Presentation::RenderWindow3d::SetDisplayMode |
( |
int |
nMode | ) |
|
|
inline |
Set the display mode.
- 参数
-
nMode | the new mode by EnumDisplayStyle. |
void AnyCAD::Presentation::RenderWindow3d::SetPickMode |
( |
int |
nMode | ) |
|
|
inline |
Set the pick mode.
- 参数
-
nMode | the new mode by EnumPickMode. |
void AnyCAD::Presentation::RenderWindow3d::SetStandardView |
( |
Platform::EnumStandardView |
viewType | ) |
|
|
inline |
Set the standard view.
- 参数
-
void AnyCAD::Presentation::RenderWindow3d::ShowCoordinateAxis |
( |
bool |
bShow | ) |
|
|
inline |
Show or hide the coordinate axis.
- 参数
-
Show the geometry.
- 参数
-
topoShape | the TopoShape object. |
id | the identifier of the geometry. |
precision | the tolerance. |
- 返回
- the SceneNode.
void AnyCAD::Presentation::RenderWindow3d::ShowWorkingGrid |
( |
bool |
bShow | ) |
|
|
inline |
Show or hide the working plane.
- 参数
-
Platform:: Document^ AnyCAD::Presentation::RenderWindow3d::Document |
|
getset |
Platform:: Renderer^ AnyCAD::Presentation::RenderWindow3d::Renderer |
|
get |
System:: Windows:: Forms:: Timer^ AnyCAD::Presentation::RenderWindow3d::RenderTimer |
|
get |
Platform:: SceneManager^ AnyCAD::Presentation::RenderWindow3d::SceneManager |
|
get |
Platform:: View3d^ AnyCAD::Presentation::RenderWindow3d::View3d |
|
get |
RenderEventHandler^ AnyCAD::Presentation::RenderWindow3d::RenderTick |
The render tick event. You can inject your logic when rendering .
该类的文档由以下文件生成: