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