Initial commit
This commit is contained in:
132
Torque/SDK/lib/mayasdk5/include/maya/MPxObjectSet.h
Normal file
132
Torque/SDK/lib/mayasdk5/include/maya/MPxObjectSet.h
Normal file
@@ -0,0 +1,132 @@
|
||||
#ifndef _MPxObjectSet
|
||||
#define _MPxObjectSet
|
||||
//
|
||||
// *****************************************************************************
|
||||
//
|
||||
// Copyright (C) 1997-2003 Alias|Wavefront Inc.
|
||||
//
|
||||
// These coded instructions, statements and computer programs contain
|
||||
// unpublished information proprietary to Alias|Wavefront Inc. and are
|
||||
// protected by Canadian and US federal copyright laws. They may not be
|
||||
// disclosed to third parties or copied or duplicated, in whole or in part,
|
||||
// without prior written consent of Alias|Wavefront Inc.
|
||||
//
|
||||
// Unpublished-rights reserved under the Copyright Laws of the United States.
|
||||
//
|
||||
// *****************************************************************************
|
||||
//
|
||||
// CLASS: MPxObjectSet
|
||||
//
|
||||
// *****************************************************************************
|
||||
//
|
||||
// CLASS DESCRIPTION (MPxObjectSet)
|
||||
//
|
||||
// MPxObjectSet is the parent class of all user defined object sets.
|
||||
// User defined sets are dependency nodes.
|
||||
//
|
||||
// This class can be used to implement new kinds of sets within maya that
|
||||
// can have selectable/manipulatable components and behave in a similar
|
||||
// manner to the objectSet node included in maya.
|
||||
//
|
||||
// *****************************************************************************
|
||||
|
||||
#if defined __cplusplus
|
||||
|
||||
// *****************************************************************************
|
||||
|
||||
// INCLUDED HEADER FILES
|
||||
|
||||
|
||||
#include <maya/MTypes.h>
|
||||
#include <maya/MPxNode.h>
|
||||
|
||||
|
||||
// *****************************************************************************
|
||||
|
||||
// CLASS DECLARATION (MPxObjectSet)
|
||||
|
||||
/// Parent class of all user defined object sets
|
||||
/**
|
||||
Create user defined sets.
|
||||
*/
|
||||
#ifdef _WIN32
|
||||
#pragma warning(disable: 4522)
|
||||
#endif // _WIN32
|
||||
|
||||
class OPENMAYA_EXPORT MPxObjectSet : public MPxNode
|
||||
{
|
||||
public:
|
||||
|
||||
///
|
||||
MPxObjectSet();
|
||||
///
|
||||
virtual ~MPxObjectSet();
|
||||
///
|
||||
virtual MPxNode::Type type() const;
|
||||
|
||||
//
|
||||
// Inherited attributes
|
||||
//
|
||||
|
||||
/// Connections to this attribute specify the dagNodes or
|
||||
/// parts (components) of the same that are members of this set.
|
||||
static MObject dagSetMembers;
|
||||
|
||||
/// References to dependNode attributes which defines set membership.
|
||||
static MObject DNSetMembers;
|
||||
|
||||
/// The index of a user defined color in which the dag object component
|
||||
/// members should appear. A value of -1 disables use of the color.
|
||||
/// Values outside the range [-1,7] may give unpredictable results.
|
||||
static MObject memberWireframeColor;
|
||||
|
||||
/// A text string to annotate the set.
|
||||
static MObject annotation;
|
||||
|
||||
/// This attribute is obsolete and should no longer be used
|
||||
static MObject isLayer;
|
||||
|
||||
/// Is set membership restricted to objects with vertices?
|
||||
/// This attribute should not be explicitly changed by the user.
|
||||
static MObject verticesOnlySet;
|
||||
|
||||
/// Is set membership restricted to objects with edges?
|
||||
/// This attribute should not be explicitly changed by the user.
|
||||
static MObject edgesOnlySet;
|
||||
|
||||
/// Is set membership restricted to objects with facets?
|
||||
/// This attribute should not be explicitly changed by the user.
|
||||
static MObject facetsOnlySet;
|
||||
|
||||
/// Is set membership restricted to objects with edit points?
|
||||
/// This attribute should not be explicitly changed by the user.
|
||||
static MObject editPointsOnlySet;
|
||||
|
||||
/// Is set membership restricted to renderable objects only?
|
||||
/// This attribute should not be explicitly changed by the user.
|
||||
static MObject renderableOnlySet;
|
||||
|
||||
/// References to the partition nodes this set is a member of.
|
||||
static MObject partition;
|
||||
|
||||
/// When parts (components) of dagNodes are in the set, connections
|
||||
/// are made to this attribute to hold references to groupId nodes,
|
||||
/// with the id uniquely identifying the group in the dagNode.
|
||||
static MObject groupNodes;
|
||||
|
||||
/// References to nodes that operate upon this set, such as deformers.
|
||||
static MObject usedByNodes;
|
||||
|
||||
private:
|
||||
static void initialSetup();
|
||||
static const char* className();
|
||||
|
||||
};
|
||||
|
||||
#ifdef _WIN32
|
||||
#pragma warning(default: 4522)
|
||||
#endif // _WIN32
|
||||
|
||||
// *****************************************************************************
|
||||
#endif /* __cplusplus */
|
||||
#endif /* _MPxObjectSet */
|
||||
Reference in New Issue
Block a user