#include <GA_PrimitiveFactory.h>
|
class | iterator |
| Class to traverse all primitive definitions in the factory. More...
|
|
|
| GA_PrimitiveFactory (const UT_FSATable *factory_ids, unsigned non_factory_id_start, int nentries_hint=0, bool isforprimarydetail=true) |
|
| ~GA_PrimitiveFactory () |
|
GA_PrimitiveDefinition * | registerDefinition (const UT_StringHolder &name, GA_PrimitiveBlockConstructor construct, GA_PrimitiveFamilyMask mask=GA_FAMILY_NONE, const UT_StringHolder &label=UT_StringHolder(), const UT_StringHolder &icon=UT_StringHolder()) |
|
int | getPrimTypeCount () const |
|
const GA_PrimitiveDefinition * | lookupDefinition (const UT_StringRef &name) const |
|
const GA_PrimitiveDefinition * | lookupDefinition (const GA_PrimitiveTypeId &id) const |
|
const GA_PrimitiveDefinition * | lookupDefinition (int id) const |
|
GA_PrimitiveTypeId | getFactoryTypeId (int id) const |
| Given a factory type id, return the corresponding GA_PrimitiveTypeId. More...
|
|
GA_PrimitiveTypeMask | getTypeMaskAll () const |
|
void | getDefinitionIdRange (unsigned &first, unsigned &last) const |
| Query the first and last primitive type id in this factory. More...
|
|
void | getDetailIntrinsicNames (UT_StringArray &names) const |
|
bool | isForPrimaryDetail () const |
|
iterator | begin () const |
|
void | addPrimTypeAddedCallback (const UT_Functor< void > &cb) |
| add a callback to call when a new primitive type is added More...
|
|
|
void | addPrimitiveIntrinsicNames (const GA_PrimitiveTypeId &id, UT_ArrayStringSet &names) const |
|
|
bool | registerIO (GA_IO *io) |
|
const GA_IO * | findIO (const char *name) const |
|
void | getIONames (UT_StringArray &names) const |
|
GA_PrimitiveFactory::GA_PrimitiveFactory |
( |
const UT_FSATable * |
factory_ids, |
|
|
unsigned |
non_factory_id_start, |
|
|
int |
nentries_hint = 0 , |
|
|
bool |
isforprimarydetail = true |
|
) |
| |
GA_PrimitiveFactory::~GA_PrimitiveFactory |
( |
| ) |
|
Fill out the list of intrinsic names for the given primitive type. The intrinsic names are added to the set.
add a callback to call when a new primitive type is added
Return a list of all primitives defined by DSOs.
const GA_IO* GA_PrimitiveFactory::findIO |
( |
const char * |
name | ) |
const |
|
inline |
void GA_PrimitiveFactory::getDefinitionIdRange |
( |
unsigned & |
first, |
|
|
unsigned & |
last |
|
) |
| const |
Query the first and last primitive type id in this factory.
Get the names of all detail intrinsics. You can avoid creating a detail to do this by calling GUgetFactory().getDetailIntrinsics(names);
Definition at line 109 of file GA_PrimitiveFactory.h.
int GA_PrimitiveFactory::getPrimTypeCount |
( |
| ) |
const |
|
inline |
Return the number of possible primitive types in this factory. Primitive type id's may not always be contiguous (i.e. there may be invalid primitive id's in the range).
Definition at line 70 of file GA_PrimitiveFactory.h.
Get a primitive type mask representing all known types registered by this primitive factory.
bool GA_PrimitiveFactory::isForPrimaryDetail |
( |
| ) |
const |
|
inline |
Lookup an existing primitive definition, by either token or primitive identifier.
- Examples:
- tetprim/GEO_PrimTetra.C.
Register a new primitive definition. In the event of a name collision with an existing definition, we return NULL.
- Examples:
- tetprim/GEO_PrimTetra.C.
bool GA_PrimitiveFactory::registerIO |
( |
GA_IO * |
io | ) |
|
|
inline |
The documentation for this class was generated from the following file: