#include <Interface_Category.hxx>
Public Member Functions | |
void * | operator new (size_t, void *anAddress) |
void * | operator new (size_t size) |
void | operator delete (void *anAddress) |
Standard_EXPORT | Interface_Category () |
Creates a Category, with no protocol yet . | |
Standard_EXPORT | Interface_Category (const Handle(Interface_Protocol)&proto) |
Creates a Category with a given protocol . | |
Standard_EXPORT | Interface_Category (const Handle(Interface_GTool)>ool) |
Creates a Category with a given GTool . | |
Standard_EXPORT void | SetProtocol (const Handle(Interface_Protocol)&proto) |
Sets/Changes Protocol . | |
Standard_EXPORT Standard_Integer | CatNum (const Handle(Standard_Transient)&ent, const Interface_ShareTool &shares) |
Determines the Category Number for an entity in its context, by using general service CategoryNumber . | |
Standard_EXPORT void | ClearNums () |
Clears the recorded list of category numbers for a Model . | |
Standard_EXPORT void | Compute (const Handle(Interface_InterfaceModel)&model, const Interface_ShareTool &shares) |
Computes the Category Number for each entity and records it, in an array (ent.number -> category number) Hence, it can be queried by the method Num. The Model itself is not recorded, this method is intended to be used in a wider context (which detains also a Graph, etc) . | |
Standard_EXPORT Standard_Integer | Num (const Standard_Integer nument) const |
Returns the category number recorded for an entity number Returns 0 if out of range . | |
Static Public Member Functions | |
static Standard_EXPORT Standard_Integer | AddCategory (const Standard_CString name) |
Records a new Category defined by its names, produces a number New if not yet recorded . | |
static Standard_EXPORT Standard_Integer | NbCategories () |
Returns the count of recorded categories . | |
static Standard_EXPORT Standard_CString | Name (const Standard_Integer num) |
Returns the name of a category, according to its number . | |
static Standard_EXPORT Standard_Integer | Number (const Standard_CString name) |
Returns the number of a category, according to its name . | |
static Standard_EXPORT void | Init () |
Default initialisation (protected against several calls : passes only once) . | |
Private Attributes | |
Handle_Interface_GTool | thegtool |
Handle_TColStd_HArray1OfInteger | thenum |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|