OpenMW
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Public Member Functions | Protected Types | Protected Member Functions | Protected Attributes | List of all members
CSMWorld::ImportLandTexturesCommand Class Referenceabstract

Adds LandTexture records and modifies texture indices as needed. More...

#include <commands.hpp>

Inheritance diagram for CSMWorld::ImportLandTexturesCommand:
Collaboration diagram for CSMWorld::ImportLandTexturesCommand:

Public Member Functions

 ImportLandTexturesCommand (IdTable &landTable, IdTable &ltexTable, QUndoCommand *parent)
 
void redo () override
 
void undo () override
 

Protected Types

using DataType = LandTexturesColumn::DataType
 

Protected Member Functions

virtual const std::string & getOriginId () const =0
 
virtual const std::string & getDestinationId () const =0
 
virtual void onRedo ()=0
 
virtual void onUndo ()=0
 

Protected Attributes

IdTablemLands
 
IdTablemLtexs
 
DataType mOld
 
int mOldState
 
std::vector< std::string > mCreatedTextures
 

Detailed Description

Adds LandTexture records and modifies texture indices as needed.

LandTexture records are different from other types of records, because they only effect the current plugin. Thus, when modifying or copying a Land record, all of the LandTexture records referenced need to be added to the current plugin. Since these newly added LandTextures could have indices that conflict with pre-existing LandTextures in the current plugin, the indices might have to be changed, both for the newly added LandRecord and within the Land record.

Member Typedef Documentation

Constructor & Destructor Documentation

CSMWorld::ImportLandTexturesCommand::ImportLandTexturesCommand ( IdTable landTable,
IdTable ltexTable,
QUndoCommand parent 
)

Member Function Documentation

virtual const std::string& CSMWorld::ImportLandTexturesCommand::getDestinationId ( ) const
protectedpure virtual
virtual const std::string& CSMWorld::ImportLandTexturesCommand::getOriginId ( ) const
protectedpure virtual
virtual void CSMWorld::ImportLandTexturesCommand::onRedo ( )
protectedpure virtual
virtual void CSMWorld::ImportLandTexturesCommand::onUndo ( )
protectedpure virtual
void CSMWorld::ImportLandTexturesCommand::redo ( )
override

Here is the call graph for this function:

Here is the caller graph for this function:

void CSMWorld::ImportLandTexturesCommand::undo ( )
override

Member Data Documentation

std::vector<std::string> CSMWorld::ImportLandTexturesCommand::mCreatedTextures
protected
IdTable& CSMWorld::ImportLandTexturesCommand::mLands
protected
IdTable& CSMWorld::ImportLandTexturesCommand::mLtexs
protected
DataType CSMWorld::ImportLandTexturesCommand::mOld
protected
int CSMWorld::ImportLandTexturesCommand::mOldState
protected

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