forked from sideeffects/HoudiniEngineForMaya
-
Notifications
You must be signed in to change notification settings - Fork 0
/
OutputGeometry.h
42 lines (30 loc) · 864 Bytes
/
OutputGeometry.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
#ifndef __OutputGeometry_h__
#define __OutputGeometry_h__
#include <maya/MStatus.h>
#include <maya/MDataBlock.h>
#include <vector>
#include <HAPI/HAPI.h>
#include "AssetNodeOptions.h"
class OutputObject;
class OutputGeometryPart;
class OutputGeometry {
public:
OutputGeometry(HAPI_NodeId nodeId);
~OutputGeometry();
MStatus compute(
const MTime &time,
const MPlug &geoPlug,
MDataBlock &data,
MDataHandle &geoHandle,
AssetNodeOptions::AccessorDataBlock &options,
bool &needToSyncOutputs
);
void update();
protected:
HAPI_NodeId myNodeId;
HAPI_NodeInfo myNodeInfo;
HAPI_GeoInfo myGeoInfo;
int myLastCookCount;
std::vector<OutputGeometryPart*> myParts;
};
#endif