added everything
This commit is contained in:
173
lib/mayasdk6/include/maya/MPxEmitterNode.h
Executable file
173
lib/mayasdk6/include/maya/MPxEmitterNode.h
Executable file
@@ -0,0 +1,173 @@
|
||||
|
||||
#ifndef _MPxEmitterNode
|
||||
#define _MPxEmitterNode
|
||||
//
|
||||
//-
|
||||
// ==========================================================================
|
||||
// Copyright (C) 1995 - 2005 Alias Systems Corp. and/or its licensors. All
|
||||
// rights reserved.
|
||||
//
|
||||
// The coded instructions, statements, computer programs, and/or related
|
||||
// material (collectively the "Data") in these files contain unpublished
|
||||
// information proprietary to Alias Systems Corp. ("Alias") and/or its
|
||||
// licensors, which is protected by Canadian and US federal copyright law and
|
||||
// by international treaties.
|
||||
//
|
||||
// The Data may not be disclosed or distributed to third parties or be copied
|
||||
// or duplicated, in whole or in part, without the prior written consent of
|
||||
// Alias.
|
||||
//
|
||||
// THE DATA IS PROVIDED "AS IS". ALIAS HEREBY DISCLAIMS ALL WARRANTIES RELATING
|
||||
// TO THE DATA, INCLUDING, WITHOUT LIMITATION, ANY AND ALL EXPRESS OR IMPLIED
|
||||
// WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY AND/OR FITNESS FOR A
|
||||
// PARTICULAR PURPOSE. IN NO EVENT SHALL ALIAS BE LIABLE FOR ANY DAMAGES
|
||||
// WHATSOEVER, WHETHER DIRECT, INDIRECT, SPECIAL, OR PUNITIVE, WHETHER IN AN
|
||||
// ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, OR IN EQUITY,
|
||||
// ARISING OUT OF ACCESS TO, USE OF, OR RELIANCE UPON THE DATA.
|
||||
// ==========================================================================
|
||||
//+
|
||||
//
|
||||
// CLASS: MPxEmitterNode
|
||||
//
|
||||
// *****************************************************************************
|
||||
//
|
||||
// CLASS DESCRIPTION (MPxEmitterNode)
|
||||
//
|
||||
// MPxEmitterNode allows the creation and manipulation of dependency graph
|
||||
// nodes representing emitters. This is the top level of a hierarchy of
|
||||
// emitter node function sets. It permits manipulation of the attributes
|
||||
// common to all types of emitters.
|
||||
//
|
||||
// *****************************************************************************
|
||||
|
||||
#if defined __cplusplus
|
||||
|
||||
// *****************************************************************************
|
||||
|
||||
// INCLUDED HEADER FILES
|
||||
|
||||
|
||||
#include <maya/MStatus.h>
|
||||
#include <maya/MObject.h>
|
||||
#include <maya/MPxNode.h>
|
||||
#include <maya/MPointArray.h>
|
||||
#include <maya/MVectorArray.h>
|
||||
#include <maya/MDoubleArray.h>
|
||||
|
||||
|
||||
// *****************************************************************************
|
||||
|
||||
// DECLARATIONS
|
||||
|
||||
// *****************************************************************************
|
||||
|
||||
// CLASS DECLARATION (MPxEmitterNode)
|
||||
|
||||
/// Base class for user defined particle emitters (OpenMayaFX)
|
||||
/**
|
||||
*/
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma warning(disable: 4522)
|
||||
#endif // _WIN32
|
||||
|
||||
|
||||
class OPENMAYAFX_EXPORT MPxEmitterNode : public MPxNode
|
||||
{
|
||||
public:
|
||||
///
|
||||
MPxEmitterNode();
|
||||
///
|
||||
virtual ~MPxEmitterNode();
|
||||
///
|
||||
virtual MPxNode::Type type() const;
|
||||
///
|
||||
virtual MStatus compute(const MPlug& plug, MDataBlock& dataBlock);
|
||||
|
||||
|
||||
/////////////////////////
|
||||
// Inherited attributes
|
||||
/////////////////////////
|
||||
|
||||
// General attributes for every emitter.
|
||||
//
|
||||
/// rate attribute
|
||||
static MObject mRate;
|
||||
/// speed attribute
|
||||
static MObject mSpeed;
|
||||
/// direction attribute
|
||||
static MObject mDirection;
|
||||
/// X component of mDirection
|
||||
static MObject mDirectionX;
|
||||
/// Y component of mDirection
|
||||
static MObject mDirectionY;
|
||||
/// Z component of mDirection
|
||||
static MObject mDirectionZ;
|
||||
|
||||
// Attributes for ownership.
|
||||
// Connections made with the owner object.
|
||||
//
|
||||
/// owner postion attribute, multi
|
||||
static MObject mOwnerPosData;
|
||||
/// owner velocity attribute, multi
|
||||
static MObject mOwnerVelData;
|
||||
/// owner centroid attribute
|
||||
static MObject mOwnerCentroid;
|
||||
/// X component of mOwnerCentroid
|
||||
static MObject mOwnerCentroidX;
|
||||
/// Y component of mOwnerCentroid
|
||||
static MObject mOwnerCentroidY;
|
||||
/// Z component of mOwnerCentroid
|
||||
static MObject mOwnerCentroidZ;
|
||||
|
||||
/// input swept geometry attribute
|
||||
static MObject mSweptGeometry;
|
||||
|
||||
/// world matrix attribute
|
||||
static MObject mWorldMatrix;
|
||||
|
||||
// Attributes for target particle object.
|
||||
// Connections with the target particle object.
|
||||
//
|
||||
/// start time attribute
|
||||
static MObject mStartTime;
|
||||
/// delta time attribute
|
||||
static MObject mDeltaTime;
|
||||
/// flag for maximum count attribute
|
||||
static MObject mIsFull;
|
||||
/// inherit factor attribute
|
||||
static MObject mInheritFactor;
|
||||
/// random seed attribute
|
||||
static MObject mSeed;
|
||||
|
||||
// Current time attribute.
|
||||
// Connection with time node.
|
||||
//
|
||||
/// current time attribute
|
||||
static MObject mCurrentTime;
|
||||
|
||||
// Output Attribute.
|
||||
// Connection with the target particle object.
|
||||
//
|
||||
/// output particle attribute, multi
|
||||
static MObject mOutput;
|
||||
|
||||
protected:
|
||||
// No protected members
|
||||
|
||||
private:
|
||||
// No private members
|
||||
|
||||
static void initialSetup();
|
||||
static const char* className();
|
||||
|
||||
};
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma warning(default: 4522)
|
||||
#endif // _WIN32
|
||||
|
||||
//****************************************************************************
|
||||
#endif /* __cplusplus */
|
||||
#endif /* _MPxEmitterNode */
|
||||
|
||||
Reference in New Issue
Block a user