testMTopologyEvaluator/testMTopologyEvaluator.h
#ifndef __testMTopologyEvaluator_H__
#define __testMTopologyEvaluator_H__
#include <maya/MPxNode.h>
#include <maya/MStatus.h>
#include <maya/MTypeId.h>
#include <maya/MObject.h>
#include <maya/MPlug.h>
#include <maya/MDataBlock.h>
#include <maya/MPxTopologyEvaluator.h>
#include <vector>
#include <atomic>
class TestMTopologyEvaluator_Node :
public MPxNode
{
public:
TestMTopologyEvaluator_Node() : computeCount(0), pushComputeCount(0), doPushComputeOverride(false) {};
virtual ~TestMTopologyEvaluator_Node() {};
static void* creator ();
public:
std::atomic<unsigned> computeCount;
std::atomic<unsigned> pushComputeCount;
bool doPushComputeOverride;
static std::vector<MObject> attrInputs;
static std::vector<MObject> attrOutputs;
static MObject attrPushComputeCount;
};
{
public:
virtual ~TestMTopologyEvaluator_Evaluator();
static void* creator();
};
#endif // __testMTopologyEvaluator_H__