Aimsun Next Scripting
22
|
Public Types | |
enum | GKViewModeStyleType { eColor = 0 , ePenWidth = 1 , ePenStyle = 2 , eBrushStyle = 3 , eSpot = 4 , eHide = 5 , eAlpha = 6 , eAttribute = 7 , eDiagram = 8 , eStackedBands = 9 } |
enum | GKViewModeStyleVariableType { eContinuous , eDiscrete } |
enum | GKViewModeStyleColorType { eBoth , ePen , eBrush } |
![]() | |
enum | IdentifierFormFlag { eIdentifierDefault , eIdentifierId , eIdentifierName , eIdentifierExternalId , eIdentifierTypeExternalName , eIdentifierDescription , eIdentifierStandard , eIdentifierStandardWithType , eIdentifierAll } |
enum | GKLockType { eNone , eModification , eDelete , eModificationDelete } |
enum | GKObjectStatus { eNew , eSaved , eModified , eDeleted } |
typedef QFlags< GKObject::IdentifierFormFlag > | IdentifierForm |
Public Member Functions | |
GKViewModeStyle () | |
~GKViewModeStyle () | |
void | setStyleType (GKViewModeStyleType) |
GKViewModeStyleType | getStyleType () const |
void | setVariableType (GKViewModeStyleVariableType) |
GKViewModeStyleVariableType | getVariableType () const |
void | setColorType (GKViewModeStyleColorType aType) |
GKViewModeStyleColorType | getColorType () const |
bool | usesColumn (const GKColumn *) const |
void | setColumn (GKType *, GKColumn *) |
GKColumn * | getColumn () const |
GKType * | getTypeOwner () const |
void | setDividerColumn (GKColumn *acol) |
GKColumn * | getDividerColumn () const |
void | setUseNormalizing (bool normalize) |
bool | useMaxNormalizing () const |
void | addRange (GKViewModeStyleRange *) |
void | removeRange (GKViewModeStyleRange *) |
const QList< GKViewModeStyleRange * > & | getRanges () const |
void | removeAllRanges () |
GKViewModeStyleRange * | addRange (double, double, bool=false) |
GKViewModeStyleRange * | addRange (double, bool=false) |
GKViewModeStyleRange * | addRange (const QString &, bool=false) |
GKViewModeStyleRange * | getRange (GKObject *obj, const GKModelConnection *modelConn, const GKContext &context) |
GKViewModeStyleRange * | getRange (double from, double to=0.0) const |
GKViewModeStyleRange * | getRange (const QString &value) const |
QMap< int, GKViewModeStyleRange * > | getRangesForStackedBandsColumns (GKObject *obj, const GKModelConnection *modelConn, const GKContext &context) |
void | setUnits (const GK::SizeUnits &) |
GK::SizeUnits | getUnits () const |
GKViewModeStyleRange * | getDefaultRange () const |
void | setDefaultRange (GKViewModeStyleRange *) |
void | sortRanges () |
bool | isScaleDependand () const |
uint | getFromScale () const |
uint | getToScale () const |
bool | visibleAtThisScale (uint) const |
void | setScaleDependand (bool) |
void | setDrawScale (uint, uint) |
void | setLabelDecimalPlaces (uint value) |
void | setLabelRoundingToZeroPlaces (uint value) |
uint | getLabelDecimalPlaces () const |
uint | getLabelRoundingToZeroPlaces () const |
bool | doRotate () const |
void | setDoRotate (bool rotate) |
void | setInternalName (const QString &) |
const QString & | getInternalName () const |
void | setCondition (GKMultiCondition cond) |
GKMultiCondition | getCondition () const |
bool | matchCondition (GKObject *obj, const GKModelConnection *modelConn, const GKContext &context=GKContext::anyContext) |
double | getMaxNormalizer () const |
void | setMaxNormalizer (double value) |
void | setShowLabelAsPercentage (bool enabled) |
bool | showLabelAsPercentage () const |
![]() | |
GKObject () | |
GKObject (const GKObject &o) | |
virtual void | addedToCatalog () |
virtual void | removedFromCatalog () |
uint | getTick () const |
virtual void | increaseTick () |
void | setTick (uint t) |
virtual GKObject * | clone (bool addItToModel=true) const |
virtual GKObject * | cloneAsTemporary (bool addItToModel=true) const |
GKFolder * | getCreateRootFolder () |
GKFolder * | getRootFolder () const |
void | setRootFolder (GKFolder *afolder) |
GKFolder * | findFolder (const QString &byName) const |
QVector< GKFolder * > | getParentFolders () const |
bool | isDataValueNull (const GKColumn *attr) const |
virtual QVariant * | getDataValue (const GKColumn *attr, bool *deleteit, const GKContext &context=GKContext::anyContext) const |
QVariant * | getDataValueByID (uint attrId, bool *deleteit, const GKContext &context=GKContext::anyContext) const |
virtual void | setDataValue (const GKColumn *attr, const QVariant &v) |
void | setDataValueByID (uint attrId, const QVariant &v) |
virtual void | setDataValueObject (const GKColumn *attr, const GKObject *obj) |
void | setDataValueObjectByID (uint attrId, const GKObject *obj) |
virtual void | setDataValueDouble (const GKColumn *attr, double v) |
void | setDataValueDoubleByID (uint attrId, double v) |
virtual double | getDataValueInTS (const GKColumn *attr, GKTimeSerieIndex index, double *deviation=NULL) const |
double | getDataValueInTSByID (uint attrId, GKTimeSerieIndex index, double *deviation=NULL) const |
bool | hasAnyTSWithData () const |
virtual GKTimeSerie * | getDataValueTS (const GKColumn *attr) const |
GKTimeSerie * | getDataValueTSByID (uint attrId) const |
virtual void | setDataValueInTS (const GKColumn *attr, GKTimeSerieIndex index, double value, double deviation, GKTSDescription *aDescription=NULL, int reservedSize=0) |
virtual void | setDataValueInTS (const GKColumn *attr, GKTimeSerieIndex index, double value, double deviation, double lowerValue, GKTSDescription *aDescription=NULL, int reservedSize=0) |
virtual void | setDataValueInSingleTS (const GKColumn *attr, GKTimeSerieIndex index, double value, double deviation, GKTSDescription *aDescription) |
void | setDataValueInTSByID (uint attrId, GKTimeSerieIndex index, double value, double deviation, GKTSDescription *aDescription=NULL, int reservedSize=0) |
virtual void | setAggregatedValueInTS (const GKColumn *attr, double value, double deviation, GKTSDescription *aDescription=NULL) |
void | setAggregatedValueInTSByID (uint attrId, double value, double deviation, GKTSDescription *aDescription=NULL) |
virtual void | clearDataValueTS (const GKColumn *attr, GKTSDescription *aDescription=NULL) |
void | clearDataValueTSByID (uint attrId, GKTSDescription *aDescription=NULL) |
virtual int | getDataValueInt (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const |
int | getDataValueIntByID (uint attrId, const GKContext &context=GKContext::anyContext) const |
virtual double | getDataValueDouble (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const |
double | getDataValueDoubleByID (uint attrId, const GKContext &context=GKContext::anyContext) const |
QString | getDataValueString (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const |
QString | getDataValueStringByID (uint attrId, const GKContext &context=GKContext::anyContext) const |
virtual bool | getDataValueBool (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const |
bool | getDataValueBoolByID (uint attrId, const GKContext &context=GKContext::anyContext) const |
virtual GKObject * | getDataValueObject (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const |
GKObject * | getDataValueObjectByID (uint attrId, const GKContext &context=GKContext::anyContext) const |
QDate | getDataValueDate (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const |
QDate | getDataValueDateByID (uint attrId, const GKContext &context=GKContext::anyContext) const |
QTime | getDataValueTime (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const |
QTime | getDataValueTimeByID (uint attrId, const GKContext &context=GKContext::anyContext) const |
QDateTime | getDataValueDateTime (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const |
QDateTime | getDataValueDateTimeByID (uint attrId, const GKContext &context=GKContext::anyContext) const |
GKTimeDuration | getDataValueTimeDuration (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const |
GKTimeDuration | getDataValueTimeDurationByID (uint attrId, const GKContext &context=GKContext::anyContext) const |
void | removeDataValue (const GKColumn *attr) |
void | removeDataValueByID (uint attrId) |
const QString & | getDescription () const |
void | setDescription (const QString &adescription) |
const QString & | getExternalId () const |
void | setExternalId (const QString &anId) |
virtual GKObjectDelCmd * | getDelCmd () |
virtual GKObjectConnectionDelCmd * | getDelConnectionCmd (GKObject *target) |
virtual void | nonCommandObjectRemoved (GKObject *) |
virtual void | init () |
virtual void | setId (uint aid, GKModel *model) |
uint | getId () const |
QUuid | getUUID () const |
virtual void | setName (const QString &aname) |
const QString & | getName () const |
QString | getExtendedId (IdentifierForm form=eIdentifierDefault) const |
QString | getNameOrExtendedId (IdentifierForm form=eIdentifierDefault) const |
virtual const QString & | getTypeName () const |
virtual QString | getTypeExternalName () const |
const GKObject * | getMaster () const |
GKType * | getType () const |
virtual void | setType (GKType *atype) |
bool | isA (const GKType *atype) const |
bool | isA (const QString &typeName) const |
virtual void | setModel (GKModel *amodel) |
GKModel * | getModel () const |
virtual void | setLock (GKLockType atype) |
GKLockType | getLock () const |
virtual bool | canBeDeleted () const |
virtual bool | canBeModified () const |
virtual bool | canBeEdited () const |
GKObjectStatus | getStatus () const |
virtual void | setStatus (const GKObjectStatus astatus) |
void | notifyStatusChange () |
bool | isTemporary () const |
void | setTemporary (bool value) |
bool | isExternal () const |
void | setExternal (bool value) |
virtual void | preferencesChanged () |
void | removeColumn (GKColumn *column) |
void | resetColumn (GKColumn *column) |
![]() | |
GKBaseObject () | |
if (base) | |
virtual uint | getId () const =0 |
virtual const QString & | getTypeName () const =0 |
virtual QString | getTypeExternalName () const =0 |
virtual const GKObject * | getMaster () const =0 |
virtual const QString & | getName () const =0 |
virtual const QString & | getExternalId () const =0 |
virtual const QString & | getDescription () const =0 |
virtual GKModel * | getModel () const =0 |
virtual QVariant * | getDataValue (const GKColumn *attr, bool *deleteit, const GKContext &context=GKContext::anyContext) const =0 |
virtual QVariant * | getDataValueByID (uint attrId, bool *deleteit, const GKContext &context=GKContext::anyContext) const =0 |
virtual double | getDataValueInTS (const GKColumn *attr, GKTimeSerieIndex index, double *deviation=NULL) const =0 |
virtual double | getDataValueInTSByID (uint attrId, GKTimeSerieIndex index, double *deviation=NULL) const =0 |
virtual GKTimeSerie * | getDataValueTS (const GKColumn *attr) const =0 |
virtual GKTimeSerie * | getDataValueTSByID (uint attrId) const =0 |
virtual int | getDataValueInt (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const =0 |
virtual int | getDataValueIntByID (uint attrId, const GKContext &context=GKContext::anyContext) const =0 |
virtual double | getDataValueDouble (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const =0 |
virtual double | getDataValueDoubleByID (uint attrId, const GKContext &context=GKContext::anyContext) const =0 |
virtual QString | getDataValueString (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const =0 |
virtual QString | getDataValueStringByID (uint attrId, const GKContext &context=GKContext::anyContext) const =0 |
virtual bool | getDataValueBool (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const =0 |
virtual bool | getDataValueBoolByID (uint attrId, const GKContext &context=GKContext::anyContext) const =0 |
virtual GKObject * | getDataValueObject (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const =0 |
virtual GKObject * | getDataValueObjectByID (uint attrId, const GKContext &context=GKContext::anyContext) const =0 |
virtual QDate | getDataValueDate (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const =0 |
virtual QDate | getDataValueDateByID (uint attrId, const GKContext &context=GKContext::anyContext) const =0 |
virtual QTime | getDataValueTime (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const =0 |
virtual QTime | getDataValueTimeByID (uint attrId, const GKContext &context=GKContext::anyContext) const =0 |
virtual QDateTime | getDataValueDateTime (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const =0 |
virtual QDateTime | getDataValueDateTimeByID (uint attrId, const GKContext &context=GKContext::anyContext) const =0 |
virtual GKTimeDuration | getDataValueTimeDuration (const GKColumn *attr, const GKContext &context=GKContext::anyContext) const =0 |
virtual GKTimeDuration | getDataValueTimeDurationByID (uint attrId, const GKContext &context=GKContext::anyContext) const =0 |
Additional Inherited Members | |
![]() | |
ConvertToSubClassCode Py_BEGIN_ALLOW_THREADS GKBaseObject * | base = (GKBaseObject*)sipCpp |
sipType = 0 | |
![]() | |
static uint | typeNameAtt |
static uint | typeExternalNameAtt |
static uint | revisedAtt |
![]() | |
Py_END_ALLOW_THREADS static End uint | idAtt |
static uint | nameAtt |
static uint | externalIdAtt |
static uint | descriptionAtt |
It has several entries, each entry contains a range of values. In function of the object attribute value one of the entries is chosen. Note that a GKViewModeStyle modifies only one visualization attribute.
The internal name of the centroid configuration folder is "GKModel::viewStyles" The external name is "View Styles"
GKViewModeStyle::GKViewModeStyle | ( | ) |
GKViewModeStyle::~GKViewModeStyle | ( | ) |
GKViewModeStyleRange * GKViewModeStyle::addRange | ( | const QString & | , |
bool | = false |
||
) |
adds a regexp string value DISCRETE
GKViewModeStyleRange * GKViewModeStyle::addRange | ( | double | , |
bool | = false |
||
) |
adds a range value DISCRETE
GKViewModeStyleRange * GKViewModeStyle::addRange | ( | double | , |
double | , | ||
bool | = false |
||
) |
adds a range entry as: [from, to) CONTINUOUS
void GKViewModeStyle::addRange | ( | GKViewModeStyleRange * | ) |
Adds a new range.
bool GKViewModeStyle::doRotate | ( | ) | const |
Returns true if the view mode style rotates the painting according to the object's angle.
GKViewModeStyleColorType GKViewModeStyle::getColorType | ( | ) | const |
Returns the color type.
GKColumn * GKViewModeStyle::getColumn | ( | ) | const |
Returns the column.
GKMultiCondition GKViewModeStyle::getCondition | ( | ) | const |
Returns the condition.
GKViewModeStyleRange * GKViewModeStyle::getDefaultRange | ( | ) | const |
returns the default range
GKColumn * GKViewModeStyle::getDividerColumn | ( | ) | const |
uint GKViewModeStyle::getFromScale | ( | ) | const |
return the from scale value
const QString & GKViewModeStyle::getInternalName | ( | ) | const |
internal name of this style... there are functions that require some styles and they use this attribute to find the style (since the name is user editable and the ID depends of the moment of creation). It's a good idea to set a unique value for this field (among all the other styles).
uint GKViewModeStyle::getLabelDecimalPlaces | ( | ) | const |
When drawing numeric labels, the precision.
uint GKViewModeStyle::getLabelRoundingToZeroPlaces | ( | ) | const |
When drawing numeric labels, the precision.
double GKViewModeStyle::getMaxNormalizer | ( | ) | const |
Gets the max normalizer.
GKViewModeStyleRange * GKViewModeStyle::getRange | ( | const QString & | value | ) | const |
returns the range for this value
GKViewModeStyleRange * GKViewModeStyle::getRange | ( | double | from, |
double | to = 0.0 |
||
) | const |
returns the range for a value (from and to equal to the range values). For discrete variables the "to" parameter is not use.
GKViewModeStyleRange * GKViewModeStyle::getRange | ( | GKObject * | obj, |
const GKModelConnection * | modelConn, | ||
const GKContext & | context | ||
) |
returns the range for this value
const QList< GKViewModeStyleRange * > & GKViewModeStyle::getRanges | ( | ) | const |
returns all ranges
QMap< int, GKViewModeStyleRange * > GKViewModeStyle::getRangesForStackedBandsColumns | ( | GKObject * | obj, |
const GKModelConnection * | modelConn, | ||
const GKContext & | context | ||
) |
returns the range for the value of each of the Diagram Columns (if any)
GKViewModeStyleType GKViewModeStyle::getStyleType | ( | ) | const |
Returns the style type.
uint GKViewModeStyle::getToScale | ( | ) | const |
return the to scale value
GKType * GKViewModeStyle::getTypeOwner | ( | ) | const |
Returns the type.
GK::SizeUnits GKViewModeStyle::getUnits | ( | ) | const |
Return the units.
GKViewModeStyleVariableType GKViewModeStyle::getVariableType | ( | ) | const |
Returns the variable type.
bool GKViewModeStyle::isScaleDependand | ( | ) | const |
returns whether the view mode style visibility depends of scale or not
bool GKViewModeStyle::matchCondition | ( | GKObject * | obj, |
const GKModelConnection * | modelConn, | ||
const GKContext & | context = GKContext::anyContext |
||
) |
Returns true if the object fits the condition.
void GKViewModeStyle::removeAllRanges | ( | ) |
removes all ranges
void GKViewModeStyle::removeRange | ( | GKViewModeStyleRange * | ) |
Removes the specified range.
void GKViewModeStyle::setColorType | ( | GKViewModeStyleColorType | aType | ) |
Sets the color type.
void GKViewModeStyle::setCondition | ( | GKMultiCondition | cond | ) |
Sets a condition to filter objects.
void GKViewModeStyle::setDefaultRange | ( | GKViewModeStyleRange * | ) |
sets the default range
void GKViewModeStyle::setDividerColumn | ( | GKColumn * | acol | ) |
Set a column that will normalize the values of the style column (dividing by). If setUseNormalizing(True) is set then we will normalize the value by the maximum value in all the objects. If setUseNormalizing(False) we will take the object value.
void GKViewModeStyle::setDoRotate | ( | bool | rotate | ) |
See doRotate.
void GKViewModeStyle::setDrawScale | ( | uint | , |
uint | |||
) |
Sets the drawing scale.
void GKViewModeStyle::setInternalName | ( | const QString & | ) |
internal name of this style... there are functions that require some styles and they use this attribute to find the style (since the name is user editable and the ID depends of the moment of creation). It's a good idea to set a unique value for this field (among all the other styles).
void GKViewModeStyle::setLabelDecimalPlaces | ( | uint | value | ) |
When drawing numeric labels, the precision.
void GKViewModeStyle::setLabelRoundingToZeroPlaces | ( | uint | value | ) |
When drawing numeric labels, the precision.
void GKViewModeStyle::setMaxNormalizer | ( | double | value | ) |
Sets the max normalizer.
void GKViewModeStyle::setScaleDependand | ( | bool | ) |
sets whether the view mode style visibility depends of scale or not
void GKViewModeStyle::setShowLabelAsPercentage | ( | bool | enabled | ) |
Sets the label to be shown as percentage
void GKViewModeStyle::setStyleType | ( | GKViewModeStyleType | ) |
Sets the style type.
void GKViewModeStyle::setUnits | ( | const GK::SizeUnits & | ) |
Sets the units.
void GKViewModeStyle::setUseNormalizing | ( | bool | normalize | ) |
void GKViewModeStyle::setVariableType | ( | GKViewModeStyleVariableType | ) |
Sets the variable type.
bool GKViewModeStyle::showLabelAsPercentage | ( | ) | const |
Gets whether the label is set to be shown as percentage
void GKViewModeStyle::sortRanges | ( | ) |
Sort ranges by from value.
bool GKViewModeStyle::useMaxNormalizing | ( | ) | const |
bool GKViewModeStyle::usesColumn | ( | const GKColumn * | ) | const |
Returns true if the column is used in this style (or any of its ranges).
bool GKViewModeStyle::visibleAtThisScale | ( | uint | ) | const |
returns if the style is visible at a specified scale value