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

115 lines
3.1 KiB
C++
Executable File

#ifndef _MFnPartition
#define _MFnPartition
//
//-
// ==========================================================================
// 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: MFnPartition
//
// *****************************************************************************
//
// CLASS DESCRIPTION (MFnPartition)
//
// MFnPartition is the function partition that is used for manipulating
// partitions of objects. Partitions in Maya are dependency nodes, so it
// is possible for one partition to contain others.
//
// A partition is a list of dependency nodes and dag nodes. Partitions
// are useful for keeping track of lists of objects for many purposes such
// as selection or applying common rendering parameters. Partitions in
// Maya are also dependency nodes, so it is possible for one partition to
// contain others..
//
// *****************************************************************************
#if defined __cplusplus
// *****************************************************************************
// INCLUDED HEADER FILES
#include <maya/MFnDependencyNode.h>
#include <maya/MString.h>
#include <maya/MObject.h>
// *****************************************************************************
// DECLARATIONS
class MObjectArray;
class MSelectionList;
class MDagPath;
// *****************************************************************************
// CLASS DECLARATION (MFnPartition)
/// Function Partition for Partitions of Objects
/**
Function partition for partitions of objects
*/
#ifdef _WIN32
#pragma warning(disable: 4522)
#endif // _WIN32
class OPENMAYA_EXPORT MFnPartition : public MFnDependencyNode
{
declareMFn(MFnPartition, MFnDependencyNode);
public:
///
enum Restriction {
///
kNone,
///
kVerticesOnly,
///
kEdgesOnly,
///
kFacetsOnly,
///
kEditPointsOnly,
///
kRenderableOnly
};
///
MObject create( bool isRenderPartition = false,
MStatus * ReturnStatus = NULL );
///
bool isRenderPartition( MStatus * ReturnStatus = NULL ) const;
///
MStatus addMember( const MObject &set );
///
MStatus removeMember( const MObject &set );
protected:
// No protected members
private:
// No private members
};
#ifdef _WIN32
#pragma warning(default: 4522)
#endif // _WIN32
// *****************************************************************************
#endif /* __cplusplus */
#endif /* _MFnPartition */