tge/lib/mayasdk6/include/maya/MFnLattice.h
2025-02-17 23:17:30 -06:00

107 lines
3.1 KiB
C++
Executable File

#ifndef _MFnLattice
#define _MFnLattice
//
//-
// ==========================================================================
// 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: MFnLattice
//
// *****************************************************************************
//
// CLASS DESCRIPTION (MFnLattice)
//
// MFnLattice is the function set for lattice shapes and lattice geometry.
// It can be used on lattices in the DAG or on lattice geometry from a
// dependency node attribute.
//
// Lattices are most commonly used for specifying FFDs (free-form
// deformations). See MFnLatticeDeformer for more information on those.
//
// MFnLatticeData can be used to create new lattice data objects for use with
// dependency node attributes.
//
// *****************************************************************************
#if defined __cplusplus
// *****************************************************************************
// INCLUDED HEADER FILES
#include <maya/MFnDagNode.h>
#include <maya/MPoint.h>
#include <maya/MVector.h>
#include <maya/MObject.h>
#include <maya/MTransformationMatrix.h>
// *****************************************************************************
// DECLARATIONS
class MPointArray;
class MDoubleArray;
class MPoint;
class MVector;
class MDagPath;
class MPtrBase;
// *****************************************************************************
// CLASS DECLARATION (MFnLattice)
/// Lattice function set (OpenMayaAnim)
/**
Function set for lattice shapes and lattice geometry
*/
#ifdef _WIN32
#pragma warning(disable: 4522)
#endif // _WIN32
class OPENMAYAANIM_EXPORT MFnLattice : public MFnDagNode
{
declareDagMFn(MFnLattice, MFnDagNode);
public:
///
MObject create( unsigned xDiv, unsigned yDiv, unsigned zDiv,
MObject parentOrOwner = MObject::kNullObj,
MStatus* ReturnStatus = NULL );
///
MStatus reset( double sSize = 1.0 , double tSize = 1.0,
double uSize = 1.0 );
///
MStatus getDivisions( unsigned & s, unsigned & t, unsigned & u );
///
MStatus setDivisions( unsigned s, unsigned t, unsigned u );
///
MPoint & point( unsigned s, unsigned t, unsigned u,
MStatus* ReturnStatus = NULL );
protected:
virtual bool objectChanged( MFn::Type, MStatus * );
private:
// No private members
};
#ifdef _WIN32
#pragma warning(default: 4522)
#endif // _WIN32
// *****************************************************************************
#endif /* __cplusplus */
#endif /* _MFnLattice */