Free Electron
SurfaceTrianglesMaya.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_SurfaceTrianglesMaya_h__
8 #define __surface_SurfaceTrianglesMaya_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Maya Trianglar Surface
17 
18  @ingroup maya
19 *//***************************************************************************/
20 class FE_DL_EXPORT SurfaceTrianglesMaya:
21  public SurfaceTriangles,
22  public CastableAs<SurfaceTrianglesMaya>
23 {
24  public:
26 virtual ~SurfaceTrianglesMaya(void);
27 
28  //* As Protectable
29 virtual Protectable* clone(Protectable* pInstance=NULL);
30 
31  //* Maya specific
32  void setMeshData(const MDataHandle a_meshData)
33  {
34  m_meshData=a_meshData;
35  }
36 const MDataHandle meshData(void)
37  { return m_meshData; }
38 
39  void clearTransform(void)
40  {
41  m_useTransform=FALSE;
42  }
43  void setTransform(SpatialTransform a_transform)
44  {
45  m_useTransform=TRUE;
46  m_transform=a_transform;
47  }
48 
49  protected:
50 
51 virtual void cache(void);
52 
53  private:
54 
55  MDataHandle m_meshData;
56 
57  BWORD m_useTransform;
58  SpatialTransform m_transform;
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
Maya Trianglar Surface.
Definition: SurfaceTrianglesMaya.h:20
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192