Cafu Engine
SetMeshShadows.hpp
1 /*
2 Cafu Engine, http://www.cafu.de/
3 Copyright (c) Carsten Fuchs and other contributors.
4 This project is licensed under the terms of the MIT license.
5 */
6 
7 #ifndef CAFU_MODELEDITOR_SET_MESH_SHADOWS_HPP_INCLUDED
8 #define CAFU_MODELEDITOR_SET_MESH_SHADOWS_HPP_INCLUDED
9 
10 #include "../../CommandPattern.hpp"
11 
12 
13 namespace ModelEditor
14 {
15  class ModelDocumentT;
16 
18  {
19  public:
20 
21  CommandSetMeshShadowsT(ModelDocumentT* ModelDoc, unsigned int MeshNr, bool NewCastShadows);
22 
23  // CommandT implementation.
24  bool Do();
25  void Undo();
26  wxString GetName() const;
27 
28 
29  private:
30 
31  ModelDocumentT* m_ModelDoc;
32  const unsigned int m_MeshNr;
33  const bool m_NewCastShadows;
34  const bool m_OldCastShadows;
35  };
36 }
37 
38 #endif
void Undo()
This method un-does the command.
Definition: SetMeshShadows.cpp:44
wxString GetName() const
Returns the name (a description) of the command.
Definition: SetMeshShadows.cpp:60
Definition: SetMeshShadows.hpp:17
This class represents a general command for implementing modifications to the applications document...
Definition: CommandPattern.hpp:30
bool Do()
This method executes the command.
Definition: SetMeshShadows.cpp:24
Definition: ModelDocument.hpp:30