Navigation
API > API/Runtime > API/Runtime/CADKernel > API/Runtime/CADKernel/Core
References
| Module | CADKernel |
| Header | /Engine/Source/Runtime/Datasmith/CADKernel/Base/Public/Core/Database.h |
| Include | #include "Core/Database.h" |
Syntax
class FDatabase
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< TSharedPtr< FEntity > > | ArchiveEntities | Array (use as a Map |
|
| TArray< TArray< FEntity ** > > | ArchiveIdToWaitingPointers | ||
| TArray< TArray< TSharedPtr< FEntity > * > > | ArchiveIdToWaitingSharedPointers | Array (use as a Map |
|
| TArray< TArray< TWeakPtr< FEntity > * > > | ArchiveIdToWaitingWeakPointers | ||
| TArray< FIdent > | AvailableIdents | Recycling of the Id to avoid fragmented idents | |
| bool | bForceSpawning | ||
| bool | bIsRecursiveSerialization | ||
| TArray< TSharedPtr< FEntity > > | DatabaseEntities | Array (use as a Map |
|
| TSet< FIdent > | EntitiesToBeSerialized | Dedicated to SerializeSelection. Set of entity Ids needed to be saved | |
| uint32 | EntityCount | ||
| TSharedPtr< FModel > | Model | Root Geometry Entity node | |
| TQueue< FIdent > | NotYetSerialized | Dedicated to SerializeSelection. Queue of entity Ids waiting to be saved |
Constructors
| Type | Name | Description | |
|---|---|---|---|
FDatabase () |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddEntity
(
TSharedPtr< FEntity > Entity |
All Entities are saved in the session map that allows to retrieve them according to their Id This process is automatically done during the entity creation (FEntity::MakeShared) | |
| void | AddEntityFromArchive
(
TSharedPtr< FEntity > Entity |
During the load of an FArchive: All Entities are saved in the session map (like Entity created in runtime) that allows to retrieve them according to their Id. | |
| void | AddEntityToSave
(
FIdent EntityId |
Dedicated method for SerializeSelection | |
| void | CadEntitiesSelection
(
const TArray< TSharedPtr< FEntity > >& Entities, |
||
| void | Method to clean entity descriptions i.e. removing invalid references (like unsaved linked edges of an edge because the neighbor topological face is not saved) | ||
| void | Deserialize
(
FCADKernelArchive& Ar |
||
| void | Empty () |
Delete all the entities of the session | |
| void | ExpandSelection
(
const TArray< TSharedPtr< FEntity > >& Entities, |
||
| void | ExpandSelection
(
const TArray< TSharedPtr< FEntity > >& Entities, |
||
| void | ExpandSelection
(
TSharedPtr< FEntity > Entities, |
||
| void | GetEntities
(
const TArray< FIdent >& ids, |
||
| void | GetEntities
(
const TArray< FIdent >& ids, |
||
| void | GetEntitiesOfType
(
EEntity Type, |
||
| void | GetEntitiesOfTypes
(
const TSet< EEntity >& Types, |
||
| TSharedPtr< FEntity > | ========================================================================================================================================================================================================= | ||
| TSharedPtr< FEntity > | GetFirstEntityOfType
(
EEntity Type |
||
| FModel & | GetModel () |
||
| TSharedPtr< FModel > | |||
| void | GetTopologicalEntities
(
const TArray< FIdent >& ids, |
||
| void | GetTopologicalShapeEntities
(
const TArray< FIdent >& ids, |
||
| void | MeshEntitiesSelection
(
const TArray< TSharedPtr< FEntity > >& Entities, |
||
| void | RemoveEntity
(
FIdent idEntity |
Remove from database | |
| void | RemoveEntity
(
FEntity& Entity |
||
| void | Serialize
(
FCADKernelArchive& Ar |
All entities of the session are saved in the archive | |
| void | SerializeSelection
(
FCADKernelArchive& Ar, |
Recursive serialization of a selection. | |
| void | SetReferencedEntityOrAddToWaitingList
(
FIdent ArchiveId, |
Find TSharedPtr |
|
| void | SetReferencedEntityOrAddToWaitingList
(
FIdent ArchiveId, |
Find TWeakPtr |
|
| void | SetReferencedEntityOrAddToWaitingList
(
FIdent ArchiveId, |
Find FEntity* associate to an Archive Id If the Entity is not yet created, add the entity in the waiting list | |
| uint32 | SpawnEntityIdent
(
FEntity& SelectedEntity, |
||
| uint32 | SpawnEntityIdents
(
const TArray< TSharedPtr< FEntity > >& SelectedEntities, |
||
| uint32 | SpawnEntityIdents
(
const TArray< FEntity* >& SelectedEntities, |
||
| void | TopologicalEntitiesSelection
(
const TArray< TSharedPtr< FEntity > >& Entities, |