Navigation
API > API/Runtime > API/Runtime/CADKernel
| Name | FDatabase |
| Type | class |
| Header File | /Engine/Source/Runtime/Datasmith/CADKernel/Base/Public/Core/Database.h |
| Include Path | #include "Core/Database.h" |
Syntax
class FDatabase
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FDatabase() |
Core/Database.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
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) | Core/Database.h | |
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. | Core/Database.h | |
void CadEntitiesSelection
(
const TArray< TSharedPtr< FEntity > >& Entities, |
Core/Database.h | ||
void 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) | Core/Database.h | |
void Deserialize
(
FCADKernelArchive& Ar |
Core/Database.h | ||
void Empty() |
Delete all the entities of the session | Core/Database.h | |
void ExpandSelection
(
const TArray< TSharedPtr< FEntity > >& Entities, |
Core/Database.h | ||
void ExpandSelection
(
const TArray< TSharedPtr< FEntity > >& Entities, |
Core/Database.h | ||
void ExpandSelection
(
TSharedPtr< FEntity > Entities, |
Core/Database.h | ||
void GetEntities
(
const TArray< FIdent >& ids, |
Core/Database.h | ||
void GetEntities
(
const TArray< FIdent >& ids, |
Core/Database.h | ||
void GetEntitiesOfType
(
EEntity Type, |
Core/Database.h | ||
void GetEntitiesOfTypes
(
const TSet< EEntity >& Types, |
Core/Database.h | ||
TSharedPtr< FEntity > GetEntity
(
FIdent id |
========================================================================================================================================================================================================= | Core/Database.h | |
TSharedPtr< FEntity > GetFirstEntityOfType
(
EEntity Type |
Core/Database.h | ||
FModel & GetModel() |
Core/Database.h | ||
TSharedPtr< FModel > GetModelAsShared() |
Core/Database.h | ||
void GetTopologicalEntities
(
const TArray< FIdent >& ids, |
Core/Database.h | ||
void GetTopologicalShapeEntities
(
const TArray< FIdent >& ids, |
Core/Database.h | ||
void MeshEntitiesSelection
(
const TArray< TSharedPtr< FEntity > >& Entities, |
Core/Database.h | ||
void RemoveEntity
(
FIdent idEntity |
Remove from database | Core/Database.h | |
void RemoveEntity
(
FEntity& Entity |
Core/Database.h | ||
void Serialize
(
FCADKernelArchive& Ar |
All entities of the session are saved in the archive | Core/Database.h | |
void SerializeSelection
(
FCADKernelArchive& Ar, |
Recursive serialization of a selection. | Core/Database.h | |
void SetReferencedEntityOrAddToWaitingList
(
FIdent ArchiveId, |
Find TSharedPtr |
Core/Database.h | |
void SetReferencedEntityOrAddToWaitingList
(
FIdent ArchiveId, |
Find TWeakPtr |
Core/Database.h | |
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 | Core/Database.h | |
uint32 SpawnEntityIdent
(
FEntity& SelectedEntity, |
Core/Database.h | ||
uint32 SpawnEntityIdents
(
const TArray< TSharedPtr< FEntity > >& SelectedEntities, |
Core/Database.h | ||
uint32 SpawnEntityIdents
(
const TArray< FEntity* >& SelectedEntities, |
Core/Database.h | ||
void TopologicalEntitiesSelection
(
const TArray< TSharedPtr< FEntity > >& Entities, |
Core/Database.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void AddEntityToSave
(
FIdent EntityId |
Dedicated method for SerializeSelection | Core/Database.h |