Free Electron
SurfaceTrianglesHapi.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_SurfaceTrianglesHapi_h__
8 #define __surface_SurfaceTrianglesHapi_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Houdini Engine Trianglar Surface
17 
18  @ingroup houdini
19 *//***************************************************************************/
20 class FE_DL_EXPORT SurfaceTrianglesHapi:
21  public SurfaceTriangles,
22  public CastableAs<SurfaceTrianglesHapi>
23 {
24  public:
26 virtual ~SurfaceTrianglesHapi(void);
27 
28  //* As Protectable
29 virtual Protectable* clone(Protectable* pInstance=NULL);
30 
31  //* Houdini specific
32  void setSession(HAPI_Session* a_pHapiSession)
33  {
34  m_pHapiSession=a_pHapiSession;
35  }
36  HAPI_Session* session(void) const { return m_pHapiSession; }
37 
38  void setNodeId(HAPI_NodeId a_hapiNodeId)
39  {
40  m_hapiNodeId=a_hapiNodeId;
41  }
42  HAPI_NodeId nodeId(void) const { return m_hapiNodeId; }
43 
44  void setSubIndex(I32 a_subIndex)
45  { m_subIndex=a_subIndex; }
46  I32 subIndex(void) const
47  { return m_subIndex; }
48 
49  protected:
50 
51 virtual void cache(void);
52 
53  private:
54 
55  HAPI_Session* m_pHapiSession;
56  HAPI_NodeId m_hapiNodeId;
57 
58  I32 m_subIndex;
59 };
60 
61 } /* namespace ext */
62 } /* namespace fe */
63 
64 #endif /* __surface_SurfaceTriangles_h__ */
65 
Discrete Triangle Surface.
Definition: SurfaceTriangles.h:20
Base class providing protection counting for cp<>
Definition: Protectable.h:28
kernel
Definition: namespace.dox:3
Houdini Engine Trianglar Surface.
Definition: SurfaceTrianglesHapi.h:20
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192