Free Electron
SurfaceAccessibleHapi.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 __houdini_SurfaceAccessibleHapi_h__
8 #define __houdini_SurfaceAccessibleHapi_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Houdini Engine Surface Binding
17 
18  @ingroup houdini
19 *//***************************************************************************/
20 class FE_DL_EXPORT SurfaceAccessibleHapi:
21  public SurfaceAccessibleBase,
22  public CastableAs<SurfaceAccessibleHapi>
23 {
24  public:
26 virtual ~SurfaceAccessibleHapi(void);
27 
29 
30  //* as SurfaceAccessibleI
31 virtual BWORD isBound(void);
32 
33  using SurfaceAccessibleBase::attributeSpecs;
34 virtual void attributeSpecs(
36  a_rSpecs,
37  String a_node,
38  SurfaceAccessibleI::Element
39  a_element) const;
40 
42 virtual sp<SurfaceAccessorI> accessor(String a_node,
43  SurfaceAccessibleI::Element a_element,
44  String a_name,
45  SurfaceAccessibleI::Creation a_create,
46  SurfaceAccessibleI::Writable
47  a_writable);
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  SurfaceAccessibleI::Writable
54  a_writable);
55 
56 virtual BWORD load(String a_filename,
57  sp<Catalog> a_spSettings);
58 
60 
61 virtual sp<SurfaceI> surface(String a_group,
62  SurfaceI::Restrictions a_restrictions);
63 
64 static String lastError(HAPI_Session* a_pHapiSession);
65 
66  private:
67  sp<SurfaceAccessorHapi> accessor(void);
68 
69  std::map<String,String> m_optionMap;
70  Real m_frame;
71 
72  HAPI_Session m_hapiSession;
73  HAPI_NodeId m_hapiNodeId;
74 
75  I32 m_curveParts;
76  I32 m_meshParts;
77 
79  Array<SurfaceAccessibleI::Spec> m_vertexSpecs;
80  Array<SurfaceAccessibleI::Spec> m_primitiveSpecs;
81  Array<SurfaceAccessibleI::Spec> m_detailSpecs;
82 };
83 
84 } /* namespace ext */
85 } /* namespace fe */
86 
87 #endif /* __houdini_SurfaceAccessibleHapi_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
Houdini Engine Surface Binding.
Definition: SurfaceAccessibleHapi.h:20
Automatically reference-counted string container.
Definition: String.h:128
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192
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