AL_USDMaya  0.29.4
USD to Maya Bridge
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
AL::usdmaya::nodes::SelectionList Class Reference

Used as a way to construct a simple selection list that allows for selection highlighting without creating/destroying transforms. More...

#include <ProxyShape.h>

Public Types

typedef TfHashSet< SdfPath,
SdfPath::Hash > 
SdfPathHashSet
 a hash set of SdfPaths
 

Public Member Functions

 SelectionList ()=default
 default ctor
 
 SelectionList (const SelectionList &sl)=default
 copy ctor More...
 
 ~SelectionList ()=default
 dtor
 
void clear ()
 clear the selection list
 
void add (SdfPath path)
 adds a path to the selection More...
 
void remove (SdfPath path)
 removes the path from the selection More...
 
void toggle (SdfPath path)
 toggles the path in the selection More...
 
bool isSelected (const SdfPath &path) const
 toggles the path in the selection More...
 
const SdfPathHashSetpaths () const
 the paths in the selection list More...
 
size_t size () const
 the paths in the selection list More...
 

Detailed Description

Used as a way to construct a simple selection list that allows for selection highlighting without creating/destroying transforms.

Constructor & Destructor Documentation

AL::usdmaya::nodes::SelectionList::SelectionList ( const SelectionList sl)
default

copy ctor

Parameters
slthe selection list to copy

Member Function Documentation

void AL::usdmaya::nodes::SelectionList::add ( SdfPath  path)
inline

adds a path to the selection

Parameters
pathto add
bool AL::usdmaya::nodes::SelectionList::isSelected ( const SdfPath &  path) const
inline

toggles the path in the selection

Parameters
pathto toggle
const SdfPathHashSet& AL::usdmaya::nodes::SelectionList::paths ( ) const
inline

the paths in the selection list

Returns
the selected paths
void AL::usdmaya::nodes::SelectionList::remove ( SdfPath  path)
inline

removes the path from the selection

Parameters
pathto remove
size_t AL::usdmaya::nodes::SelectionList::size ( ) const
inline

the paths in the selection list

Returns
the selected paths
void AL::usdmaya::nodes::SelectionList::toggle ( SdfPath  path)
inline

toggles the path in the selection

Parameters
pathto toggle

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