7 #ifndef __maya_SurfaceAccessibleMaya_h__ 8 #define __maya_SurfaceAccessibleMaya_h__ 26 m_pMeshArrayData(NULL),
29 m_useTransform(FALSE) {}
48 a_instance.cast<MDataHandle>()); }
50 {
return (m_pMeshArrayData ||
51 !m_meshData.asMesh().isNull()); }
54 SurfaceAccessibleI::Element
57 using SurfaceAccessibleBase::attributeSpecs;
59 virtual void attributeSpecs(
63 SurfaceAccessibleI::Element
69 SurfaceAccessibleI::Element a_element,
71 SurfaceAccessibleI::Creation a_create,
72 SurfaceAccessibleI::Writable
75 SurfaceAccessibleI::Element a_element,
76 SurfaceAccessibleI::Attribute
78 SurfaceAccessibleI::Creation a_create,
79 SurfaceAccessibleI::Writable
82 using SurfaceAccessibleBase::discard;
84 virtual BWORD discard(SurfaceAccessibleI::Element a_element,
90 SurfaceI::Restrictions a_restrictions);
101 a_spSurfaceAccessibleI,
105 a_spSurfaceAccessibleI,
110 void setMeshNode(
const MObject a_meshNode)
112 m_meshNode=a_meshNode;
114 const MObject meshNode(
void)
115 {
return m_meshNode; }
116 void setMeshData(
const MDataHandle a_meshData)
118 m_meshData=a_meshData;
123 delete m_pMeshArrayData;
124 m_pMeshArrayData=NULL;
133 m_pFnMesh=
new MFnMesh(m_meshData.asMesh());
135 const MDataHandle meshData(
void)
136 {
return m_meshData; }
138 void setMeshArrayData(
139 const MArrayDataHandle& a_meshArrayData)
141 m_pMeshArrayData=
new MArrayDataHandle(
145 m_meshData=MDataHandle();
154 MArrayDataHandle& meshArrayData(
void)
155 {
return *m_pMeshArrayData; }
156 void setGroupIt(MItGeometry* a_pGroupIt)
162 m_pGroupIt=a_pGroupIt;
165 void clearTransform(
void)
167 m_useTransform=FALSE;
172 m_transform=a_transform;
177 virtual void reset(
void);
183 spAccessor->setMaster(registry()->master());
184 spAccessor->setMeshNode(m_meshNode);
185 spAccessor->setMeshData(m_meshData);
186 spAccessor->setGroupIt(m_pGroupIt);
189 spAccessor->setTransform(m_transform);
193 spAccessor->clearTransform();
202 MDataHandle m_meshData;
203 MArrayDataHandle* m_pMeshArrayData;
205 MItGeometry* m_pGroupIt;
207 BWORD m_useTransform;
Common Functionality for Accessible Surface.
Definition: SurfaceAccessibleBase.h:20
virtual sp< SurfaceI > surface(void)
Return current underlying SurfaceI.
Definition: SurfaceAccessibleBase.h:143
Maya Surface Binding.
Definition: SurfaceAccessibleMaya.h:20
Smart pointer used with types represented by BaseType.
Definition: Instance.h:28
kernel
Definition: namespace.dox:3
virtual void bind(Instance a_instance)
associate with model data
Definition: SurfaceAccessibleMaya.h:46
virtual void bind(Instance a_instance)
associate with model data
Definition: SurfaceAccessibleBase.h:31
Maya Surface Editing Implementation.
Definition: SurfaceAccessorMaya.h:30
Automatically reference-counted string container.
Definition: String.h:128
Wrapper for std::vector.
Definition: Array.h:21
Intrusive Smart Pointer.
Definition: src/core/ptr.h:53
virtual BWORD isBound(void)
Return true if surface is available.
Definition: SurfaceAccessibleMaya.h:49
Per-class participation non-RTTI fallback dynamic casting mechanism.
Definition: Castable.h:192
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