Cogs.Core
Public Member Functions | List of all members
Cogs::Core::SparseBuildOctreeCommand Struct Reference
Inheritance diagram for Cogs::Core::SparseBuildOctreeCommand:
Cogs::Core::PostCommand Cogs::Core::EditorCommand

Public Member Functions

 SparseBuildOctreeCommand (EditorState *state)
 
void apply () override
 Run the command.
 
void undo () override
 
void applyPost () override
 
void buildOctree (SparseOctree::OctreeInfo &info)
 
void exportAsset (Context *context, SparseOctree::Octree &octree)
 
- Public Member Functions inherited from Cogs::Core::PostCommand
 PostCommand (EditorState *state)
 
virtual void applyPost ()=0
 
- Public Member Functions inherited from Cogs::Core::EditorCommand
 EditorCommand (EditorState *state, Context *context)
 
virtual void apply ()=0
 Run the command.
 
virtual void undo ()=0
 
virtual void redo ()
 
virtual bool mergeWith (const EditorCommand *)
 
virtual MeshHandle applyMesh (MeshHandle)
 Workaround for having extendable mesh processing available without linking (e.g command -> RR).
 
virtual void close ()
 Close command, i.e. prevent merging with another command.
 
bool isClosed () const
 
bool merge (const EditorCommand *command)
 Merge into this if not this is closed.
 

Additional Inherited Members

- Public Attributes inherited from Cogs::Core::PostCommand
PropertyStore properties
 
- Public Attributes inherited from Cogs::Core::EditorCommand
std::vector< ParsedValueoptions
 Options passed to the command when running in batch mode.
 
bool permanentUndo = false
 True if cannot Redo after Undo.
 
- Protected Attributes inherited from Cogs::Core::EditorCommand
EditorStatestate = nullptr
 
Contextcontext = nullptr
 

Detailed Description

Definition at line 16 of file SparseBuildOctreeCommand.h.

Constructor & Destructor Documentation

◆ SparseBuildOctreeCommand()

Cogs::Core::SparseBuildOctreeCommand::SparseBuildOctreeCommand ( EditorState state)
inline

Definition at line 18 of file SparseBuildOctreeCommand.h.

Member Function Documentation

◆ apply()

void Cogs::Core::SparseBuildOctreeCommand::apply ( )
overridevirtual

Run the command.

In batch scripts this method is called for all type of commands. In interactive mode this method is not called for model commands (subclasses of ModalEditorCommand)

Implements Cogs::Core::EditorCommand.

Definition at line 868 of file SparseBuildOctreeCommand.cpp.

◆ applyPost()

void Cogs::Core::SparseBuildOctreeCommand::applyPost ( )
overridevirtual

Implements Cogs::Core::PostCommand.

Definition at line 887 of file SparseBuildOctreeCommand.cpp.

◆ buildOctree()

void Cogs::Core::SparseBuildOctreeCommand::buildOctree ( SparseOctree::OctreeInfo info)

Definition at line 1086 of file SparseBuildOctreeCommand.cpp.

◆ exportAsset()

void Cogs::Core::SparseBuildOctreeCommand::exportAsset ( Context context,
SparseOctree::Octree octree 
)

Definition at line 596 of file SparseBuildOctreeCommand.cpp.

◆ undo()

void Cogs::Core::SparseBuildOctreeCommand::undo ( )
overridevirtual

Implements Cogs::Core::EditorCommand.

Definition at line 873 of file SparseBuildOctreeCommand.cpp.


The documentation for this struct was generated from the following files: