COLNEO Pro 1.2
Loading...
Searching...
No Matches
gom

Data Structures

Filters

class  GeometryFilterOptions
class  InterpolationFilterOptions
struct  ObjectFilterOptions
class  PropertyFilterOptions
class  PropertyTypeFilter
class  RelationFilterOptions

Options

class  ClashOptions
class  ClearanceOptions
class  CmSyncOptions
class  CoincidenceOptions
class  ContactOptions
class  CopyObjectOptions
class  CsvReaderOptions
class  DownloadOptions
class  GETParams
class  InclusionOptions
class  IntersectionOptions
class  ModelUpdateOptions
class  NodeOptions
struct  PropertyValueGrouping
struct  PropertyValueGroupingOptions
class  RelationOptions
class  RelationRightObjectsOptions
class  SetOptions
class  SimulationOptions
struct  SmartSetOptions
class  Sort
struct  StyleScheme
class  UploadOptions

Other Classes

class  PropertyTypeKey
struct  QualifiedPropertyTypeKey

Enumerations

enum  ChangeFlag : uint8_t { Properties = 1 << 0 , Structure = 1 << 1 , Geometry = 1 << 2 , All = Properties | Structure | Geometry }
enum class  eDataType {
}
enum  eObjectStatus {
  None = 0 , Visible = 1 << 0 , Selected = 1 << 1 , Wired = 1 << 2 ,
  Locked = 1 << 3
}
enum class  FormulaType
enum class  PersistenceStatus : uint32_t {
}
enum class  PropertyTypeAddResult
enum  PropertyTypeFlag
enum class  TreeModelType : uint8_t

Functions

QString changeFlagsToString (ChangeFlags mflags, bool translated, QChar &sep=QChar('|'))
QString contentTypeToString (TreeModelType type)
QString formatVariantByDataType (QVariant &value, eDataType dataType, QLocale &locale, char format='g', int precision=15)
FormulaType formulaTypeFromString (QString &typeStr)
QString formulaTypeToString (FormulaType f)
QList< eDataType > & getAvailableDataTypes ()
QString gomObjectTypeToTypeName (QString &objectType)
bool isRelationBased (FormulaType type)
QString persistenceStatusToString (PersistenceStatus status, bool translated)
QStringList propertyTypeKeysToStringList (QList< PropertyTypeKey > &keys)
bool setVariantFromString (QVariant &variant, QString &valueAsString, eDataType dataType, QLocale &locale)
QString typeNameToGomObjectType (QString &typeName)

Detailed Description

Generic Object Model.

Since
1.0, Jan 2025, sl

Enumeration Type Documentation

◆ ChangeFlag

enum ChangeFlag : uint8_t

Flags indicating the types of modifications an object has undergone. These flags can be combined using bitwise OR to represent multiple changes simultaneously.

gom.h

Since
1.0, Jan 2026, sl
Enumerator
Properties 

Simple property changes (e.g. values).

Structure 

Structural changes (e.g. hierarchy).

Geometry 

Geometric changes (e.g. mesh).

◆ eDataType

enum class eDataType
strong

Available data types.

PropertyTypeKey.h

Since
1.0, Jan 2025, sl
Enumerator
xsString 

String data type.

xsLong 

Long integer data type (64 bit).

xsInt 

Integer data type (32 bit).

xsDouble 

Double precision floating point data type (64 bit).

xsFloat 

Single precision floating point data type (32 bit).

xsBoolean 

Boolean data type (true/false).

xsDate 

Date data type (YYYY-MM-DD).

xsDateTime 

Date with time data type (ISO 8601).

xsID 

ID data type.

xsIDREF 

ID Reference data type.

xsAnyURI 

Any URI data type.

xsObject 

Non-XML Schema data type, handles JSON objects/arrays.

◆ eObjectStatus

Object status.

Since
1.0, Jan 2025, sl
Enumerator
None 

No status.

Visible 

Object is visible.

Selected 

Object is selected.

Wired 

Object is shown in wireframe mode.

Locked 

Object is locked and cannot be modified.

◆ FormulaType

enum class FormulaType
strong

gom.h

Since
1.1, May 2026, sl

◆ PersistenceStatus

enum class PersistenceStatus : uint32_t
strong

gom.h

Since
1.0, Jan 2026, sl
Note
: do not change order of value, see isDirty()
Enumerator
Saved 

clean

Restored 

clean

Changed 

dirty

Imported 

dirty // todo: check if needed

New 

dirty

◆ PropertyTypeAddResult

enum class PropertyTypeAddResult
strong

gom.enums.h

◆ PropertyTypeFlag

Flags for property types, stored at key. Avoids hash look-up in property type store.

Since
1.1, May 2026, sl

◆ TreeModelType

enum class TreeModelType : uint8_t
strong

Identifies type of a tree model.

Could be Objects, SmartSets or Viewpoints.

Since
1.0, Jan 2026, sl

Function Documentation

◆ changeFlagsToString()

QString changeFlagsToString ( ChangeFlags mflags,
bool translated,
QChar & sep = QChar('|') )

Converts change flags to a string.

Parameters
mflagscombination of ChangeFlag
translated
sepSeperating character (combinations)
Since
1.0, Jan 2026, sl

◆ contentTypeToString()

QString contentTypeToString ( TreeModelType type)

Converts element of enum TreeModelType to a string.

Since
1.0, Jan 2026, sl

◆ formatVariantByDataType()

QString formatVariantByDataType ( QVariant & value,
eDataType dataType,
QLocale & locale,
char format = 'g',
int precision = 15 )

Replacement for the build-in QVariant::toString() method which does not take locale settings into account.

Parameters
value
dataType
locale
format'f' or 'g'
precision
Returns
Since
1.0, Jun 2025, sl

◆ formulaTypeFromString()

FormulaType formulaTypeFromString ( QString & typeStr)

Converts enum to string.

Since
1.1, May 2026, sl

◆ formulaTypeToString()

QString formulaTypeToString ( FormulaType f)

Converts enum to string.

Since
1.1, May 2026, sl

◆ getAvailableDataTypes()

QList< eDataType > & getAvailableDataTypes ( )

Get available xml datatypes

◆ gomObjectTypeToTypeName()

QString gomObjectTypeToTypeName ( QString & objectType)

Get CN pro type name / class name from GOM object type

Parameters
objectTypeGOM object type key/name

◆ isRelationBased()

bool isRelationBased ( FormulaType type)

Checks if formula type is relation based.

Since
1.1, Jun 2026, sl

◆ persistenceStatusToString()

QString persistenceStatusToString ( PersistenceStatus status,
bool translated )

Converts persistence status to a string.

Parameters
status
translated
Since
1.0, Jan 2026, sl

◆ propertyTypeKeysToStringList()

QStringList propertyTypeKeysToStringList ( QList< PropertyTypeKey > & keys)

Helper method to convert a list of property type keys to it's string represenation.

Since
1.1, May 2026, sl

◆ setVariantFromString()

bool setVariantFromString ( QVariant & variant,
QString & valueAsString,
eDataType dataType,
QLocale & locale )

Ensures that the correct datatype is wrapped in a QVariant.

Import for performance!

Parameters
variant
valueAsString
dataType
locale
Returns
Since
1.0, Jun 2025, sl

◆ typeNameToGomObjectType()

QString typeNameToGomObjectType ( QString & typeName)

Get GOM type from object type name / classname