~ubuntu-branches/debian/sid/ember/sid

« back to all changes in this revision

Viewing changes to src/components/ogre/widgets/EntityCreatorPartAction.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Koch
  • Date: 2009-07-23 07:46:40 UTC
  • Revision ID: james.westby@ubuntu.com-20090723074640-wh0ukzis0kda36qv
Tags: upstream-0.5.6
ImportĀ upstreamĀ versionĀ 0.5.6

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
//
 
2
// C++ Interface: EntityCreatorPartAction
 
3
//
 
4
// Description: 
 
5
//
 
6
//
 
7
// Author: Alexey Torkhov <atorkhov@gmail.com>, (C) 2008
 
8
// Author: Erik Hjortsberg <erik.hjortsberg@gmail.com>, (C) 2009
 
9
//
 
10
// This program is free software; you can redistribute it and/or modify
 
11
// it under the terms of the GNU General Public License as published by
 
12
// the Free Software Foundation; either version 2 of the License, or
 
13
// (at your option) any later version.
 
14
// 
 
15
// This program is distributed in the hope that it will be useful,
 
16
// but WITHOUT ANY WARRANTY; without even the implied warranty of
 
17
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
18
// GNU General Public License for more details.
 
19
// 
 
20
// You should have received a copy of the GNU General Public License
 
21
// along with this program; if not, write to the Free Software
 
22
// Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.//
 
23
//
 
24
#ifndef EMBEROGRE_GUIENTITYCREATORPARTACTION_H
 
25
#define EMBEROGRE_GUIENTITYCREATORPARTACTION_H
 
26
 
 
27
#include "components/ogre/model/mapping/Actions/Action.h"
 
28
#include <string>
 
29
 
 
30
namespace EmberOgre {
 
31
 
 
32
namespace Gui {
 
33
 
 
34
class EntityCreator;
 
35
 
 
36
/**
 
37
 * @brief Shows or hides specific model part in entity creator preview.
 
38
 */
 
39
class EntityCreatorPartAction : public ::EmberOgre::Model::Mapping::Actions::Action
 
40
{
 
41
public:
 
42
        EntityCreatorPartAction(EntityCreator& entityCreator, std::string partName);
 
43
        ~EntityCreatorPartAction();
 
44
        /**
 
45
         * Shows specific model part. Called by model mapping framework.
 
46
         */
 
47
        virtual void activate();
 
48
        /**
 
49
         * Hides specific model part. Called by model mapping framework.
 
50
         */
 
51
        virtual void deactivate();
 
52
protected:
 
53
        EntityCreator& mEntityCreator;
 
54
        std::string mPartName;
 
55
};
 
56
 
 
57
}
 
58
 
 
59
}
 
60
 
 
61
#endif