Navigation
API > API/Runtime > API/Runtime/CADKernel
| Name | FSession |
| Type | class |
| Header File | /Engine/Source/Runtime/Datasmith/CADKernel/Base/Public/Core/Session.h |
| Include Path | #include "Core/Session.h" |
Syntax
class FSession
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FSession
(
double InGeometricTolerance |
Core/Session.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| FCADKernelArchive | friend | Core/Session.h | ||
| FEntity | friend | Core/Session.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
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 | Core/Session.h | |
void Clear() |
Core/Session.h | ||
FDatabase & GetDatabase() |
Core/Session.h | ||
double GetGeometricTolerance() |
Core/Session.h | ||
int32 GetLastHostId() |
Core/Session.h | ||
FModel & GetModel() |
Core/Session.h | ||
TSharedPtr< FModel > GetModelAsShared() |
Core/Session.h | ||
bool LoadDatabase
(
const TArray< uint8 >& Bytes |
Core/Session.h | ||
bool LoadDatabase
(
const TCHAR* FilePath |
Load and add a database in the current session database Entity ID is set for all loaded entities | Core/Session.h | |
int32 NewHostId() |
Core/Session.h | ||
bool SaveDatabase
(
TArray< uint8 >& Bytes |
Core/Session.h | ||
bool 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 | Core/Session.h | |
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 | Core/Session.h | |
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 | Core/Session.h | |
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 | Core/Session.h | |
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 | Core/Session.h | |
void Serialize
(
FCADKernelArchive& Ar |
Core/Session.h | ||
void SetFirstNewHostId
(
int32 StartHostId |
For stitching purpose, stitching can generate new body needing a host id. | Core/Session.h | |
void SetGeometricTolerance
(
double NewTolerance |
Tolerance must not be modified as soon as a geometric entity has been build. | Core/Session.h | |
uint32 SpawnEntityIdent
(
FEntity& SelectedEntity, |
To be consistent, all entity to save have to had an Id. | Core/Session.h | |
uint32 SpawnEntityIdents
(
const TArray< TSharedPtr< FEntity > >& SelectedEntities, |
Core/Session.h | ||
uint32 SpawnEntityIdents
(
const TArray< FEntity* >& SelectedEntities, |
Core/Session.h |