Base class for geometries.
#include <XAO_Geometry.hxx>
Static Public Member Functions | |
static Geometry * | createGeometry (XAO::Format format) |
Creates a geometry. More... | |
Protected Member Functions | |
Geometry (const std::string &name) | |
Constructor. More... | |
name the name of the geometry. | |
Creates a geometry.
| |
std::string | m_name |
GeometricElementList | m_vertices |
GeometricElementList | m_edges |
GeometricElementList | m_faces |
GeometricElementList | m_solids |
bool | m_readOnly |
void | checkReadOnly () |
static Geometry * | createGeometry (XAO::Format format, const std::string &name) |
virtual | ~Geometry () |
Destructor. More... | |
const std::string | getName () |
Gets the name of the geometry. More... | |
void | setName (const std::string &name) |
Sets the name of the geometry. More... | |
virtual XAO::Format | getFormat ()=0 |
Gets the format of the geometry. More... | |
virtual const std::string | getShapeString ()=0 |
virtual void | setShapeString (const std::string &shape)=0 |
virtual void | writeShapeFile (const std::string &fileName)=0 |
virtual void | readShapeFile (const std::string &fileName)=0 |
int | countElements (XAO::Dimension dim) const |
int | countVertices () const |
int | countEdges () const |
int | countFaces () const |
int | countSolids () const |
void | setCountVertices (int nb) |
void | setCountEdges (int nb) |
void | setCountFaces (int nb) |
void | setCountSolids (int nb) |
const std::string | getVertexName (int index) |
const std::string | getEdgeName (int index) |
const std::string | getFaceName (int index) |
const std::string | getSolidName (int index) |
void | setVertexName (int index, const std::string &name) |
void | setEdgeName (int index, const std::string &name) |
void | setFaceName (int index, const std::string &name) |
void | setSolidName (int index, const std::string &name) |
bool | hasVertexName (int index) |
bool | hasEdgeName (int index) |
bool | hasFaceName (int index) |
bool | hasSolidName (int index) |
const std::string | getVertexReference (int index) |
const std::string | getEdgeReference (int index) |
const std::string | getFaceReference (int index) |
const std::string | getSolidReference (int index) |
const std::string | getElementReference (XAO::Dimension dim, int index) |
void | setVertexReference (int index, const std::string &reference) |
void | setEdgeReference (int index, const std::string &reference) |
void | setFaceReference (int index, const std::string &reference) |
void | setSolidReference (int index, const std::string &reference) |
void | setVertex (int index, const std::string &name, const std::string &reference) |
void | setEdge (int index, const std::string &name, const std::string &reference) |
void | setFace (int index, const std::string &name, const std::string &reference) |
void | setSolid (int index, const std::string &name, const std::string &reference) |
int | getVertexIndexByReference (const std::string &reference) |
int | getEdgeIndexByReference (const std::string &reference) |
int | getFaceIndexByReference (const std::string &reference) |
int | getSolidIndexByReference (const std::string &reference) |
int | getElementIndexByReference (XAO::Dimension dim, const std::string &reference) |
GeometricElementList::iterator | begin (XAO::Dimension dim) |
GeometricElementList::iterator | end (XAO::Dimension dim) |
bool | isReadOnly () |
Verifies if the geometry is read only. More... | |
void | setReadOnly () |
Sets the geometry read only. More... | |
|
protected |
name | the name of the Geometry. |
References m_readOnly.
|
virtual |
GeometricElementList::iterator Geometry::begin | ( | XAO::Dimension | dim | ) |
References XAO::GeometricElementList::begin(), XAO::EDGE, XAO::FACE, m_edges, m_faces, m_solids, m_vertices, XAO::SOLID, and XAO::VERTEX.
|
protected |
References m_readOnly.
|
inline |
int Geometry::countElements | ( | XAO::Dimension | dim | ) | const |
References countEdges(), countFaces(), countSolids(), countVertices(), XAO::EDGE, XAO::FACE, XAO::SOLID, XAO::VERTEX, and XAO::WHOLE.
|
inline |
|
inline |
|
inline |
|
static |
format | the format of the geometry. |
|
static |
References XAO::BREP.
GeometricElementList::iterator Geometry::end | ( | XAO::Dimension | dim | ) |
References XAO::EDGE, XAO::GeometricElementList::end(), XAO::FACE, m_edges, m_faces, m_solids, m_vertices, XAO::SOLID, and XAO::VERTEX.
|
inline |
|
inline |
|
inline |
int Geometry::getElementIndexByReference | ( | XAO::Dimension | dim, |
const std::string & | reference | ||
) |
const std::string Geometry::getElementReference | ( | XAO::Dimension | dim, |
int | index | ||
) |
References XAO::EDGE, XAO::FACE, getEdgeReference(), getFaceReference(), getSolidReference(), getVertexReference(), XAO::SOLID, and XAO::VERTEX.
|
inline |
|
inline |
|
inline |
|
pure virtual |
Implemented in XAO::BrepGeometry.
|
inline |
|
pure virtual |
Implemented in XAO::BrepGeometry.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
pure virtual |
Implemented in XAO::BrepGeometry.
void Geometry::setCountEdges | ( | int | nb | ) |
References checkReadOnly(), m_edges, and XAO::GeometricElementList::setSize().
void Geometry::setCountFaces | ( | int | nb | ) |
References checkReadOnly(), m_faces, and XAO::GeometricElementList::setSize().
void Geometry::setCountSolids | ( | int | nb | ) |
References checkReadOnly(), m_solids, and XAO::GeometricElementList::setSize().
void Geometry::setCountVertices | ( | int | nb | ) |
References checkReadOnly(), m_vertices, and XAO::GeometricElementList::setSize().
void Geometry::setEdge | ( | int | index, |
const std::string & | name, | ||
const std::string & | reference | ||
) |
References checkReadOnly(), m_edges, and XAO::GeometricElementList::setElement().
|
inline |
void Geometry::setEdgeReference | ( | int | index, |
const std::string & | reference | ||
) |
References checkReadOnly(), m_edges, and XAO::GeometricElementList::setReference().
void Geometry::setFace | ( | int | index, |
const std::string & | name, | ||
const std::string & | reference | ||
) |
References checkReadOnly(), m_faces, and XAO::GeometricElementList::setElement().
|
inline |
void Geometry::setFaceReference | ( | int | index, |
const std::string & | reference | ||
) |
References checkReadOnly(), m_faces, and XAO::GeometricElementList::setReference().
|
inline |
name | the name to set. |
|
inline |
|
pure virtual |
Implemented in XAO::BrepGeometry.
void Geometry::setSolid | ( | int | index, |
const std::string & | name, | ||
const std::string & | reference | ||
) |
References checkReadOnly(), m_solids, and XAO::GeometricElementList::setElement().
|
inline |
void Geometry::setSolidReference | ( | int | index, |
const std::string & | reference | ||
) |
References checkReadOnly(), m_solids, and XAO::GeometricElementList::setReference().
void Geometry::setVertex | ( | int | index, |
const std::string & | name, | ||
const std::string & | reference | ||
) |
References checkReadOnly(), m_vertices, and XAO::GeometricElementList::setElement().
|
inline |
void Geometry::setVertexReference | ( | int | index, |
const std::string & | reference | ||
) |
References checkReadOnly(), m_vertices, and XAO::GeometricElementList::setReference().
|
pure virtual |
Implemented in XAO::BrepGeometry.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |