PyANGKernel.GKText

class GKText

A text in the 2D View

Inheritance diagram of PyANGKernel.GKText

Synopsis

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__()
angleAffected(_angleAffected)
Parameters:

_angleAffected – bool

Sets if the text will be affected by the general angle rotation of the network

getAngle()
Return type:

float

Text angle in radians. The angle 0.0 is the one that sets the text horizontally and it grows counterclockwise

getColor()
Return type:

QColor

Label color.

getFullTextHeight()
Return type:

float

Font size in text adjusted to the number of lines

getHeight()
Return type:

float

Font size in m

getText()
Return type:

str

Returns the text to be drawn

isAngleAffected()
Return type:

bool

Gets if the text object is angle affected

setAngle(a)
Parameters:

a – float

Text angle in radians. The angle 0.0 is the one that sets the text horizontally and it grows counterclockwise

setColor(acolor)
Parameters:

acolorQColor

Label color.

setHeight(a)
Parameters:

a – float

Font size in m

setText(t)
Parameters:

t – str

Sets the text to be drawn