DMGraphicsWrapper
Last update: 14.01.2025
DMGraphicsWrapper
class Ansys.ACT.Common.Graphics.DMGraphicsWrapper
Bases: object
Wrapper for Graphics in Design Modeler.
Overview
Methods
Name | Description |
---|---|
CreatePixelPoint |
Creates a point from pixel coordinates (ie. window coordinates). |
CreateVector3D |
Create a 3D vector from world coordinates. |
CreateWorldPoint |
Create a point from world coordinates. |
ExportScreenToImage |
Exports the current Graphics screen to a file. |
ForceResume |
Forces the scene to resume. Useful in interactive context (console) if a reference on an |
Redraw |
Forces the scene to redraw its content. |
Suspend |
Prevents the scene to redraw until the Resume controller method was called. |
Properties
Name | Description |
---|---|
Scene |
Gets the scene. |
Property detail
property DMGraphicsWrapper.Scene : Ansys.ACT.Interfaces.Graphics.IGraphicsCollection | None
Gets the scene.
Method detail
DMGraphicsWrapper.CreatePixelPoint(x: int, y: int)
Creates a point from pixel coordinates (ie. window coordinates).
DMGraphicsWrapper.CreateVector3D(x: float, y: float, z: float)
Create a 3D vector from world coordinates.
DMGraphicsWrapper.CreateWorldPoint(x: float, y: float, z: float)
Create a point from world coordinates.
DMGraphicsWrapper.ExportScreenToImage(filePath: str)
Exports the current Graphics screen to a file.
DMGraphicsWrapper.ForceResume()
Forces the scene to resume. Useful in interactive context (console) if a reference on an
operation has been lost.
DMGraphicsWrapper.Redraw()
Forces the scene to redraw its content.
DMGraphicsWrapper.Suspend()
Prevents the scene to redraw until the Resume controller method was called.