PyANGKernel.GKViewModeStyleRange

class GKViewModeStyleRange

The style value for a particular attribute when this attribute is included in the range as: [from, to].

Details

It modifies only one visualization attribute.

Synopsis

Methods

Static functions

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

class SpotType

This enum defines the various way to draw a spot.

class DiagramType

Diagram type

PyANGKernel.GKViewModeStyleRange.label
PyANGKernel.GKViewModeStyleRange.from
PyANGKernel.GKViewModeStyleRange.to
PyANGKernel.GKViewModeStyleRange.strValue
PyANGKernel.GKViewModeStyleRange.color
PyANGKernel.GKViewModeStyleRange.alpha
PyANGKernel.GKViewModeStyleRange.penSizeUnits
PyANGKernel.GKViewModeStyleRange.brushStyle
PyANGKernel.GKViewModeStyleRange.penStyle
PyANGKernel.GKViewModeStyleRange.spot
PyANGKernel.GKViewModeStyleRange.useSpotColor
PyANGKernel.GKViewModeStyleRange.attr
PyANGKernel.GKViewModeStyleRange.strLabel
PyANGKernel.GKViewModeStyleRange.showColumnUnits
PyANGKernel.GKViewModeStyleRange.showColumnName
PyANGKernel.GKViewModeStyleRange.alignment
PyANGKernel.GKViewModeStyleRange.AutoScale
PyANGKernel.GKViewModeStyleRange.attrList
PyANGKernel.GKViewModeStyleRange.diagramType
__init__()
static getDiagramTypeName(t)
Parameters:

tDiagramType

Return type:

str

getEndingValue()
Return type:

float

Returns the ending value for this range

getMaxPenSize()
Return type:

float

Max pen size for proportional mode

getPenSize()
Return type:

float

Pen size

getPenSize(obj, modelConn[, context=GKContext.anyContext])
Parameters:
Return type:

float

getPenSize(obj, diagramCol, modelConn, context)
Parameters:
Return type:

float

get Pen size using the column held by diagramCol instead of the “attribute”

static getStarPolygon(x, y, radious)
Parameters:
  • x – float

  • y – float

  • radious – float

Return type:

QPolygonF

getStartingValue()
Return type:

float

Returns the starting value for this range

getValue()
Return type:

str

Returns the value for this range when the style’s attribute is of type String

getViewModeStyle()
Return type:

GKViewModeStyle

Returns the style where it belongs to

hasCommonContent(contentType)
Parameters:

contentType – str

Return type:

bool

setCommonContent(commonContent)
Parameters:

commonContentGKContent

setCommonContents(commonContents)
Parameters:

commonContentsGKContents

setPenSize(value)
Parameters:

value – float

Set the pen size

setPenSize(minSize, maxSize)
Parameters:
  • minSize – float

  • maxSize – float

Set the pen size for proportional mode

setRangeValues(from, to)
Parameters:
  • from – float

  • to – float

Sets the start and end values for this range

setValue(value)
Parameters:

value – str

Sets the value for this range when the style’s attribute is of type String

setViewModeStyle(style)
Parameters:

styleGKViewModeStyle

Sets the view style