Free Electron
SurfaceAttrLabOp.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 __operator_SurfaceAttrLabOp__
8 #define __operator_SurfaceAttrLabOp__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Manipulate and view an attribute on a Surface
17 
18  @ingroup operator
19 *//***************************************************************************/
20 class FE_DL_EXPORT SurfaceAttrLabOp:
21  public OperatorSurfaceCommon,
22  public Initialize<SurfaceAttrLabOp>
23 {
24  public:
25  SurfaceAttrLabOp(void) {}
26 virtual ~SurfaceAttrLabOp(void) {}
27 
28  void initialize(void);
29 
30  //* As HandlerI
31 virtual void handle(Record& a_rSignal);
32 
33 static Color colorOf(const String& a_rString);
34 
35  private:
36  SpatialVector primitiveCenter(I32 a_primitiveIndex);
37 
38  String interpretElement(String a_attrType,I32 a_index);
39 
40  sp<SurfaceAccessorI> m_spOutputPoint;
41  sp<SurfaceAccessorI> m_spOutputElement;
42  sp<SurfaceAccessorI> m_spOutputVertices;
43 
44  sp<DrawMode> m_spSolid;
45  sp<DrawMode> m_spOverlay;
46 
47  BWORD m_keepInput;
48  sp<SurfaceI> m_spInput;
49  WindowEvent m_event;
50 };
51 
52 } /* namespace ext */
53 } /* namespace fe */
54 
55 #endif /* __operator_SurfaceAttrLabOp__ */
Manipulate and view an attribute on a Surface.
Definition: SurfaceAttrLabOp.h:20
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Special vector for color (RGBA)
Definition: Color.h:21
Generalized windowing event.
Definition: WindowEvent.h:43
Automatically reference-counted string container.
Definition: String.h:128
Partial Generic SurfaceI Implemention.
Definition: OperatorSurfaceCommon.h:20
Reference to an instance of a Layout.
Definition: RecordSB.h:35
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53