-
Notifications
You must be signed in to change notification settings - Fork 3
/
apiMeshIterator.h
49 lines (43 loc) · 1.55 KB
/
apiMeshIterator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
//-
// ==========================================================================
// Copyright 2015 Autodesk, Inc. All rights reserved.
//
// Use of this software is subject to the terms of the Autodesk
// license agreement provided at the time of installation or download,
// or which otherwise accompanies this software in either electronic
// or hard copy form.
// ==========================================================================
//+
////////////////////////////////////////////////////////////////////////////////
//
// Point iterator for control-point based geometry
//
// This is used by the translate/rotate/scale manipulators to
// determine where to place the manipulator when components are
// selected.
//
// As well deformers use this class to deform points of the shape.
//
////////////////////////////////////////////////////////////////////////////////
#include <maya/MPxGeometryIterator.h>
#include <maya/MPoint.h>
#include "apiMeshGeom.h"
class apiMeshGeomIterator : public MPxGeometryIterator
{
public:
apiMeshGeomIterator( void * userGeometry, MObjectArray & components );
apiMeshGeomIterator( void * userGeometry, MObject & components );
virtual ~apiMeshGeomIterator();
//////////////////////////////////////////////////////////
//
// Overrides
//
//////////////////////////////////////////////////////////
virtual void reset();
virtual MPoint point() const;
virtual void setPoint( const MPoint & ) const;
virtual int iteratorCount() const;
virtual bool hasPoints() const;
public:
apiMeshGeom * geometry;
};