CFx SDK Documentation
2020SP3
|
#include <daiModel.h>
Public Member Functions | |
ODRX_DECLARE_MEMBERS (Model) | |
Model () | |
void | initialize (const OdAnsiString &schemaName) |
void | initialize (OdDAI::SchemaPtr schema) |
OdAnsiString | name () const |
Repository * | repository () const |
void | RenameModel (const OdAnsiString &modelName) |
const OdDAI::Entity * | getEntityDefinition (const char *entityName) const |
const OdDAI::SchemaPtr | underlyingSchema () const |
const OdAnsiString & | underlyingSchemaName () const |
OdDAIObjectId | getEntityInstance (const OdDbHandle &h) |
EntityInstancePtr | createEntityInstance (const OdDAI::EntityPtr &entityDef) |
EntityInstancePtr | createEntityInstance (const char *entityTypeName) |
OdDAIObjectId | appendEntityInstance (EntityInstancePtr pInst) |
OdDAIObjectId | insertEntityInstance (EntityInstancePtr pInstanceToInsert, const OdDbHandle &insertHandle) |
OdDAI::InstanceIteratorPtr | newIterator () |
OdDAIObjectIdAggr * | getEntityExtent (EntityPtr entityDef) const |
OdDAIObjectIds | getEntityExtent (const char *entityName) const |
SdaiAccessMode | mode () const |
void | closeModel () |
void | closeModel () const |
void | PromoteModelToReadWrite () const |
Public Member Functions inherited from OdDAI::SessionInstance | |
ODRX_DECLARE_MEMBERS (SessionInstance) | |
Public Member Functions inherited from OdRxObject | |
ODRX_HEAP_OPERATORS () | |
OdRxObject () | |
virtual | ~OdRxObject () |
virtual OdRxObject * | queryX (const OdRxClass *pClass) const |
virtual OdRxObject * | x (const OdRxClass *pClass) const |
virtual OdRxClass * | isA () const |
virtual void | addRef ()=0 |
virtual void | release ()=0 |
virtual long | numRefs () const |
bool | isKindOf (const OdRxClass *pClass) const |
virtual OdRxObjectPtr | clone () const |
virtual void | copyFrom (const OdRxObject *pSource) |
virtual OdRx::Ordering | comparedTo (const OdRxObject *pOther) const |
virtual bool | isEqualTo (const OdRxObject *pOther) const |
Protected Member Functions | |
OdResult | in (OdDAI::OdSpfFilerBasePtr &rdFiler) |
void | out (OdDAI::OdSpfFilerBasePtr &wrFiler) |
void | name (const OdAnsiString &name) |
void | repository (Repository *repo) |
ModelContentsPtr | createModelContents (const OdAnsiString &schemaName) |
OdDAI::SchemaPtr | getSchemaDef (const OdAnsiString &schemaName) |
virtual void | subInitialize ()=0 |
Protected Attributes | |
OdAnsiString | m_name |
SchemaPtr | m_underlyingSchema |
SchemaModulePtr | m_schemaModule |
ModelContentsPtr | m_contents |
Repository * | m_repository |
Friends | |
class | Repository |
Additional Inherited Members | |
Static Public Member Functions inherited from OdRxObject | |
static OdRxObjectPtr | cast (const OdRxObject *pointer) |
static OdRxClass * | desc () |
A class that implements functionality for working with models.
Definition at line 62 of file daiModel.h.
OdDAI::Model::Model | ( | ) |
OdDAIObjectId OdDAI::Model::appendEntityInstance | ( | EntityInstancePtr | pInst | ) |
Appends a newly created entity instance to the model.
pInst | [in] A smart pointer to the entity instance to be appended. |
void OdDAI::Model::closeModel | ( | ) |
Function shall end access to the specified SDAI-model.
void OdDAI::Model::closeModel | ( | ) | const |
Function shall end access to the specified SDAI-model.
EntityInstancePtr OdDAI::Model::createEntityInstance | ( | const char * | entityTypeName | ) |
Creates a new instance of a specified entity type.
entityTypeName | [in] A string that contains the type name of the new entity to be created. |
EntityInstancePtr OdDAI::Model::createEntityInstance | ( | const OdDAI::EntityPtr & | entityDef | ) |
Creates a new instance of a specified entity type.
entityDef | [in] entity definition that contains the type name of the new entity to be created. |
|
protected |
const OdDAI::Entity* OdDAI::Model::getEntityDefinition | ( | const char * | entityName | ) | const |
Retrieves an entity definition by its name.
entityName | [in] The name of an entity definition. |
OdDAIObjectIds OdDAI::Model::getEntityExtent | ( | const char * | entityName | ) | const |
Retrieves the collection of entities with the same type (entity's extent) as the entity with a specified name. The entity collection is represented with an array of OdDAI objects identifiers.
entityName | [in] An entity's name. |
OdDAIObjectIdAggr* OdDAI::Model::getEntityExtent | ( | EntityPtr | entityDef | ) | const |
Retrieves the collection of entity instances with entity type which is kind of entityName.
entityName | [in] An entity's name. |
Retrieves the collection of entity instances with entity type which is subtype of entityDef.
entityDef | [in] An smart pointer to entity definition. |
OdDAIObjectId OdDAI::Model::getEntityInstance | ( | const OdDbHandle & | h | ) |
Searches the entity in the model by its handle.
h | [in] A handle of the searched entity. |
|
protected |
|
protected |
Saves the model content and returns an IFC filer object that is created during the save operation.
wrFiler | [in] A smart pointer to an IFC filer object. |
void OdDAI::Model::initialize | ( | const OdAnsiString & | schemaName | ) |
Initializes the model object and creates a minimal model hierarchy based on a schema with the specified name.
ifcSchema | [in] A string that contains the schema's name. |
void OdDAI::Model::initialize | ( | OdDAI::SchemaPtr | schema | ) |
Initializes the model object and creates a minimal model hierarchy based on a schema with the specified name.
ifcSchema | [in] A string that contains the schema's name. |
pFiler | [in] A smart pointer to an IFC filer object that is created during the initialization operation. |
OdDAIObjectId OdDAI::Model::insertEntityInstance | ( | EntityInstancePtr | pInstanceToInsert, |
const OdDbHandle & | insertHandle | ||
) |
Inserts a newly created entity instance to the model.
pInstanceToInsert | [in] A smart pointer to the entity instance to be inserted. |
insertHandle | [in] A handle of the parent object where to insert the entity instance. |
SdaiAccessMode OdDAI::Model::mode | ( | ) | const |
Get access mode for an SDAI-model
|
inline |
Definition at line 89 of file daiModel.h.
|
inlineprotected |
Definition at line 244 of file daiModel.h.
OdDAI::InstanceIteratorPtr OdDAI::Model::newIterator | ( | ) |
Creates an iterator to get sequential access to all entities of the model.
OdDAI::Model::ODRX_DECLARE_MEMBERS | ( | Model | ) |
|
protected |
Saves the model content and returns an IFC filer object that is created during the save operation.
wrFiler | [in] A smart pointer to an IFC filer object. |
void OdDAI::Model::PromoteModelToReadWrite | ( | ) | const |
Function shall change the access mode of the specified SDAI-model from readonly to read-write.
void OdDAI::Model::RenameModel | ( | const OdAnsiString & | modelName | ) |
Function shall assign a new name to the specified SDAI-model.
modelName | [in] new name of SDAI-model. |
|
inline |
Definition at line 95 of file daiModel.h.
|
inlineprotected |
Definition at line 245 of file daiModel.h.
|
protectedpure virtual |
Implemented in OdIfc::OdIfcModel.
const OdDAI::SchemaPtr OdDAI::Model::underlyingSchema | ( | ) | const |
Retrieves the underlying schema definition of the model.
const OdAnsiString& OdDAI::Model::underlyingSchemaName | ( | ) | const |
Retrieves the name of the model's underlying schema.
|
friend |
Definition at line 259 of file daiModel.h.
|
protected |
Definition at line 255 of file daiModel.h.
|
protected |
Definition at line 252 of file daiModel.h.
|
protected |
Definition at line 256 of file daiModel.h.
|
protected |
Definition at line 254 of file daiModel.h.
|
protected |
Definition at line 253 of file daiModel.h.