-
Notifications
You must be signed in to change notification settings - Fork 59
/
Copy pathOutputObject.h
48 lines (35 loc) · 891 Bytes
/
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
#ifndef __OutputObject_h__
#define __OutputObject_h__
#include <maya/MDataBlock.h>
#include <maya/MFloatArray.h>
#include <maya/MFloatPointArray.h>
#include <maya/MIntArray.h>
#include <maya/MObject.h>
#include <maya/MPlug.h>
#include <maya/MStatus.h>
#include <maya/MStringArray.h>
#include <maya/MVectorArray.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();
void setObjectInfo(const HAPI_ObjectInfo &objectInfo);
virtual ObjectType type() = 0;
bool isVisible() const;
protected:
HAPI_NodeId myNodeId;
HAPI_NodeInfo myNodeInfo;
HAPI_ObjectInfo myObjectInfo;
int myLastCookCount;
};
#endif