Cortex
10.0.0-a4
|
#include <Box3Manipulator.h>
Public Member Functions | |
virtual MStatus | createChildren () |
virtual MStatus | connectToDependNode (const MObject &node) |
virtual void | draw (M3dView &view, const MDagPath &path, M3dView::DisplayStyle style, M3dView::DisplayStatus status) |
MManipData | vectorPlugToManipConversion (unsigned int manipIndex) |
MManipData | vectorManipToPlugConversion (unsigned int plugIndex) |
MManipData | updateCenteredManipPosition (unsigned int manipIndex) |
![]() | |
void | setPlug (MPlug &plug) |
MPlug | getPlug () |
void | setLabel (MString &label) |
MString | getLabel () |
Static Public Member Functions | |
static void * | creator () |
static MStatus | initialize () |
Static Public Attributes | |
static MTypeId | id |
static const MString | typeName |
Additional Inherited Members | |
![]() | |
MPlug | m_plug |
MString | m_label |
This class provides a manipulator for Box3f and Box3d Parameters. It displays a minimum and maximum triad manipulator, with a switch disable value 'validation. When off, the box is allowed to have its minimum corner valued be greater than its maximum corner values. Otherwise, the box corners are constrained to valid ranges.
Behavior can be further customised by adding the StringData member "box3ManipSpace" to the "UI" CompoundObject in there Parameters userData(). If this member exists, valid values are "world" and "object". When using object space, on-screen controls are transformed along with the node.
This manipulator also supports the "manipLabel" member in userData()["UI"], and draws this label underneath the constraint switch.
Curently the node is only tested/registered for Box3f Parameter types.