#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();
~ownerEmitter() override;
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;
if( status == MS::kSuccess )
return( value );
}
inline double ownerEmitter::speedValue(
MDataBlock& block )
{
double value = 0.0;
if( status == MS::kSuccess )
return( value );
}
{
if( status == MS::kSuccess )
{
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;
if( status == MS::kSuccess )
{
if( status == MS::kSuccess )
{
if( status == MS::kSuccess )
}
}
return( value );
}
inline double ownerEmitter::inheritFactorValue(
int plugIndex,
MDataBlock& block)
{
double value = 0.0;
if( status == MS::kSuccess )
{
if( status == MS::kSuccess )
{
if( status == MS::kSuccess )
}
}
return( value );
}
{
if( status == MS::kSuccess )
return( value );
}
inline MTime ownerEmitter::startTimeValue(
int plugIndex,
MDataBlock& block )
{
if( status == MS::kSuccess )
{
if( status == MS::kSuccess )
{
if( status == MS::kSuccess )
}
}
return( value );
}
inline MTime ownerEmitter::deltaTimeValue(
int plugIndex,
MDataBlock& block )
{
if( status == MS::kSuccess )
{
if( status == MS::kSuccess )
{
if( status == MS::kSuccess )
}
}
return( value );
}