forked from sideeffects/HoudiniEngineForMaya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathOutputObject.h
56 lines (40 loc) · 1.1 KB
/
OutputObject.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
54
55
56
#ifndef __OutputObject_h__
#define __OutputObject_h__
#include <maya/MStatus.h>
#include <maya/MFloatArray.h>
#include <maya/MFloatPointArray.h>
#include <maya/MVectorArray.h>
#include <maya/MStringArray.h>
#include <maya/MIntArray.h>
#include <maya/MObject.h>
#include <maya/MPlug.h>
#include <maya/MDataBlock.h>
#include <HAPI/HAPI.h>
class Asset;
class OutputObject {
public:
enum ObjectType {
OBJECT_TYPE_GEOMETRY,
OBJECT_TYPE_INSTANCER
};
// static creator
static OutputObject* createObject(
HAPI_NodeId nodeId
);
OutputObject(HAPI_NodeId nodeId);
virtual ~OutputObject();
int getId();
MString getName();
void setObjectInfo(const HAPI_ObjectInfo &objectInfo);
virtual ObjectType type() = 0;
bool isVisible() const;
bool isInstanced() const;
public:
bool myIsInstanced;
protected:
HAPI_NodeId myNodeId;
HAPI_NodeInfo myNodeInfo;
HAPI_ObjectInfo myObjectInfo;
int myLastCookCount;
};
#endif