PyANGKernel.GK¶
- class GK¶
Synopsis¶
Static functions¶
def
AreEqual()def
BuildContents()def
BuildSIContent()def
ColumnLessThan()def
CreateHRef()def
DecodeHRef()def
DegToRad()def
FindWidget()def
FloatToString()def
GKCopyFile()def
GetEnumId()def
GetEnumODType()def
GetEnumString()def
GetMax()def
GetMean()def
GetMemoryInfo()def
GetMin()def
GetProjectName()def
GetRandomColor()def
GetSum()def
IsNaN()def
IsNull()def
IsZero()def
Max()def
Min()def
Modulo()def
ObjectLessThan()def
PrintTrace()def
RadToDeg()def
Redon()def
ReduceRect()def
StringDistance()def
Substring()def
TimeToSeconds()def
ToGK()def
ToODType()def
ToQt()def
toDouble()def
toFloat()
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 AggregationType¶
- class NullMeaning¶
- class ODType¶
- class ConnectionType¶
- class RoadSide¶
- class LatitudeLongitudeType¶
- class SizeUnits¶
- class UnitSystem¶
- class DetailLevel¶
- class ObjectDeletionBehaviour¶
- class Conversion¶
- class VehicleCategory¶
- class EngineType¶
- static AddSecondToDisplayFormat(originalFormat, showMillisecs)¶
- Parameters:
originalFormat – str
showMillisecs – bool
- Return type:
- static AreEqual(a, b[, epsilon=0.001])¶
- Parameters:
a – float
b – float
epsilon – float
- Return type:
- static BuildAggregationTypeContent(aggType)¶
- Parameters:
aggType –
AggregationType- Return type:
- static BuildColumnName(prefix, type, contents)¶
- Parameters:
prefix – str
type –
GKTypecontents –
GKContents
- Return type:
- static BuildContents(mainId, originator)¶
- Parameters:
mainId – str
originator –
GKObject
- Return type:
- static BuildContents(mainId, originator, userClass)
- Parameters:
mainId – str
originator –
GKObjectuserClass –
GKBaseObject
- Return type:
- static BuildContents(mainId, mainDescription, originator)
- Parameters:
mainId – str
mainDescription – str
originator –
GKObject
- Return type:
- static BuildContents(mainId, mainDescription, originator, userClass)
- Parameters:
mainId – str
mainDescription – str
originator –
GKObjectuserClass –
GKBaseObject
- Return type:
- static BuildContentsUC(mainId, userClass)¶
- Parameters:
mainId – str
userClass –
GKObject
- Return type:
- static BuildDestinationContent(destination)¶
- static BuildPTLineTypeContent(ptLine[, meaning=GK.eNullMeansAll])¶
- Parameters:
ptLine –
GKObjectmeaning –
NullMeaning
- Return type:
- static BuildPTRunTypeContent(runStartTime[, meaning=GK.eNullMeansAll])¶
- Parameters:
runStartTime – str
meaning –
NullMeaning
- Return type:
- static BuildPTRunTypeContent(runStartTime[, meaning=GK.eNullMeansAll])
- Parameters:
runStartTime – int
meaning –
NullMeaning
- Return type:
- static BuildPTSectionSegmentContent(segmentIndex)¶
- Parameters:
segmentIndex – int
- Return type:
- static BuildPTZoneTypeContent(ptZone[, meaning=GK.eNullMeansAll])¶
- Parameters:
ptZone –
GKObjectmeaning –
NullMeaning
- Return type:
- static BuildUserClassContent(mobileAgent[, meaning=GK.eNullMeansAll])¶
- Parameters:
mobileAgent –
GKBaseObjectmeaning –
NullMeaning
- Return type:
- static CreateHRef(object)¶
- Parameters:
object –
GKBaseObject- Return type:
- static DateTimeToSeconds(initialTime, time[, miliseconds=None])¶
- static DecodeHRef(url)¶
- Parameters:
url – str
- Return type:
- static DownstreamSection(section, sameRoadType[, maxLanes=false])¶
- static FillComboWithQtEnum(qtEnumName, target)¶
- Parameters:
qtEnumName – str
target –
QComboBox
- static FindGroupContaining(m, objects)¶
- static FloatToString(value[, decimalUnits=2[, roundingUnits=0[, showAsPercentage=false]]])¶
- Parameters:
value – float
decimalUnits – int
roundingUnits – int
showAsPercentage – bool
- Return type:
- static GetAggregatedValue(values, aggregationType)¶
- Parameters:
values – .list of double
aggregationType –
AggregationType
- Return type:
- static GetCenConnectionType(connections[, connectedObject=None])¶
- Parameters:
connections – .QSetGKObjectConnection
connectedObject –
GKGeoObject
- Return type:
- static GetConnectionType(connections[, connectedObject=None])¶
- Parameters:
connections – .QSetGKObjectConnection
connectedObject –
GKGeoObject
- Return type:
- static GetConversionName(units, conversion)¶
- Parameters:
units –
UnitSystemconversion –
Conversion
- Return type:
- static GetConversionNameTranslated(units, conversion)¶
- Parameters:
units –
UnitSystemconversion –
Conversion
- Return type:
- static GetDateTimeDisplayFormatWithSeconds([showMillisecs=false])¶
- Parameters:
showMillisecs – bool
- Return type:
- static GetEnumAggregationType(id)¶
- Parameters:
id – str
- Return type:
- static GetEnumId(aggType)¶
- Parameters:
aggType –
AggregationType- Return type:
- static GetEnumString(aggregationType)¶
- Parameters:
aggregationType –
AggregationType- Return type:
- static GetEnumString(connectionType)
- Parameters:
connectionType –
ConnectionType- Return type:
- static GetEnumString(enumValue)
- Parameters:
enumValue –
Conversion- Return type:
- static GetEnumString(enumValue)
- Parameters:
enumValue –
DetailLevel- Return type:
- static GetEnumString(latitudeLongitude)
- Parameters:
latitudeLongitude –
LatitudeLongitudeType- Return type:
- static GetEnumString(meaning)
- Parameters:
meaning –
NullMeaning- Return type:
- static GetEnumString(enumValue)
- Parameters:
enumValue –
UnitSystem- Return type:
- static GetExitsTurningsFromApproach(aEntranceApproach)¶
- Parameters:
aEntranceApproach –
GKSection- Return type:
.std.mapquint32,quint32
- static GetGreatestCommonMultiple(aValue1, aValue2)¶
- Parameters:
aValue1 – int
aValue2 – int
- Return type:
- static GetMax(values)
- Parameters:
values – .list of double
- Return type:
- static GetMax(values)
- Parameters:
values – .list of int
- Return type:
- static GetMax(values)
- Parameters:
values – .list of int
- Return type:
- static GetMaxValueOfColumn(model, type, col[, reference=-1.0[, context=GKContext()]])¶
- static GetMean(values)
- Parameters:
values – .std.vectordouble
- Return type:
- static GetMin(values)
- Parameters:
values – .list of double
- Return type:
- static GetMin(values)
- Parameters:
values – .list of int
- Return type:
- static GetMin(values)
- Parameters:
values – .list of int
- Return type:
- static GetObjectsOfType(type[, includeSubTypes=true[, sort=true]])¶
- static GetObjectsOfType(type, scenario[, sort=true])
- Parameters:
type –
GKTypescenario –
GKGenericScenariosort – bool
- Return type:
.list of GKObject
- static GetObjectsOfType(type, scenarios[, sort=true])
- static GetObjectsThatExists(objects, scenarios)¶
- Parameters:
objects – .list of GKObject
scenarios – .list of const GKGenericScenario
- Return type:
.list of GKObject
- static GetRandomColor(generator)¶
- Parameters:
generator –
QRandomGenerator- Return type:
- static GetRelativeDifferencePercent(val, ref)¶
- Parameters:
val – float
ref – float
- Return type:
- static GetSameColumnWithContents(refCol, appliedContents[, addAppliedContentIfNotContained=false])¶
- Parameters:
refCol –
GKColumnappliedContents –
GKContentsaddAppliedContentIfNotContained – bool
- Return type:
- static GetStdDeviation(values)
- Parameters:
values – .std.vectordouble
- Return type:
- static GetSum(values)
- Parameters:
values – .std.vectordouble
- Return type:
- static GetTimeDisplayFormatWithSeconds([showMillisecs=false])¶
- Parameters:
showMillisecs – bool
- Return type:
- static GetWeightedMean(values, weights)¶
- Parameters:
values – .list of double
weights – .list of double
- Return type:
- static GetWeightedStdDeviation(values, weights)¶
- Parameters:
values – .list of double
weights – .list of double
- Return type:
- static Max(a, b)
- Parameters:
a – float
b – float
- Return type:
- static Max(a, b)
- Parameters:
a – int
b – int
- Return type:
- static Max(a, b)
- Parameters:
a – int
b – int
- Return type:
- static Min(a, b)
- Parameters:
a – float
b – float
- Return type:
- static Min(a, b)
- Parameters:
a – int
b – int
- Return type:
- static Min(a, b)
- Parameters:
a – int
b – int
- Return type:
- static ObjectLessThan(o1, o2)¶
- Parameters:
o1 –
GKBaseObjecto2 –
GKBaseObject
- Return type:
- static ObjectLessThanByExternalId(o1, o2)¶
- Parameters:
o1 –
GKBaseObjecto2 –
GKBaseObject
- Return type:
- static ObjectLessThanByName(o1, o2)¶
- Parameters:
o1 –
GKBaseObjecto2 –
GKBaseObject
- Return type:
- static PrintTrace()¶
- static QTimeInInterval(iTime, iStart, iEnd)¶
- static QTimeInInterval(iTime, iStart, iEnd)
- static Redon(xn)
- Parameters:
xn – float
- Return type:
- static TimeToSeconds(duration[, miliseconds=None])¶
- Parameters:
duration –
GKTimeDurationmiliseconds –
uint
- Return type:
- static TimeToSeconds(time[, miliseconds=None])
- static TimeToSecondsDouble(time)¶
- Parameters:
time –
GKTimeDuration- Return type:
- static ToODType(connectionType)¶
- Parameters:
connectionType –
ConnectionType- Return type:
- static ToQt(p)
- Parameters:
p –
GKPoints- Return type:
.list of QPointF
- static UnitSystemFromPreferenceInt(preferenceIntValue)¶
- Parameters:
preferenceIntValue – int
- Return type:
- static UnitSystemToPreferenceInt(system)¶
- Parameters:
system –
UnitSystem- Return type:
- static getEngineTypeName(aEngineType)¶
- Parameters:
aEngineType –
EngineType- Return type:
- static getOriginatorsFromSource(source)¶
- Parameters:
source –
GKObject- Return type:
.std.vectorGKObject
- static getTSBandSumForSimulationTime(ts, from, to)¶
- Parameters:
ts –
GKTimeSeriefrom –
QDateTimeto –
QDateTime
- Return type:
.std.pairdouble,double
- static getTSMeanForSimulationTime(ts, from, to[, useDate=true])¶
- Parameters:
ts –
GKTimeSeriefrom –
QDateTimeto –
QDateTimeuseDate – bool
- Return type:
- static getTSSumForSimulationTime(ts, from, to[, useDate=true])¶
- Parameters:
ts –
GKTimeSeriefrom –
QDateTimeto –
QDateTimeuseDate – bool
- Return type:
- static intervalOverlapDuration(iStart1, iEnd1, iStart2, iEnd2)¶
- Parameters:
- Return type:
- static intervalOverlapDuration(iStart1, iEnd1, iStart2, iEnd2)
- Parameters:
- Return type: