|
SHAPER
9.15.0
|
The Xao class describes the XAO format. More...
Public Member Functions | |
| Xao () | |
| Default constructor. More... | |
| Xao (const std::string &author, const std::string &version) | |
| Constructor with author and version. More... | |
| virtual | ~Xao () |
| Destructor. More... | |
| const std::string | getAuthor () const |
| Gets the author of the file. More... | |
| void | setAuthor (const std::string &author) |
| Sets the author of the file. More... | |
| const std::string | getVersion () const |
| Gets the version of the file. More... | |
| void | setVersion (const std::string &version) |
| Sets the version of the file. More... | |
| Geometry * | getGeometry () const |
| Gets the geometry. More... | |
| void | setGeometry (Geometry *geometry) |
| Sets the geometry. More... | |
| int | countGroups () const |
| Gets the number of groups. More... | |
| Group * | getGroup (int index) |
| Gets a group. More... | |
| Group * | addGroup (XAO::Dimension dim, const std::string &name=std::string("")) |
| Adds a group. More... | |
| bool | removeGroup (Group *group) |
| Removes a group. More... | |
| int | countFields () const |
| Gets the number of fields. More... | |
| XAO::Type | getFieldType (int index) |
| Gets the type of a field. More... | |
| Field * | getField (int index) |
| Gets a field. More... | |
| BooleanField * | getBooleanField (int index) |
| DoubleField * | getDoubleField (int index) |
| IntegerField * | getIntegerField (int index) |
| StringField * | getStringField (int index) |
| Field * | addField (XAO::Type type, XAO::Dimension dim, int nbComponents, const std::string &name=std::string("")) |
| Adds a field. More... | |
| BooleanField * | addBooleanField (XAO::Dimension dim, int nbComponents, const std::string &name=std::string("")) |
| IntegerField * | addIntegerField (XAO::Dimension dim, int nbComponents, const std::string &name=std::string("")) |
| DoubleField * | addDoubleField (XAO::Dimension dim, int nbComponents, const std::string &name=std::string("")) |
| StringField * | addStringField (XAO::Dimension dim, int nbComponents, const std::string &name=std::string("")) |
| bool | removeField (Field *field) |
| Removes a field. More... | |
| bool | exportXAO (const std::string &fileName, const std::string &shapeFileName) |
| Exports this XAO object to a file. More... | |
| const std::string | getXML () |
| Gets the XML corresponding to this XAO. More... | |
| bool | importXAO (const std::string &fileName) |
| Imports an XAO file into this object. More... | |
| bool | setXML (const std::string &xml) |
| Sets an XML describing an XAO format to this object. More... | |
The Xao class describes the XAO format.
| Xao::Xao | ( | ) |
Default constructor.
| Xao::Xao | ( | const std::string & | author, |
| const std::string & | version | ||
| ) |
Constructor with author and version.
| author | the author of the file. |
| version | the version of the XAO format. |
|
virtual |
Destructor.
|
inline |
Gets the author of the file.
|
inline |
Sets the author of the file.
| author | the author to set. |
|
inline |
Gets the version of the file.
|
inline |
Sets the version of the file.
| version | the version to set. |
|
inline |
Gets the geometry.
|
inline |
Sets the geometry.
| geometry | the geometry to set. |
| int Xao::countGroups | ( | ) | const |
Gets the number of groups.
| Group * Xao::getGroup | ( | int | index | ) |
Gets a group.
| index | the index of the wanted group. |
| Group * Xao::addGroup | ( | XAO::Dimension | dim, |
| const std::string & | name = std::string("") |
||
| ) |
Adds a group.
| dim | the dimension of the group. |
| name | the name of the group. |
| bool Xao::removeGroup | ( | Group * | group | ) |
Removes a group.
| group | the group to remove. |
| int Xao::countFields | ( | ) | const |
Gets the number of fields.
| XAO::Type Xao::getFieldType | ( | int | index | ) |
Gets the type of a field.
| index | the index of the wanted field. |
| Field * Xao::getField | ( | int | index | ) |
Gets a field.
| index | the index of the wanted field. |
| Field * Xao::addField | ( | XAO::Type | type, |
| XAO::Dimension | dim, | ||
| int | nbComponents, | ||
| const std::string & | name = std::string("") |
||
| ) |
Adds a field.
| type | the type of the field. |
| dim | the dimension of the field. |
| nbComponents | the number of components in the field. |
| name | the name of the field. |
| bool Xao::removeField | ( | Field * | field | ) |
Removes a field.
| field | the field to remove. |
| bool Xao::exportXAO | ( | const std::string & | fileName, |
| const std::string & | shapeFileName | ||
| ) |
Exports this XAO object to a file.
| fileName | the name of the file to create. |
| shapeFileName | if not empty, export the shape to this external file. |
| const std::string Xao::getXML | ( | ) |
Gets the XML corresponding to this XAO.
| bool Xao::importXAO | ( | const std::string & | fileName | ) |
Imports an XAO file into this object.
| fileName | the name of the file to import. |
| bool Xao::setXML | ( | const std::string & | xml | ) |
Sets an XML describing an XAO format to this object.
| xml | the XML to set. |