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