Free Electron
SurfaceAccessibleVDB.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 __surface_SurfaceAccessibleVDB_h__
8 #define __surface_SurfaceAccessibleVDB_h__
9 namespace fe
10 {
11 namespace ext
12 {
13 
14 /**************************************************************************//**
15  @brief VDB Surface Binding
16 
17  @ingroup vdb
18 *//***************************************************************************/
19 class FE_DL_EXPORT SurfaceAccessibleVDB:
21 {
22  public:
24 virtual ~SurfaceAccessibleVDB(void);
25 
26  //* as SurfaceAccessibleI
27 virtual void reset(void);
28 
29 virtual BWORD isBound(void)
30  { return bool(m_gridPtr); }
31 
33 
34 virtual sp<SurfaceAccessorI> accessor(String a_node,Element a_element,
35  String a_name,
36  Creation a_create,Writable a_writable);
37 
38 virtual sp<SurfaceAccessorI> accessor(String a_node,Element a_element,
39  Attribute a_attribute,
40  Creation a_create,Writable a_writable);
41 
42  using SurfaceAccessibleBase::attributeSpecs;
43 
44 virtual void attributeSpecs(
46  a_rSpecs,
47  String a_node,
48  SurfaceAccessibleI::Element
49  a_element) const;
50 
52 
53 virtual BWORD load(String a_filename,
54  sp<Catalog> a_spSettings);
55 
57 
58 virtual sp<SurfaceI> surface(String a_group,
59  SurfaceI::Restrictions a_restrictions);
60 
61  private:
62  openvdb::GridBase::ConstPtr m_gridPtr;
63  sp<SurfaceVDB> m_spSurfaceVDB;
64 };
65 
66 } /* namespace ext */
67 } /* namespace fe */
68 
69 #endif /* __surface_SurfaceAccessibleVDB_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
VDB Surface Binding.
Definition: SurfaceAccessibleVDB.h:19
Automatically reference-counted string container.
Definition: String.h:128
virtual BWORD isBound(void)
Return true if surface is available.
Definition: SurfaceAccessibleVDB.h:29
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
virtual BWORD load(String a_filename)
load model data from file
Definition: SurfaceAccessibleBase.h:45
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