1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
/*!
@file
@author Albert Semenov
@date 08/2009
*/
#ifndef GRAPH_NODE_FADE_CONTROLLER_H_
#define GRAPH_NODE_FADE_CONTROLLER_H_
#include <MyGUI.h>
#include "BaseAnimationNode.h"
namespace demo
{
class GraphNodeFadeController :
public BaseAnimationNode
{
public:
GraphNodeFadeController(const std::string& _name) :
BaseAnimationNode("GraphNodeFadeController.layout", "FadeController", _name),
mStartIn(nullptr),
mStopIn(nullptr),
mStartOut(nullptr),
mStopOut(nullptr),
mWeightOut(nullptr)
{
}
private:
virtual void initialise()
{
mMainWidget->castType<MyGUI::Window>()->setCaption(getName());
assignBase(mStartIn, "StartIn");
assignBase(mStopIn, "StopIn");
assignBase(mStartOut, "StartOut");
assignBase(mStopOut, "StopOut");
assignBase(mWeightOut, "WeightOut");
}
virtual void shutdown()
{
}
private:
wraps::BaseGraphConnection* mStartIn;
wraps::BaseGraphConnection* mStopIn;
wraps::BaseGraphConnection* mStartOut;
wraps::BaseGraphConnection* mStopOut;
wraps::BaseGraphConnection* mWeightOut;
};
} // namespace demo
#endif // GRAPH_NODE_FADE_CONTROLLER_H_
|