-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathLSystemNode.h
38 lines (32 loc) · 886 Bytes
/
LSystemNode.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
#pragma once
#include <maya/MPxNode.h>
#include <maya/MStatus.h>
#include <maya/MFnNumericAttribute.h>
#include <maya/MDataBlock.h>
#include <maya/MObject.h>
#include <maya/MFnTypedAttribute.h>
#include <maya/MFnUnitAttribute.h>
#include "LSystem.h"
#define McheckErr(stat,msg) \
if ( MS::kSuccess != stat ) { \
cerr << msg; \
return MS::kFailure; \
}
class LSystemNode : public MPxNode
{
public:
LSystemNode() {};
virtual ~LSystemNode() {};
virtual MStatus compute(const MPlug& plug, MDataBlock& data);
static void* creator();
static MStatus initialize();
static MTypeId id;
// Attributes
static MObject angle;
static MObject stepSize;
static MObject grammar;
static MObject time;
static MObject outputGeo;
static MObject iteration;
LSystem nodeLSystem;
};