forked from code-google-com/stretchmesh
-
Notifications
You must be signed in to change notification settings - Fork 0
/
curveColliderLocator.h
53 lines (40 loc) · 1.26 KB
/
curveColliderLocator.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
50
51
52
53
#ifndef __CURVECOLLIDERLOCATOR_H__
#define __CURVECOLLIDERLOCATOR_H__
#pragma once
/*
* curveColliderLocator.h
* stretchMesh
*
*
*/
#define MAYA_CURVECOLLIDERLOCATOR_NAME "curveColliderLocator"
class MFnPlugin;
#include <maya/MIOStream.h>
#include <maya/MPxLocatorNode.h>
class curveColliderLocator : public MPxLocatorNode
{
public:
curveColliderLocator();
virtual ~curveColliderLocator();
static bool Registered;
static MStatus Register(MFnPlugin& ioPlugin);
static MStatus Deregister(MFnPlugin& ioPlugin);
virtual MStatus compute(const MPlug& plug, MDataBlock &data);
virtual void draw(M3dView &view, const MDagPath &path,
M3dView::DisplayStyle style,
M3dView::DisplayStatus status);
virtual bool isBounded() const;
virtual MBoundingBox boundingBox() const;
static void * creator();
static MStatus initialize();
static MObject colliderRadiusIn;
static MObject colliderCurveIn;
static MObject colliderXform;
static MObject colliderColorR;
static MObject colliderColorG;
static MObject colliderColorB;
static MObject colliderTransparency;
public:
static MTypeId id;
};
#endif