Free Electron
SurfaceCurvesMaya.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_SurfaceCurvesMaya_h__
8 #define __surface_SurfaceCurvesMaya_h__
9 
10 namespace fe
11 {
12 namespace ext
13 {
14 
15 /**************************************************************************//**
16  @brief Maya Curve Primitives
17 
18  @ingroup maya
19 *//***************************************************************************/
20 class FE_DL_EXPORT SurfaceCurvesMaya:
21  public SurfaceCurves,
22  public CastableAs<SurfaceCurvesMaya>
23 {
24  public:
25  SurfaceCurvesMaya(void);
26 virtual ~SurfaceCurvesMaya(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 setSubIndex(I32 a_subIndex)
40  { m_subIndex=a_subIndex; }
41  I32 subIndex(void) const
42  { return m_subIndex; }
43 
44  void clearTransform(void)
45  {
46  m_useTransform=FALSE;
47  }
48  void setTransform(SpatialTransform a_transform)
49  {
50  m_useTransform=TRUE;
51  m_transform=a_transform;
52  }
53 
54  void setGroup(String a_group)
55  { m_group=a_group; }
56  String group(void) const
57  { return m_group; }
58 
59  protected:
60 
61 virtual void cache(void);
62 
63  private:
64 
65  MDataHandle m_meshData;
66 
67  BWORD m_useTransform;
68  SpatialTransform m_transform;
69 
70  String m_group;
71  I32 m_subIndex;
72 };
73 
74 } /* namespace ext */
75 } /* namespace fe */
76 
77 #endif /* __surface_SurfaceCurves_h__ */
Maya Curve Primitives.
Definition: SurfaceCurvesMaya.h:20
Base class providing protection counting for cp<>
Definition: Protectable.h:28
kernel
Definition: namespace.dox:3
Automatically reference-counted string container.
Definition: String.h:128
Segmented Path Surface.
Definition: SurfaceCurves.h:22
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192