Free Electron
SurfaceBindOp.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_SurfaceBindOp_h__
8 #define __operator_SurfaceBindOp_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Operator to correlate a attachable surface with a driving surface
17 
18  @ingroup operator
19 *//***************************************************************************/
20 class FE_DL_EXPORT SurfaceBindOp:
21  public OperatorThreaded,
22  public Initialize<SurfaceBindOp>
23 {
24  public:
25 
26  SurfaceBindOp(void) {}
27 virtual ~SurfaceBindOp(void) {}
28 
29  void initialize(void);
30 
31  //* As HandlerI
32 virtual void handleBind(sp<SignalerI> a_spSignalerI,
33  sp<Layout> a_spLayout);
34 virtual void handle(Record& a_rSignal);
35 
36  using OperatorThreaded::run;
37 
38 virtual void run(I32 a_id,sp<SpannedRange> a_spRange);
39 
40  protected:
41  sp<SurfaceAccessibleI> subdivide(
42  sp<SurfaceAccessibleI>& a_rspAccessibleI,
43  I32 a_depth,I32 a_flatDepth,Record& a_rSignal);
44  void relayMessages(void);
45 
46  String retrieveSignature(
47  sp<SurfaceAccessibleI>& a_rspAccessibleI);
48  void storeSignature(sp<SurfaceAccessibleI>& a_rspAccessibleI,
49  String a_signature);
50  void discardSignature(
51  sp<SurfaceAccessibleI>& a_rspAccessibleI);
52 
53  void retrieveParameters(
54  sp<SurfaceAccessibleI>& a_rspAccessibleI,
55  String& a_rDriverGroup,
56  String& a_rFragmentAttribute,
57  String& a_rInputGroup,
58  I32& a_rBindings,I32& a_rSamples,
59  BWORD& a_rBindPrimitives,
60  BWORD& a_rBindFragments,String& a_rCovertKey,
61  String& a_rLocators,I32& a_rSubdiv,
62  BWORD& a_rPointsOnly);
63  void storeParameters(
64  sp<SurfaceAccessibleI>& a_rspAccessibleI,
65  String a_driverGroup,String a_fragmentAttribute,
66  String a_inputGroup,
67  I32 a_bindCount,I32 a_samples,
68  BWORD a_bindPrimitives,
69  BWORD a_bindFragments,String a_covertKey,
70  String a_locators,I32 a_subdiv,
71  BWORD a_pointsOnly);
72  void discardParameters(
73  sp<SurfaceAccessibleI>& a_rspAccessibleI);
74 
75  I32 accessBindings(sp<SurfaceAccessibleI>& a_rspAccessibleI,
76  Array< sp<SurfaceAccessorI> >& a_rFaces,
77  Array< sp<SurfaceAccessorI> >& a_rBarys,
78  I32 a_bindCount,
79  BWORD a_bindPrimitives,
80  BWORD a_allowCreation,
81  BWORD a_writable);
82  void discardBindings(
83  sp<SurfaceAccessibleI>& a_rspAccessibleI,
84  I32 a_bindCount,BWORD a_bindPrimitives);
85 
86  sp<SurfaceAccessibleI> m_spBindingAccessible;
87  sp<SurfaceAccessibleI> m_spOutputAccessible;
88  sp<SurfaceAccessibleI> m_spDriverAccessible;
89 
90  sp<SurfaceI> m_spDriver;
91  sp<SurfaceI> m_spSnapDriver;
92 
93  sp<OperatorSurfaceI> m_spSubdivideOp;
94 
95  BWORD m_fragmented;
96  BWORD m_bindPrimitives;
97  BWORD m_conform;
98  BWORD m_partitionDriver;
99  String m_peakName;
100 
101  Element m_element;
102  Attribute m_attribute;
103 
104  Array<I32> m_masterBinding;
105  Array<I32> m_pivotIndex;
106  Array<I32> m_driverFacePrimitive;
107 };
108 
109 } /* namespace ext */
110 } /* namespace fe */
111 
112 #endif /* __operator_SurfaceBindOp_h__ */
Handler to move curves away from a collider.
Definition: OperatorThreaded.h:20
kernel
Definition: namespace.dox:3
Per-class participation in the Initialized <> mechanism.
Definition: Initialized.h:117
Operator to correlate a attachable surface with a driving surface.
Definition: SurfaceBindOp.h:20
Automatically reference-counted string container.
Definition: String.h:128
Wrapper for std::vector.
Definition: Array.h:21
Reference to an instance of a Layout.
Definition: RecordSB.h:35