Skip to content

DrawingService

Canonical path: NemAll_Python_BaseElements.DrawingService

Methods:

LockGraphicsEngineUpdate staticmethod

LockGraphicsEngineUpdate(doc: DocumentAdapter, lockUpdate: bool)

Lock the update of the graphics engine

Parameters:

  • doc (DocumentAdapter) –

    Document

  • lockUpdate (bool) –

    Set to True to lock the update of the graphics engine. Set to False to unlock and update it.

RedrawAll staticmethod

RedrawAll(doc: DocumentAdapter)

Redraw all Args: doc Document

ResetAndDrawHiddenElement staticmethod

ResetAndDrawHiddenElement(
    doc: DocumentAdapter, hiddenElement: BaseElementAdapter
)

Reset and draw the hidden elements Args: doc Document hiddenElement Hidden element

SaveWindowToImageFile staticmethod

SaveWindowToImageFile(
    fileName: str, pixelWidth: int = 0, pixelHeight: int = 0
) -> bool

Save the window to an image file

e:for success

UpdateAllWindows staticmethod

UpdateAllWindows()

Update the drawing in all windows

UpdateGraphicsEngine staticmethod

UpdateGraphicsEngine(doc: DocumentAdapter)

Update the graphics engine Args: doc Document