Open 3D Engine Atom Gem API Reference 24.09.2
O3DE is an open-source, fully-featured, high-fidelity, modular 3D engine for building games and simulations, available to every industry.
ShaderManagementConsole::ShaderManagementConsoleDocument Class Reference

ShaderManagementConsoleDocument provides an API for modifying and saving document properties. More...

#include <ShaderManagementConsoleDocument.h>

Inherits AtomToolsFramework::AtomToolsDocument, and ShaderManagementConsoleDocumentRequestBus::Handler.

Public Member Functions

 AZ_RTTI (ShaderManagementConsoleDocument, "{C8FAF1C7-8665-423C-B1DD-82016231B17B}", AtomToolsFramework::AtomToolsDocument)
 
 AZ_CLASS_ALLOCATOR (ShaderManagementConsoleDocument, AZ::SystemAllocator)
 
 AZ_DISABLE_COPY_MOVE (ShaderManagementConsoleDocument)
 
 ShaderManagementConsoleDocument (const AZ::Crc32 &toolId, const AtomToolsFramework::DocumentTypeInfo &documentTypeInfo)
 
AtomToolsFramework::DocumentObjectInfoVector GetObjectInfo () const override
 
bool Open (const AZStd::string &loadPath) override
 
bool Save () override
 
bool SaveAsCopy (const AZStd::string &savePath) override
 
bool SaveAsChild (const AZStd::string &savePath) override
 
bool IsModified () const override
 
bool BeginEdit () override
 
bool EndEdit () override
 
void AddOneVariantRow () override
 
void AppendSparseVariantSet (AZStd::vector< AZ::Name > optionHeaders, AZStd::vector< AZ::Name > matrixOfValues) override
 
void MultiplySparseVariantSet (AZStd::vector< AZ::Name > optionHeaders, AZStd::vector< AZ::Name > matrixOfValues) override
 
void DefragmentVariantList () override
 
void SetShaderVariantListSourceData (const AZ::RPI::ShaderVariantListSourceData &shaderVariantListSourceData) override
 
const AZ::RPI::ShaderVariantListSourceDataGetShaderVariantListSourceData () const override
 
size_t GetShaderOptionDescriptorCount () const override
 
const AZ::RPI::ShaderOptionDescriptorGetShaderOptionDescriptor (size_t index) const override
 
DocumentVerificationResult Verify () const override
 
- Public Member Functions inherited from AtomToolsFramework::AtomToolsDocument
 AZ_RTTI (AtomToolsDocument, "{7E6CA0C4-077C-4849-B24C-6796AF3B640B}")
 
 AZ_CLASS_ALLOCATOR (AtomToolsDocument, AZ::SystemAllocator)
 
 AZ_DISABLE_COPY_MOVE (AtomToolsDocument)
 
 AtomToolsDocument (const AZ::Crc32 &toolId, const DocumentTypeInfo &documentTypeInfo)
 
const DocumentTypeInfoGetDocumentTypeInfo () const override
 
DocumentObjectInfoVector GetObjectInfo () const override
 
const AZ::Uuid & GetId () const override
 
const AZStd::string & GetAbsolutePath () const override
 
bool Open (const AZStd::string &loadPath) override
 
bool Reopen () override
 
bool Save () override
 
bool SaveAsCopy (const AZStd::string &savePath) override
 
bool SaveAsChild (const AZStd::string &savePath) override
 
bool Close () override
 
void Clear () override
 
bool IsOpen () const override
 
bool IsModified () const override
 
bool CanSaveAsChild () const override
 
bool CanUndo () const override
 
bool CanRedo () const override
 
bool Undo () override
 
bool Redo () override
 
bool BeginEdit () override
 
bool EndEdit () override
 

Static Public Member Functions

static void Reflect (AZ::ReflectContext *context)
 
static AtomToolsFramework::DocumentTypeInfo BuildDocumentTypeInfo ()
 
- Static Public Member Functions inherited from AtomToolsFramework::AtomToolsDocument
static void Reflect (AZ::ReflectContext *context)
 

Additional Inherited Members

- Protected Types inherited from AtomToolsFramework::AtomToolsDocument
using UndoRedoFunction = AZStd::function<void()>
 
using UndoRedoFunctionPair = AZStd::pair<UndoRedoFunction, UndoRedoFunction>
 
using UndoRedoHistory = AZStd::vector<UndoRedoFunctionPair>
 
- Protected Member Functions inherited from AtomToolsFramework::AtomToolsDocument
virtual bool OpenSucceeded ()
 
virtual bool OpenFailed ()
 
virtual bool SaveSucceeded ()
 
virtual bool SaveFailed ()
 
virtual bool ReopenRecordState ()
 
virtual bool ReopenRestoreState ()
 
void AddUndoRedoHistory (const UndoRedoFunction &undoCommand, const UndoRedoFunction &redoCommand)
 Add new undo redo command functions at the current position in the undo history.
 
void SourceFileChanged (AZStd::string relativePath, AZStd::string scanFolder, AZ::Uuid sourceUUID) override
 
- Protected Attributes inherited from AtomToolsFramework::AtomToolsDocument
const AZ::Crc32 m_toolId = {}
 
const DocumentTypeInfo m_documentTypeInfo = {}
 
const AZ::Uuid m_id = AZ::Uuid::CreateRandom()
 The unique id of this document, used for all bus notifications and requests.
 
AZStd::string m_absolutePath
 The absolute path to the document source file.
 
AZStd::string m_savePathNormalized
 The normalized, absolute path where the document will be saved.
 
AZ::RPI::MaterialUtils::ImportedJsonFiles m_sourceDependencies
 
bool m_ignoreSourceFileChangeToSelf = false
 If this flag is true then the next source file change notification for this document will be ignored.
 
UndoRedoHistory m_undoHistory
 
UndoRedoHistory m_undoHistoryBeforeReopen
 
int m_undoHistoryIndex = {}
 
int m_undoHistoryIndexBeforeReopen = {}
 

Detailed Description

ShaderManagementConsoleDocument provides an API for modifying and saving document properties.


The documentation for this class was generated from the following file: