21 #ifndef __XAO_GEOMETRICELEMENT_HXX__
22 #define __XAO_GEOMETRICELEMENT_HXX__
31 #pragma warning(disable:4290)
32 #pragma warning(disable:4251)
97 m_reference = reference;
141 void setSize(
int nb);
150 void setElement(
int index,
const std::string& name,
const std::string& reference);
157 const std::string
getName(
int index);
164 void setName(
int index,
const std::string& name);
171 bool hasName(
int index);
179 const std::string getReference(
int index);
186 void setReference(
int index,
const std::string& reference);
193 int getIndexByReference(
const std::string& reference);
198 typedef std::map<int, GeometricElement>::iterator
iterator;
213 void checkElementIndex(
int index)
const;
static std::string getName(GEOM::GEOM_BaseObject_ptr object)
Definition: GEOM_Displayer.cxx:469
#define XAO_EXPORT
Definition: XAO.hxx:31
Generic class to manipulate a list of topologic element.
Definition: XAO_GeometricElement.hxx:112
iterator begin()
Gets an iterator on the first element.
Definition: XAO_GeometricElement.hxx:204
std::map< int, GeometricElement >::iterator iterator
Iterator on the element of the list.
Definition: XAO_GeometricElement.hxx:198
int m_count
Definition: XAO_GeometricElement.hxx:216
int getSize() const
Gets the size of the list.
Definition: XAO_GeometricElement.hxx:134
iterator end()
Gets an iterator on the last element.
Definition: XAO_GeometricElement.hxx:210
std::map< int, GeometricElement > m_elements
Definition: XAO_GeometricElement.hxx:217
virtual ~GeometricElementList()
Destructor.
Definition: XAO_GeometricElement.hxx:128
Generic class to manipulate a topologic element (vertex, edge, face or solid).
Definition: XAO_GeometricElement.hxx:43
const std::string getReference()
Gets the reference of the element.
Definition: XAO_GeometricElement.hxx:87
void setName(const std::string &name)
Sets the name of the element.
Definition: XAO_GeometricElement.hxx:72
std::string m_name
The name of the element.
Definition: XAO_GeometricElement.hxx:102
std::string m_reference
The reference of the element.
Definition: XAO_GeometricElement.hxx:104
const std::string getName()
Gets the name of the element.
Definition: XAO_GeometricElement.hxx:64
void setReference(const std::string &reference)
Sets the reference of the element.
Definition: XAO_GeometricElement.hxx:95
Definition: BrepGeometryTest.hxx:26