2
// C++ Interface: EntityCreatorHideModelAction
7
// Author: Alexey Torkhov <atorkhov@gmail.com>, (C) 2008
8
// Author: Erik Hjortsberg <erik.hjortsberg@gmail.com>, (C) 2009
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.
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.
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.//
24
#ifndef EMBEROGRE_GUIENTITYCREATORHIDEMODELACTION_H
25
#define EMBEROGRE_GUIENTITYCREATORHIDEMODELACTION_H
27
#include "components/ogre/model/mapping/Actions/Action.h"
36
* Shows or hides specific model in entity creator preview.
38
class EntityCreatorHideModelAction : public Model::Mapping::Actions::Action
41
EntityCreatorHideModelAction(EntityCreator& entityCreator);
42
virtual ~EntityCreatorHideModelAction();
44
* Hides model. Called by model mapping framework.
46
virtual void activate();
48
* Does nothing. Called by model mapping framework.
50
virtual void deactivate();
52
EntityCreator& mEntityCreator;