2
// C++ Interface: EntityCreatorPartAction
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_GUIENTITYCREATORPARTACTION_H
25
#define EMBEROGRE_GUIENTITYCREATORPARTACTION_H
27
#include "components/ogre/model/mapping/Actions/Action.h"
37
* @brief Shows or hides specific model part in entity creator preview.
39
class EntityCreatorPartAction : public ::EmberOgre::Model::Mapping::Actions::Action
42
EntityCreatorPartAction(EntityCreator& entityCreator, std::string partName);
43
~EntityCreatorPartAction();
45
* Shows specific model part. Called by model mapping framework.
47
virtual void activate();
49
* Hides specific model part. Called by model mapping framework.
51
virtual void deactivate();
53
EntityCreator& mEntityCreator;
54
std::string mPartName;