simpleEmitter/simpleEmitter.h
#include <maya/MIOStream.h>
#include <maya/MTime.h>
#include <maya/MVector.h>
#include <maya/MObject.h>
#include <maya/MPlug.h>
#include <maya/MDataBlock.h>
#include <maya/MFnPlugin.h>
#include <maya/MPxEmitterNode.h>
#define McheckErr(stat, msg) \
if ( MS::kSuccess != stat ) \
{ \
cerr << msg; \
return MS::kFailure; \
}
{
public:
simpleEmitter();
virtual ~simpleEmitter();
static void *creator();
private:
const MIntArray &countAry,
double dt,
double speed,
double inheritFactor,
MVector dirV,
bool isFullValue(
int plugIndex,
MDataBlock& block );
double inheritFactorValue(
int plugIndex,
MDataBlock& block );
};
inline double simpleEmitter::rateValue(
MDataBlock& block )
{
double value = 0.0;
return( value );
}
inline double simpleEmitter::speedValue(
MDataBlock& block )
{
double value = 0.0;
return( value );
}
{
{
dirV[0] = value[0];
dirV[1] = value[1];
dirV[2] = value[2];
}
return( dirV );
}
inline bool simpleEmitter::isFullValue(
int plugIndex,
MDataBlock& block )
{
bool value = true;
{
{
}
}
return( value );
}
inline double simpleEmitter::inheritFactorValue(
int plugIndex,
MDataBlock& block)
{
double value = 0.0;
{
{
}
}
return( value );
}
{
return( value );
}
inline MTime simpleEmitter::startTimeValue(
int plugIndex,
MDataBlock& block )
{
{
{
}
}
return( value );
}
inline MTime simpleEmitter::deltaTimeValue(
int plugIndex,
MDataBlock& block )
{
{
{
}
}
return( value );
}