Initial commit
This commit is contained in:
164
Torque/SDK/lib/mayasdk6/include/maya/MFnNumericData.h
Normal file
164
Torque/SDK/lib/mayasdk6/include/maya/MFnNumericData.h
Normal file
@@ -0,0 +1,164 @@
|
||||
|
||||
#ifndef _MFnNumericData
|
||||
#define _MFnNumericData
|
||||
//
|
||||
//-
|
||||
// ==========================================================================
|
||||
// Copyright (C) Alias Systems, a division of Silicon Graphics Limited.
|
||||
// All rights reserved. These coded instructions, statements and computer
|
||||
// programs contain unpublished information proprietary to Alias Systems,
|
||||
// a division of Silicon Graphics Limited, which is protected by the
|
||||
// Canadian and US federal copyright law and may not be disclosed to third
|
||||
// parties or copied or duplicated, in whole or in part, without prior
|
||||
// written consent of Alias Systems, a division of Silicon Graphics Limited
|
||||
// ==========================================================================
|
||||
//+
|
||||
//
|
||||
// CLASS: MFnNumericData
|
||||
//
|
||||
// *****************************************************************************
|
||||
//
|
||||
// CLASS DESCRIPTION (MFnNumericData)
|
||||
//
|
||||
// MFnNumericData allows the creation and manipulation of numeric data objects
|
||||
// for use in the dependency graph. Normally, data objects are not required
|
||||
// for the transmission of numeric data. The graph supports numeric types
|
||||
// directly (see the methods of MDataHandle).
|
||||
//
|
||||
// Numeric data objects are useful if you have an attribute that accepts
|
||||
// generic data. A generic attribute can accept multiple types of data,
|
||||
// so you cannot hardwire it to accept a specific type of numeric data.
|
||||
// So, generic attributes can only accept numeric data in the form of actual
|
||||
// data objects.
|
||||
//
|
||||
// This function set only supports pairs and triples of numeric data.
|
||||
//
|
||||
// *****************************************************************************
|
||||
|
||||
#if defined __cplusplus
|
||||
|
||||
// *****************************************************************************
|
||||
|
||||
// INCLUDED HEADER FILES
|
||||
|
||||
|
||||
#include <maya/MFnData.h>
|
||||
|
||||
// *****************************************************************************
|
||||
|
||||
// CLASS DECLARATION (MFnNumericData)
|
||||
|
||||
/// Numeric data function set.
|
||||
/**
|
||||
MFnNumericData allows the manipulation of numeric data for
|
||||
dependency node attributes.
|
||||
*/
|
||||
#ifdef _WIN32
|
||||
#pragma warning(disable: 4522)
|
||||
#endif // _WIN32
|
||||
|
||||
class OPENMAYA_EXPORT MFnNumericData : public MFnData
|
||||
{
|
||||
|
||||
declareMFn(MFnNumericData, MFnData);
|
||||
|
||||
public:
|
||||
|
||||
///
|
||||
enum Type {
|
||||
///
|
||||
kInvalid,
|
||||
/// Boolean
|
||||
kBoolean,
|
||||
/// One byte
|
||||
kByte,
|
||||
/// One character
|
||||
kChar,
|
||||
/// One short
|
||||
kShort,
|
||||
/// Two shorts
|
||||
k2Short,
|
||||
/// Three shorts
|
||||
k3Short,
|
||||
/// One long (actually int since "long" is not platform-consistent)
|
||||
kLong,
|
||||
/// One int
|
||||
kInt = kLong,
|
||||
/// Two longs (actually 2 ints since "long" is not platform-consistent)
|
||||
k2Long,
|
||||
/// Two ints
|
||||
k2Int = k2Long,
|
||||
/// Three longs (actually 3 ints since "long" is not platform-consistent)
|
||||
k3Long,
|
||||
/// Three ints
|
||||
k3Int = k3Long,
|
||||
/// One float
|
||||
kFloat,
|
||||
/// Two floats
|
||||
k2Float,
|
||||
/// Three floats
|
||||
k3Float,
|
||||
/// One double
|
||||
kDouble,
|
||||
/// Two doubles
|
||||
k2Double,
|
||||
/// Three doubles
|
||||
k3Double,
|
||||
///
|
||||
kLast
|
||||
};
|
||||
|
||||
///
|
||||
MObject create( Type dataType, MStatus* ReturnStatus = NULL );
|
||||
|
||||
///
|
||||
Type numericType( MStatus* ReturnStatus = NULL );
|
||||
///
|
||||
MStatus getData( short& val1, short& val2 );
|
||||
///
|
||||
MStatus getData( int& val1, int& val2 );
|
||||
///
|
||||
MStatus getData( float& val1, float& val2 );
|
||||
///
|
||||
MStatus getData( double& val1, double& val2 );
|
||||
///
|
||||
MStatus getData( short& val1, short& val2, short& val3 );
|
||||
///
|
||||
MStatus getData( int& val1, int& val2, int& val3 );
|
||||
///
|
||||
MStatus getData( float& val1, float& val2, float& val3 );
|
||||
///
|
||||
MStatus getData( double& val1, double& val2, double& val3 );
|
||||
|
||||
///
|
||||
MStatus setData( short val1, short val2 );
|
||||
///
|
||||
MStatus setData( int val1, int val2 );
|
||||
///
|
||||
MStatus setData( float val1, float val2 );
|
||||
///
|
||||
MStatus setData( double val1, double val2 );
|
||||
///
|
||||
MStatus setData( short val1, short val2, short val3 );
|
||||
///
|
||||
MStatus setData( int val1, int val2, int val3 );
|
||||
///
|
||||
MStatus setData( float val1, float val2, float val3 );
|
||||
///
|
||||
MStatus setData( double val1, double val2, double val3 );
|
||||
|
||||
protected:
|
||||
// No protected members
|
||||
|
||||
private:
|
||||
// No private members
|
||||
|
||||
};
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma warning(default: 4522)
|
||||
#endif // _WIN32
|
||||
|
||||
// *****************************************************************************
|
||||
#endif /* __cplusplus */
|
||||
#endif /* _MFnNumericData */
|
||||
Reference in New Issue
Block a user