File: GraphNodeGroup2Controller.h

package info (click to toggle)
mygui 3.2.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 36,224 kB
  • sloc: cpp: 118,031; ansic: 30,202; xml: 15,544; cs: 12,602; tcl: 776; python: 417; makefile: 34
file content (59 lines) | stat: -rw-r--r-- 1,276 bytes parent folder | download | duplicates (3)
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
56
57
58
59
/*!
	@file
	@author		Albert Semenov
	@date		08/2009
*/
#ifndef GRAPH_NODE_GROUP2_CONTROLLER_H_
#define GRAPH_NODE_GROUP2_CONTROLLER_H_

#include <MyGUI.h>
#include "BaseAnimationNode.h"

namespace demo
{

	class GraphNodeGroup2Controller :
		public BaseAnimationNode
	{
	public:
		GraphNodeGroup2Controller(const std::string& _name) :
			BaseAnimationNode("GraphNodeGroup2Controller.layout", "Group2Controller", _name),
			mStart1In(nullptr),
			mStart2In(nullptr),
			mStart1Out(nullptr),
			mStop1Out(nullptr),
			mStart2Out(nullptr),
			mStop2Out(nullptr)
		{
		}

	private:
		virtual void initialise()
		{
			mMainWidget->castType<MyGUI::Window>()->setCaption(getName());

			assignBase(mStart1In, "Start1In");
			assignBase(mStart2In, "Start2In");
			assignBase(mStart1Out, "Start1Out");
			assignBase(mStop1Out, "Stop1Out");
			assignBase(mStart2Out, "Start2Out");
			assignBase(mStop2Out, "Stop2Out");

		}

		virtual void shutdown()
		{
		}

	private:
		wraps::BaseGraphConnection* mStart1In;
		wraps::BaseGraphConnection* mStart2In;
		wraps::BaseGraphConnection* mStart1Out;
		wraps::BaseGraphConnection* mStop1Out;
		wraps::BaseGraphConnection* mStart2Out;
		wraps::BaseGraphConnection* mStop2Out;
	};

} // namespace demo

#endif // GRAPH_NODE_GROUP2_CONTROLLER_H_