All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GA_PrimitiveFactory Class Reference

#include <GA_PrimitiveFactory.h>


class  iterator
 Class to traverse all primitive definitions in the factory. More...

Public Types

typedef UT_ArrayStringMap
< UT_StringHolder

Public Member Functions

 GA_PrimitiveFactory (const UT_FSATable *factory_ids, unsigned non_factory_id_start, int nentries_hint=0, bool isforprimarydetail=true)
 ~GA_PrimitiveFactory ()
GA_PrimitiveDefinitionregisterDefinition (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_PrimitiveDefinitionlookupDefinition (const UT_StringRef &name) const
const GA_PrimitiveDefinitionlookupDefinition (const GA_PrimitiveTypeId &id) const
const GA_PrimitiveDefinitionlookupDefinition (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 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

Static Public Member Functions

static const ga_DSODefinitionsdsoDefinitions ()
 Return a list of all primitives defined by DSOs. More...


class GA_Detail
class GA_PrimitiveDefinition

Detailed Description

Member Typedef Documentation

Constructor & Destructor Documentation

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 ( )

Member Function Documentation

void GA_PrimitiveFactory::addPrimitiveIntrinsicNames ( const GA_PrimitiveTypeId id,
UT_ArrayStringSet names 
) const

Fill out the list of intrinsic names for the given primitive type. The intrinsic names are added to the set.

iterator GA_PrimitiveFactory::begin ( void  ) const

Definition at line 184 of file GA_PrimitiveFactory.h.

static const ga_DSODefinitions& GA_PrimitiveFactory::dsoDefinitions ( )

Return a list of all primitives defined by DSOs.

const GA_IO* GA_PrimitiveFactory::findIO ( const char *  name) const

Interface to the IO table – this may not exist in future versions

Definition at line 190 of file GA_PrimitiveFactory.h.

void GA_PrimitiveFactory::getDefinitionIdRange ( unsigned &  first,
unsigned &  last 
) const

Query the first and last primitive type id in this factory.

void GA_PrimitiveFactory::getDetailIntrinsicNames ( UT_StringArray names) const

Get the names of all detail intrinsics. You can avoid creating a detail to do this by calling GUgetFactory().getDetailIntrinsics(names);

Definition at line 107 of file GA_PrimitiveFactory.h.

GA_PrimitiveTypeId GA_PrimitiveFactory::getFactoryTypeId ( int  id) const

Given a factory type id, return the corresponding GA_PrimitiveTypeId.

Definition at line 79 of file GA_PrimitiveFactory.h.

void GA_PrimitiveFactory::getIONames ( UT_StringArray names) const

Interface to the IO table – this may not exist in future versions

Definition at line 192 of file GA_PrimitiveFactory.h.

int GA_PrimitiveFactory::getPrimTypeCount ( ) const

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 68 of file GA_PrimitiveFactory.h.

GA_PrimitiveTypeMask GA_PrimitiveFactory::getTypeMaskAll ( ) const

Get a primitive type mask representing all known types registered by this primitive factory.

bool GA_PrimitiveFactory::isForPrimaryDetail ( ) const

Returns true if this factory is for use by GEO_Detail and false if this type is for use by GD_Detail.

Definition at line 114 of file GA_PrimitiveFactory.h.

const GA_PrimitiveDefinition* GA_PrimitiveFactory::lookupDefinition ( const UT_StringRef name) const

Lookup an existing primitive definition, by either token or primitive identifier.

const GA_PrimitiveDefinition* GA_PrimitiveFactory::lookupDefinition ( const GA_PrimitiveTypeId id) const
const GA_PrimitiveDefinition* GA_PrimitiveFactory::lookupDefinition ( int  id) const
GA_PrimitiveDefinition* GA_PrimitiveFactory::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() 

Register a new primitive definition. In the event of a name collision with an existing definition, we return NULL.

bool GA_PrimitiveFactory::registerIO ( GA_IO *  io)

Interface to the IO table – this may not exist in future versions

Definition at line 188 of file GA_PrimitiveFactory.h.

Friends And Related Function Documentation

friend class GA_Detail

Definition at line 224 of file GA_PrimitiveFactory.h.

Definition at line 225 of file GA_PrimitiveFactory.h.

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