Cortex  10.0.0-a4
Public Member Functions | Static Public Member Functions | Static Public Attributes | Protected Member Functions | Static Protected Attributes | Friends | List of all members
IECoreMaya::SceneShapeInterface Class Reference

#include <SceneShapeInterface.h>

+ Inheritance diagram for IECoreMaya::SceneShapeInterface:

Public Member Functions

virtual void postConstructor ()
 
virtual bool isBounded () const
 
virtual MBoundingBox boundingBox () const
 
virtual MStatus setDependentsDirty (const MPlug &plug, MPlugArray &plugArray)
 
virtual MStatus compute (const MPlug &plug, MDataBlock &dataBlock)
 
virtual MatchResult matchComponent (const MSelectionList &item, const MAttributeSpecArray &spec, MSelectionList &list)
 
virtual MPxGeometryIterator * geometryIteratorSetup (MObjectArray &, MObject &, bool)
 
virtual void transformUsing (const MMatrix &mat, const MObjectArray &componentList, MPxSurfaceShape::MVertexCachingMode cachingMode, MPointArray *pointCache)
 
virtual IECore::ConstSceneInterfacePtr getSceneInterface ()
 Returns the sceneInterface for this node. Needs to be implemented by derived classes.
 
IECoreGL::ConstScenePtr glScene ()
 Returns the GL Scene representing the sceneInterface for the preview plug values ( objectOnly, drawGeometry, drawLocators, drawChildBounds )
 
IECoreGL::GroupPtr glGroup (const IECore::InternedString &name)
 Returns GL Group matching the given path name.
 
int selectionIndex (const IECore::InternedString &name)
 Returns the internal index stored for the given path.
 
IECore::InternedString selectionName (int index)
 Returns the path name for the given index.
 
const std::vector< IECore::InternedString > & componentNames () const
 Returns all component names currently existing in the shape.
 
double time () const
 Return the value of the time plug for the SceneShape.
 

Static Public Member Functions

static void * creator ()
 
static MStatus initialize ()
 

Static Public Attributes

static MTypeId id
 
static MObject aObjectOnly
 
static MObject aDrawGeometry
 
static MObject aDrawRootBound
 
static MObject aDrawChildBounds
 
static MObject aDrawTagsFilter
 

Protected Member Functions

void setDirty ()
 Flags the GL scene as dirty, for use by derived classes.
 

Static Protected Attributes

static MObject aTime
 
static MObject aOutTime
 
static MObject aOutputObjects
 
static MObject aObjectDependency
 
static MObject aAttributes
 
static MObject aTransform
 
static MObject aBound
 

Friends

class SceneShapeInterfaceComponentBoundIterator
 

Detailed Description

A base class for a maya shape that can read an IECore::SceneInterface. getSceneInterface should be implemented by any derived class Builds a glScene for preview, which can draw all geometry in the hierarchy and the child bounds Can be used as objectOnly, in which case the glScene will only represent the current path of the sceneInterface or not objectOnly in which case the entire hierarchy starting from the current path is represented. Computes queries on paths to get transforms, bounds and objects as outputs, as well as attributes. The query paths are relative to the current sceneInterface path. Queries can be accessed in local space or world space (starting from the current path).

Member Function Documentation

virtual MPxGeometryIterator* IECoreMaya::SceneShapeInterface::geometryIteratorSetup ( MObjectArray &  ,
MObject &  ,
bool   
)
virtual

This method is overridden to supply a geometry iterator, which maya uses to work out the bounding boxes of the components you've selected in the viewport

virtual void IECoreMaya::SceneShapeInterface::transformUsing ( const MMatrix &  mat,
const MObjectArray &  componentList,
MPxSurfaceShape::MVertexCachingMode  cachingMode,
MPointArray *  pointCache 
)
virtual

This is a blank override, to stop maya offering you a rotation manipulator for the procedural components, then crashing when you try and use it (maya 2013)


The documentation for this class was generated from the following file: