Free Electron
DrawNodes.h
Go to the documentation of this file.
1 /* Copyright (C) 2003-2021 Free Electron Organization
2  Any use of this software requires a license. If a valid license
3  was not distributed with this file, visit freeelectron.org. */
4 
5 /** @file */
6 
7 #ifndef __node_DrawNodes_h__
8 #define __node_DrawNodes_h__
9 
10 #include "signal/signal.h"
11 #include "draw/draw.h"
12 #include "window/window.h"
13 #include "shape/shape.h"
14 #include "viewer/DrawView.h"
15 #include "misc/misc.h"
16 
17 #include "node/nodeAS.h"
18 
19 namespace fe
20 {
21 
22 /** Draw nodes
23 
24  @copydoc DrawNodes_info
25  */
26 class FE_DL_EXPORT DrawNodes :
27  public Initialize<DrawNodes>,
28  virtual public HandlerI
29 {
30  public:
31  DrawNodes(void);
32 virtual ~DrawNodes(void);
33 
34  void initialize(void);
35 
36 virtual void bind( sp<SignalerI> spSignalerI,
37  sp<Layout> l_sig);
38 virtual void handle( Record &r_sig);
39 
40  private:
41  void setColors(sp<RecordGroup> rg_in);
42  AsParticle m_asParticle;
43  AsNode m_asNode;
44  AsSignal m_asSignal;
45  AsWindata m_asWindata;
46  AsColor m_asColor;
47 
48  DrawView m_drawview;
49 
50  Vector4f m_color[2];
51 };
52 
53 
54 } /* namespace */
55 
56 #endif /* __node_DrawNodes_h__ */
57 
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Draw nodes.
Definition: DrawNodes.h:26
Reference to an instance of a Layout.
Definition: RecordSB.h:35