#include <Database.h>
|
| | FDatabase () |
| |
| FModel & | GetModel () |
| |
| TSharedPtr< FModel > | GetModelAsShared () |
| |
| void | RemoveEntity (FIdent idEntity) |
| |
| void | RemoveEntity (FEntity &Entity) |
| |
| void | SerializeSelection (FCADKernelArchive &Ar, const TArray< FIdent > &SelectionIds) |
| |
| void | Serialize (FCADKernelArchive &Ar) |
| |
| void | Deserialize (FCADKernelArchive &Ar) |
| |
| void | CleanArchiveEntities () |
| |
| void | Empty () |
| |
| void | AddEntity (TSharedPtr< FEntity > Entity) |
| |
| void | AddEntityFromArchive (TSharedPtr< FEntity >Entity) |
| |
| void | SetReferencedEntityOrAddToWaitingList (FIdent ArchiveId, TSharedPtr< FEntity > &Entity) |
| |
| void | SetReferencedEntityOrAddToWaitingList (FIdent ArchiveId, TWeakPtr< FEntity > &Entity) |
| |
| void | SetReferencedEntityOrAddToWaitingList (FIdent ArchiveId, FEntity **Entity) |
| |
| uint32 | SpawnEntityIdents (const TArray< TSharedPtr< FEntity > > &SelectedEntities, bool bForceSpawning=false) |
| |
| uint32 | SpawnEntityIdents (const TArray< FEntity * > &SelectedEntities, bool bForceSpawning=false) |
| |
| uint32 | SpawnEntityIdent (FEntity &SelectedEntity, bool bForceSpawning=false) |
| |
| TSharedPtr< FEntity > | GetEntity (FIdent id) const |
| |
| void | GetEntities (const TArray< FIdent > &ids, TArray< TSharedPtr< FEntity > > &Entities) const |
| |
| void | GetEntities (const TArray< FIdent > &ids, TArray< FEntity * > &Entities) const |
| |
| void | GetTopologicalEntities (const TArray< FIdent > &ids, TArray< FTopologicalEntity * > &Entities) const |
| |
| void | GetTopologicalShapeEntities (const TArray< FIdent > &ids, TArray< FTopologicalShapeEntity * > &Entities) const |
| |
| void | GetEntitiesOfType (EEntity Type, TArray< TSharedPtr< FEntity > > &OutEntities) const |
| |
| void | GetEntitiesOfTypes (const TSet< EEntity > &Types, TArray< TSharedPtr< FEntity > > &OutEntities) const |
| |
| void | ExpandSelection (TSharedPtr< FEntity > Entities, const TSet< EEntity > &Filter, TSet< TSharedPtr< FEntity > > &OutSelection) const |
| |
| void | ExpandSelection (const TArray< TSharedPtr< FEntity > > &Entities, const TSet< EEntity > &Filter, TSet< TSharedPtr< FEntity > > &OutSelection) const |
| |
| void | ExpandSelection (const TArray< TSharedPtr< FEntity > > &Entities, const TSet< EEntity > &Filter, TArray< TSharedPtr< FEntity > > &OutSelection) const |
| |
| void | TopologicalEntitiesSelection (const TArray< TSharedPtr< FEntity > > &Entities, TArray< TSharedPtr< FTopologicalEntity > > &OutTopoEntities, bool bFindSurfaces, bool bFindEdges, bool bFindVertices) const |
| |
| void | CadEntitiesSelection (const TArray< TSharedPtr< FEntity > > &Entities, TArray< TSharedPtr< FEntity > > &OutCadEntities) const |
| |
| void | MeshEntitiesSelection (const TArray< TSharedPtr< FEntity > > &Entities, TArray< TSharedPtr< FEntity > > &OutMeshEntities) const |
| |
| TSharedPtr< FEntity > | GetFirstEntityOfType (EEntity Type) const |
| |
◆ FDatabase()
| UE::CADKernel::FDatabase::FDatabase |
( |
| ) |
|
◆ AddEntity()
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)
◆ AddEntityFromArchive()
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. Archive's entities are also saved in a temporary map for the load purpose (c.f. FEntity::Serialize) This process is automatically done during the entity creation (FEntity::MakeShared)
◆ AddEntityToSave()
| void UE::CADKernel::FDatabase::AddEntityToSave |
( |
FIdent |
EntityId | ) |
|
|
inlineprotected |
Dedicated method for SerializeSelection
◆ CadEntitiesSelection()
◆ CleanArchiveEntities()
| void UE::CADKernel::FDatabase::CleanArchiveEntities |
( |
| ) |
|
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)
◆ Deserialize()
◆ Empty()
| void UE::CADKernel::FDatabase::Empty |
( |
| ) |
|
Delete all the entities of the session
◆ ExpandSelection() [1/3]
◆ ExpandSelection() [2/3]
◆ ExpandSelection() [3/3]
◆ GetEntities() [1/2]
◆ GetEntities() [2/2]
◆ GetEntitiesOfType()
◆ GetEntitiesOfTypes()
◆ GetEntity()
◆ GetFirstEntityOfType()
◆ GetModel()
| FModel & UE::CADKernel::FDatabase::GetModel |
( |
| ) |
|
|
inline |
◆ GetModelAsShared()
◆ GetTopologicalEntities()
◆ GetTopologicalShapeEntities()
◆ MeshEntitiesSelection()
◆ RemoveEntity() [1/2]
| void UE::CADKernel::FDatabase::RemoveEntity |
( |
FEntity & |
Entity | ) |
|
◆ RemoveEntity() [2/2]
| void UE::CADKernel::FDatabase::RemoveEntity |
( |
FIdent |
idEntity | ) |
|
◆ Serialize()
All entities of the session are saved in the archive
◆ SerializeSelection()
Recursive serialization of a selection. The selection and all the dependencies are serialized. All entities that need to be saved (added in EntitiesToBeSerialized set) for the completeness of the archive are added to the queue of entities to Serialized (NotYetSerialized).
◆ SetReferencedEntityOrAddToWaitingList() [1/3]
| void UE::CADKernel::FDatabase::SetReferencedEntityOrAddToWaitingList |
( |
FIdent |
ArchiveId, |
|
|
FEntity ** |
Entity |
|
) |
| |
|
inline |
Find FEntity* associate to an Archive Id If the Entity is not yet created, add the entity in the waiting list
◆ SetReferencedEntityOrAddToWaitingList() [2/3]
Find TSharedPtr<FEntity> associate to an Archive Id If the Entity is not yet created, add the entity in the waiting list
◆ SetReferencedEntityOrAddToWaitingList() [3/3]
Find TWeakPtr<FEntity> associate to an Archive Id If the Entity is not yet created, add the entity in the waiting list
◆ SpawnEntityIdent()
◆ SpawnEntityIdents() [1/2]
◆ SpawnEntityIdents() [2/2]
◆ TopologicalEntitiesSelection()
◆ FCADKernelArchive
◆ FEntity
◆ FSession
◆ SharedPointerInternals::TIntrusiveReferenceController
◆ ArchiveEntities
Array (use as a Map<FIdent, TSharedPtr<FEntity>>) of all the entities of an archive Each Entity is at the index of AchiveId in the array
◆ ArchiveIdToWaitingPointers
◆ ArchiveIdToWaitingSharedPointers
Array (use as a Map<FIdent, TArray<TSharedPtr<FEntity>*>>) Some Entity reference an other Entities (with a TSharedPtr). If at the deserialization of the Entity, the referenced entity is not yet created, the pointer of the TSharedPtr of the referenced entity is added in the array associated to the ArchiveId of the referenced entity.
E.g. Edge |- ArchiveId = 5 |- Vertex1 (ArchiveId = 6)
IdToWaitingPointers[ArchiveId].Add(&Edge.Vertex)
◆ ArchiveIdToWaitingWeakPointers
◆ AvailableIdents
Recycling of the Id to avoid fragmented idents
◆ bForceSpawning
| bool UE::CADKernel::FDatabase::bForceSpawning = false |
|
mutableprotected |
◆ bIsRecursiveSerialization
| bool UE::CADKernel::FDatabase::bIsRecursiveSerialization = false |
|
protected |
◆ DatabaseEntities
Array (use as a Map<FIdent, TSharedPtr<FEntity>>) of all the entities create during the session Each Entity.Id is the index of the entity in the array
◆ EntitiesToBeSerialized
| TSet<FIdent> UE::CADKernel::FDatabase::EntitiesToBeSerialized |
|
protected |
Dedicated to SerializeSelection. Set of entity Ids needed to be saved
◆ EntityCount
| uint32 UE::CADKernel::FDatabase::EntityCount |
|
protected |
◆ Model
◆ NotYetSerialized
Dedicated to SerializeSelection. Queue of entity Ids waiting to be saved
The documentation for this class was generated from the following files:
- Engine/Source/Runtime/Datasmith/CADKernel/Base/Public/Core/Database.h
- Engine/Source/Runtime/Datasmith/CADKernel/Base/Private/Core/Database.cpp