Free Electron
SurfaceAccessibleGodotMesh.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 __godot_SurfaceAccessibleGodotMesh_h__
8 #define __godot_SurfaceAccessibleGodotMesh_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Godot ArrayMesh Surface Binding
17 
18  @ingroup godot
19 *//***************************************************************************/
20 class FE_DL_EXPORT SurfaceAccessibleGodotMesh:
22 {
23  public:
25 virtual ~SurfaceAccessibleGodotMesh(void);
26 
27  //* as SurfaceAccessibleI
28 virtual BWORD isBound(void)
29  { return mesh().is_valid(); }
30 
32 
33  using SurfaceAccessibleBase::attributeSpecs;
34 
35 virtual void attributeSpecs(
37  a_rSpecs,
38  String a_node,
39  SurfaceAccessibleI::Element
40  a_element) const;
41 
43 
44 virtual sp<SurfaceAccessorI> accessor(String a_node,
45  SurfaceAccessibleI::Element a_element,
46  String a_name,
47  SurfaceAccessibleI::Creation a_create);
48 virtual sp<SurfaceAccessorI> accessor(String a_node,
49  SurfaceAccessibleI::Element a_element,
50  SurfaceAccessibleI::Attribute
51  a_attribute,
52  SurfaceAccessibleI::Creation a_create);
53 
55 
56 virtual sp<SurfaceI> surface(String a_group,
57  SurfaceI::Restrictions a_restrictions);
58 
59  //* Godot specific
60  Ref<ArrayMesh> mesh(void);
61  void setMesh(Ref<ArrayMesh> a_refMesh)
62  { m_refMesh=a_refMesh; }
63 
64  protected:
65 virtual void reset(void);
66 
67  private:
68  sp<SurfaceAccessorI> createAccessor(void);
69 
70  Ref<ArrayMesh> m_refMesh;
71 };
72 
73 } /* namespace ext */
74 } /* namespace fe */
75 
76 #endif /* __godot_SurfaceAccessibleGodotMesh_h__ */
Common Functionality for Accessible Surface.
Definition: SurfaceAccessibleBase.h:20
virtual sp< SurfaceI > surface(void)
Return current underlying SurfaceI.
Definition: SurfaceAccessibleBase.h:143
kernel
Definition: namespace.dox:3
virtual void bind(Instance a_instance)
associate with model data
Definition: SurfaceAccessibleBase.h:31
virtual BWORD isBound(void)
Return true if surface is available.
Definition: SurfaceAccessibleGodotMesh.h:28
Automatically reference-counted string container.
Definition: String.h:128
Godot ArrayMesh Surface Binding.
Definition: SurfaceAccessibleGodotMesh.h:20
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
virtual sp< SurfaceAccessorI > accessor(String a_node, Element a_element, String a_name, Creation a_create, Writable a_writable)
Return access to an attribute.
Definition: SurfaceAccessibleBase.h:87