Navigation
API > API/Runtime > API/Runtime/CADKernel > API/Runtime/CADKernel/Core
References
| Module | CADKernel |
| Header | /Engine/Source/Runtime/Datasmith/CADKernel/Base/Public/Core/Session.h |
| Include | #include "Core/Session.h" |
Syntax
class FSession
Variables
Constructors
| Type | Name | Description | |
|---|---|---|---|
FSession
(
double InGeometricTolerance |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddDatabase
(
const TArray< uint8 >& InRawData |
Add a database defined by a RawData in the current session database Entity ID is set for all loaded entities | |
| void | Clear () |
||
| FDatabase & | GetDatabase () |
||
| double | |||
| int32 | |||
| FModel & | GetModel () |
||
| TSharedPtr< FModel > | |||
| void | LoadDatabase
(
const TCHAR* FilePath |
Load and add a database in the current session database Entity ID is set for all loaded entities | |
| int32 | NewHostId () |
||
| void | SaveDatabase
(
const TCHAR* FileName, |
Save a selection and all the dependencies as a FAchive in a file Mandatory: all entity have to have a defined ID Use SpawnEntityIdent if needed | |
| void | SaveDatabase
(
const TCHAR* FileName, |
Save a selection and all the dependencies as a FAchive in a file Mandatory: all entity have to have a defined ID Use SpawnEntityIdent if needed | |
| void | SaveDatabase
(
const TCHAR* FileName, |
Save a selection and all the dependencies as a FAchive in a file Mandatory: all entity have to have a defined ID Use SpawnEntityIdent if needed | |
| void | SaveDatabase
(
const TCHAR* FileName, |
Save a selection and all the dependencies as a FAchive in a file Mandatory: all entity have to have a defined ID Use SpawnEntityIdent if needed | |
| void | SaveDatabase
(
const TCHAR* FilePath |
Save the database as a FAchive in a file Mandatory: all entity have to have a defined ID Use SpawnEntityIdent if needed | |
| void | Serialize
(
FCADKernelArchive& Ar |
||
| void | SetFirstNewHostId
(
int32 StartHostId |
For stitching purpose, stitching can generate new body needing a host id. | |
| void | SetGeometricTolerance
(
double NewTolerance |
Tolerance must not be modified as soon as a geometric entity has been build. | |
| uint32 | SpawnEntityIdent
(
FEntity& SelectedEntity, |
To be consistent, all entity to save have to had an Id. | |
| uint32 | SpawnEntityIdents
(
const TArray< TSharedPtr< FEntity > >& SelectedEntities, |
||
| uint32 | SpawnEntityIdents
(
const TArray< FEntity* >& SelectedEntities, |