Files
UnrealEngineUWP/Engine/Source/Developer/Datasmith/DatasmithExporter/Public/DatasmithSceneExporter.h
Marc Audy 11f5b21210 Merging //UE5/Release-Engine-Staging @ 13752110 to Main (//UE5/Main)
#rnx

[CL 13753156 by Marc Audy in ue5-main branch]
2020-06-23 18:40:00 -04:00

65 lines
1.9 KiB
C++

// Copyright Epic Games, Inc. All Rights Reserved.
#pragma once
#include "DatasmithTypes.h"
#include "IDatasmithSceneElements.h"
#include "DatasmithUtils.h"
#include "Math/Color.h"
#include "Templates/SharedPointer.h"
#include "Templates/UniquePtr.h"
class FDatasmithLogger;
class IDatasmithProgressManager;
class FDatasmithSceneExporterImpl;
/**
* This is the export for a DatasmithScene. Call PreExport, then Export to finish the export process.
*/
class DATASMITHEXPORTER_API FDatasmithSceneExporter
{
public:
FDatasmithSceneExporter();
~FDatasmithSceneExporter();
/**
* Indicates that we're starting the export process. Starts the export metrics.
*/
void PreExport();
/**
* Exports the entire scene.
* It will create the scene file as well as the resized textures (in case of resize is enabled).
*
* @param bCleanupUnusedElements Remove unused meshes, textures and materials before exporting
*/
void Export( TSharedRef< IDatasmithScene > DatasmithScene, bool bCleanupUnusedElements = true );
/** Resets all the settings on the scene */
void Reset();
/** Sets the progress manager for visual feedback on exporting */
void SetProgressManager( const TSharedPtr< IDatasmithProgressManager >& InProgressManager );
/** Sets the logger to store the summary of the export process */
void SetLogger( const TSharedPtr< FDatasmithLogger >& InLogger );
/** Sets the name of the scene to export. The resulting file and folder will use this name. */
void SetName(const TCHAR* InName);
/**
* Sets the output path to where this scene will be exported.
*/
void SetOutputPath(const TCHAR* InOutputPath);
const TCHAR* GetOutputPath() const;
/**
* Gets the path to the assets output folder. This is where we output the mesh files, textures, etc.
*/
const TCHAR* GetAssetsOutputPath() const;
private:
TUniquePtr< FDatasmithSceneExporterImpl > Impl;
};