Cortex  10.0.0-a4
Public Member Functions | List of all members
IECoreHoudini::DetailSplitter Class Reference

#include <DetailSplitter.h>

+ Inheritance diagram for IECoreHoudini::DetailSplitter:

Public Member Functions

 IE_CORE_DECLAREMEMBERPTR (DetailSplitter)
 
 DetailSplitter (const GU_DetailHandle &handle, const std::string &key="name")
 
const GU_DetailHandle split (const std::string &value)
 
void values (std::vector< std::string > &result)
 Fills the result vector with all valid values in the GU_Detail.
 
const GU_DetailHandle & handle () const
 Returns the handle held by the splitter.
 
- Public Member Functions inherited from IECore::RefCounted
 IE_CORE_DECLAREMEMBERPTR (RefCounted)
 
void addRef () const
 Add a reference to the current object.
 
void removeRef () const
 Remove a reference from the current object.
 
RefCount refCount () const
 Returns the current reference count.
 

Additional Inherited Members

- Public Types inherited from IECore::RefCounted
typedef size_t RefCount
 

Detailed Description

DetailSplitter is a convenience class for extracting select bits of geometry from a GU_Detail. It is intended to improve performance when making multiple calls to split the same detail. The default use is splitting based on the name attribute, but any primitive string attribute could be used.

Constructor & Destructor Documentation

IECoreHoudini::DetailSplitter::DetailSplitter ( const GU_DetailHandle &  handle,
const std::string &  key = "name" 
)

Create a DetailSplitter which will split the handle by the given key.

Parameters
keyThe name of a primitive string attribute on the GU_Detail.

Member Function Documentation

const GU_DetailHandle IECoreHoudini::DetailSplitter::split ( const std::string &  value)

Creates and returns a handle to a new GU_Detail which contains only the primitives that match the value requested.


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