DMGraphicsWrapper#

class ansys.mechanical.stubs.v261.Ansys.ACT.Common.Graphics.DMGraphicsWrapper(dmGraphics: Ansys.Common.Interop.AGGfx.IAGGfxService)#

Bases: object

Wrapper for Graphics in Design Modeler.

Overview#

CreateAndOpenDraw3DContext

CreateAndOpenDraw3DContext method.

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.

DrawText2D

DrawText2D method.

Equals

Equals method.

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

GetHashCode

GetHashCode method.

GetType

GetType method.

LineTo2D

LineTo2D method.

MoveTo2D

MoveTo2D method.

PixelToWorld

PixelToWorld method.

Redraw

Forces the scene to redraw its content.

RemoveContext

RemoveContext method.

Suspend

Prevents the scene to redraw until the Resume controller method was called.

ToString

ToString method.

WorldToPixel

WorldToPixel method.

Camera

Camera property.

Color

Color property.

DepthTest

DepthTest property.

DrawContexts

DrawContexts property.

LineWeight

LineWeight property.

Scene

Gets the scene.

Translucency

Translucency property.

Unit

Unit property.

Property detail#

property DMGraphicsWrapper.Camera: Ansys.ACT.Interfaces.Graphics.ICamera | None#

Camera property.

property DMGraphicsWrapper.Color: int | None#

Color property.

property DMGraphicsWrapper.DepthTest: bool | None#

DepthTest property.

property DMGraphicsWrapper.DrawContexts: List[Ansys.ACT.Interfaces.Graphics.IDrawContext] | None#

DrawContexts property.

property DMGraphicsWrapper.LineWeight: int | None#

LineWeight property.

property DMGraphicsWrapper.Scene: Ansys.ACT.Interfaces.Graphics.IGraphicsCollection | None#

Gets the scene.

property DMGraphicsWrapper.Translucency: float | None#

Translucency property.

property DMGraphicsWrapper.Unit: str | None#

Unit property.

Method detail#

DMGraphicsWrapper.CreateAndOpenDraw3DContext() Ansys.ACT.Interfaces.Graphics.IDraw3DContext#

CreateAndOpenDraw3DContext method.

DMGraphicsWrapper.CreatePixelPoint(x: int, y: int) Ansys.ACT.Interfaces.Graphics.IPixelPoint#

Creates a point from pixel coordinates (ie. window coordinates).

DMGraphicsWrapper.CreateVector3D(x: float, y: float, z: float) Ansys.ACT.Interfaces.Graphics.IVector3D#

Create a 3D vector from world coordinates.

DMGraphicsWrapper.CreateWorldPoint(x: float, y: float, z: float) Ansys.ACT.Interfaces.Graphics.IWorldPoint#

Create a point from world coordinates.

DMGraphicsWrapper.DrawText2D(x: int, y: int, text: str) None#

DrawText2D method.

DMGraphicsWrapper.Equals(obj: Any) bool#

Equals method.

DMGraphicsWrapper.ExportScreenToImage(filePath: str) None#

Exports the current Graphics screen to a file.

DMGraphicsWrapper.ForceResume() None#
Forces the scene to resume. Useful in interactive context (console) if a reference on an
operation has been lost.
DMGraphicsWrapper.GetHashCode() int#

GetHashCode method.

DMGraphicsWrapper.GetType() type#

GetType method.

DMGraphicsWrapper.LineTo2D(x: int, y: int) None#

LineTo2D method.

DMGraphicsWrapper.MoveTo2D(x: int, y: int) None#

MoveTo2D method.

DMGraphicsWrapper.PixelToWorld(xy: Iterable[int]) float#

PixelToWorld method.

DMGraphicsWrapper.Redraw() None#

Forces the scene to redraw its content.

DMGraphicsWrapper.RemoveContext(context: Ansys.ACT.Interfaces.Graphics.IDrawContext) None#

RemoveContext method.

DMGraphicsWrapper.Suspend() Ansys.ACT.Interfaces.Graphics.ISuspendController#

Prevents the scene to redraw until the Resume controller method was called.

DMGraphicsWrapper.ToString() str#

ToString method.

DMGraphicsWrapper.WorldToPixel(pt: Iterable[float]) int#

WorldToPixel method.