ownerEmitter/ownerEmitter.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:
ownerEmitter();
virtual ~ownerEmitter();
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 ownerEmitter::rateValue(
MDataBlock& block )
{
double value = 0.0;
return( value );
}
inline double ownerEmitter::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 ownerEmitter::isFullValue(
int plugIndex,
MDataBlock& block )
{
bool value = true;
{
{
}
}
return( value );
}
inline double ownerEmitter::inheritFactorValue(
int plugIndex,
MDataBlock& block)
{
double value = 0.0;
{
{
}
}
return( value );
}
{
return( value );
}
inline MTime ownerEmitter::startTimeValue(
int plugIndex,
MDataBlock& block )
{
{
{
}
}
return( value );
}
inline MTime ownerEmitter::deltaTimeValue(
int plugIndex,
MDataBlock& block )
{
{
{
}
}
return( value );
}