PyANGGui.GDrawer¶
- class GDrawer¶
Base class for all drawers (2D and 3D)
Details
GDrawerclass contains the object to draw and the current object tick, which tells the view that the current object must be redrawn or notInherited by:
G2DDrawer,G2DViewLayerSynopsis¶
Methods¶
def
__init__()def
getTick()def
hasBeenDrawed()def
hide()def
isFiltered()def
setDefaultBBox()def
setFiltered()
Virtual methods¶
def
canBeSelected()def
getBBox()def
getModel()def
isHidden()def
setModel()def
setTick()
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__1 –
GDrawer
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.
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.Has this object been discarded by the spatial index?
- getLastActiveScenario()¶
- Return type:
When obj is going to be drawn, this is checked in order to calculate geometry Configurations or not.
- getModel()¶
- Return type:
Returns the object to draw
Returns the current tick
Has this object been drawn in “view” during last view update?
- hide(v)¶
- Parameters:
v – bool
Make this object not visible in the “view”
Is this object visible or not in the “view”
Sets box as the default bounding box for this drawer. That is the bounding box that will * be returned by
getBBoxif 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:
aScenario –
GKGenericScenario
- setModel(obj)¶
- Parameters:
obj –
GKGeoObject
Sets the object to draw
- setTick(t)¶
- Parameters:
t – int
Set the tick