PyANGGui.GDrawer

class GDrawer

Base class for all drawers (2D and 3D)

Details

GDrawer class contains the object to draw and the current object tick, which tells the view that the current object must be redrawn or not

Inherited by: G2DDrawer, G2DViewLayer

Synopsis

Methods

Virtual methods

Note

This documentation may contain snippets that were automatically translated from C++ to Python. We always welcome contributions to the snippet translation. If you see an issue with the translation, you can also let us know by creating a ticket on https:/bugreports.qt.io/projects/PYSIDE

__init__()
__init__(arg__1)
Parameters:

arg__1GDrawer

canBeSelected()
Return type:

bool

Return true if the object can be selected. If false the object will not be selected using any graphical tool or using the select all command. Note, but, that an object can be selected at kernel level bypassing this check.

getBBox()
Return type:

GKBBox

Returns the current bounding box of this object that have been calculated using the update geometry call. The base implementation returns the bbox set in setDefaultBBox .

getDiscardedBySpatialIndex()
Return type:

bool

Has this object been discarded by the spatial index?

getLastActiveScenario()
Return type:

GKGenericScenario

When obj is going to be drawn, this is checked in order to calculate geometry Configurations or not.

getModel()
Return type:

GKGeoObject

Returns the object to draw

getTick()
Return type:

int

Returns the current tick

hasBeenDrawed(view)
Parameters:

viewGView

Return type:

bool

Has this object been drawn in “view” during last view update?

hide(v)
Parameters:

v – bool

Make this object not visible in the “view”

isFiltered()
Return type:

bool

isHidden(view)
Parameters:

viewGView

Return type:

bool

Is this object visible or not in the “view”

setDefaultBBox(box)
Parameters:

boxGKBBox

Sets box as the default bounding box for this drawer. That is the bounding box that will * be returned by getBBox if it is not reimplemented. Only use this call if you know for sure * the bounding box of the object is the same for all views.

setDiscardedBySpatialIndex(value)
Parameters:

value – bool

Has this object been discarded by the spatial index?

setFiltered(v)
Parameters:

v – bool

setLastActiveScenario(aScenario)
Parameters:

aScenarioGKGenericScenario

setModel(obj)
Parameters:

objGKGeoObject

Sets the object to draw

setTick(t)
Parameters:

t – int

Set the tick