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

« back to all changes in this revision

Viewing changes to src/components/ogre/widgets/EntityCreatorHideModelAction.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: EntityCreatorHideModelAction
 
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_GUIENTITYCREATORHIDEMODELACTION_H
 
25
#define EMBEROGRE_GUIENTITYCREATORHIDEMODELACTION_H
 
26
 
 
27
#include "components/ogre/model/mapping/Actions/Action.h"
 
28
 
 
29
namespace EmberOgre {
 
30
 
 
31
namespace Gui {
 
32
 
 
33
class EntityCreator;
 
34
 
 
35
/**
 
36
 * Shows or hides specific model in entity creator preview.
 
37
 */
 
38
class EntityCreatorHideModelAction : public Model::Mapping::Actions::Action
 
39
{
 
40
public:
 
41
        EntityCreatorHideModelAction(EntityCreator& entityCreator);
 
42
        virtual ~EntityCreatorHideModelAction();
 
43
        /**
 
44
         * Hides model. Called by model mapping framework.
 
45
         */
 
46
        virtual void activate();
 
47
        /**
 
48
         * Does nothing. Called by model mapping framework.
 
49
         */
 
50
        virtual void deactivate();      
 
51
protected:
 
52
        EntityCreator& mEntityCreator;
 
53
};
 
54
 
 
55
}
 
56
 
 
57
}
 
58
 
 
59
#endif