Cafu Engine
UpdateTriangle.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_UPDATE_TRIANGLE_HPP_INCLUDED
8 #define CAFU_MODELEDITOR_UPDATE_TRIANGLE_HPP_INCLUDED
9 
10 #include "../../CommandPattern.hpp"
11 
12 
13 namespace ModelEditor
14 {
15  class ModelDocumentT;
16 
18  {
19  public:
20 
21  CommandUpdateTriangleT(ModelDocumentT* ModelDoc, unsigned int MeshNr, unsigned int TriNr, bool SkipDraw);
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 unsigned int m_TriNr;
34  const bool m_NewSkipDraw;
35  const bool m_OldSkipDraw;
36  };
37 }
38 
39 #endif
void Undo()
This method un-does the command.
Definition: UpdateTriangle.cpp:46
wxString GetName() const
Returns the name (a description) of the command.
Definition: UpdateTriangle.cpp:63
Definition: UpdateTriangle.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: UpdateTriangle.cpp:25
Definition: ModelDocument.hpp:30