Inheritance diagram for HAPI::NetworkModel:
Since Class and Domain are, in many ways, conceptually and functionally similar, the NetworkModel class is introduced to capture this similarity. It contains functionality and variables that are identical for the two classes.
Public Member Functions | |
double | INFINITY () const |
The infinity value used by Hugin. | |
virtual void | saveAsNet (const std::string &filename)=0 |
Write a NET description of the networkModel to a file. | |
virtual std::string | getAttribute (const std::string &key) const=0 |
Return the value associated with key in the attribute list for this NetworkModel. | |
virtual std::string | getFileName () const=0 |
Return the file name most recently used for loading or saving this NetworkModel. | |
virtual NodeList | getNodes () const=0 |
Return the Nodes of this NetworkModel. | |
virtual Node * | getNodeByName (const std::string &name) const=0 |
Return the node in the NetworkModel, which is identified by the given name. | |
void | setUserData (void *data) |
Set the user data field of this NetworkModel. | |
void * | getUserData () const |
Return the value stored within the user data slot of this NetworkModel. | |
virtual NodeList | parseNodes (const std::string &filename, ParseListener *errorHandler)=0 |
Create a nodelist from the data in the given file. | |
virtual void | setAttribute (const std::string &key, const std::string &value)=0 |
Insert the key/value pair in the attribute list for this NetworkModel. | |
virtual void | setLogFile (FILE *log)=0 |
Set the file to be used for logging by subsequent compilation, triangulation, and table generation operations. | |
virtual bool | hasAttribute (const std::string &key) const=0 |
Test if this NetworkModel contains an attribute with the specified key. | |
virtual std::pair< size_t, size_t > | getNodeSize () const=0 |
Return the size of the displayed nodes. | |
virtual void | setNodeSize (size_t width, size_t height)=0 |
Set the size of the nodes. | |
virtual AttributeList | getAttributes () const=0 |
Return all the attributes associated with this NetworkModel. | |
virtual void | generateTables ()=0 |
Generate tables for all Nodes, having a Model, in the NetworkModeL. |
|
Generate tables for all Nodes, having a Model, in the NetworkModeL. This is done by calling Node::GenerateTable () for each applicable Node. The operation is aborted, if table generation fails for some Node. This may leave the NetworkModel in a state, where some Nodes have got generated Tables, some have not got generated Tables, and one has a partially generated Table. In this case, an exception is thrown. Implemented in HAPI::Class, and HAPI::Domain. |
|
Return the value associated with key in the attribute list for this NetworkModel.
Implemented in HAPI::Class, and HAPI::Domain. |
|
Return all the attributes associated with this NetworkModel.
Implemented in HAPI::Class, and HAPI::Domain. |
|
Return the file name most recently used for loading or saving this NetworkModel.
Implemented in HAPI::Class, and HAPI::Domain. |
|
Return the node in the NetworkModel, which is identified by the given name.
Implemented in HAPI::Class, and HAPI::Domain. |
|
Return the Nodes of this NetworkModel. No ordering can be inferred by the user.
Implemented in HAPI::Class, and HAPI::Domain. |
|
Return the size of the displayed nodes.
Implemented in HAPI::Class, and HAPI::Domain. |
|
Return the value stored within the user data slot of this NetworkModel. If the stored value is NULL, or if no value has been stored, NULL is returned. It is the responsibility of the application programmer to ensure that the data is valid, that pointers are accessed correctly, etc. Also note that when you delete a NetworkModel, Hugin does not attempt to delete the data pointed to by the user data slot. It is the responsibility of the user.
|
|
Test if this NetworkModel contains an attribute with the specified key.
Implemented in HAPI::Class, and HAPI::Domain. |
|
The infinity value used by Hugin.
|
|
Create a nodelist from the data in the given file. This is typically used together with the triangulateWithOrder function.
Implemented in HAPI::Class, and HAPI::Domain. |
|
Write a NET description of the networkModel to a file.
Implemented in HAPI::Class, and HAPI::Domain. |
|
Insert the key/value pair in the attribute list for this NetworkModel. If the key is already defined, the value is updated. If no value is provided, the attribute is removed.
Implemented in HAPI::Class, and HAPI::Domain. |
|
Set the file to be used for logging by subsequent compilation, triangulation, and table generation operations.
Implemented in HAPI::Class, and HAPI::Domain. |
|
Set the size of the nodes.
Implemented in HAPI::Class, and HAPI::Domain. |
|
Set the user data field of this NetworkModel. The Hugin API provides a slot within each NetworkModel object for use exclusively by the user/application. This slot can hold a pointer to arbitrary data, such as a file, a function pointer, etc. Please note that Hugin does not do anything to the user data. Data is not even copied. Only the pointer to the data is stored.
|