21#ifndef __XAO_GEOMETRY_HXX__
22#define __XAO_GEOMETRY_HXX__
32#pragma warning(disable:4290)
105 void setCountVertices(
int nb);
106 void setCountEdges(
int nb);
107 void setCountFaces(
int nb);
108 void setCountSolids(
int nb);
110 const std::string
getVertexName(
int index) {
return m_vertices.getName(index); }
111 const std::string
getEdgeName(
int index) {
return m_edges.getName(index); }
112 const std::string
getFaceName(
int index) {
return m_faces.getName(index); }
113 const std::string
getSolidName(
int index) {
return m_solids.getName(index); }
115 void setVertexName(
int index,
const std::string& name) { m_vertices.setName(index, name); }
116 void setEdgeName(
int index,
const std::string& name) { m_edges.setName(index, name); }
117 void setFaceName(
int index,
const std::string& name) { m_faces.setName(index, name); }
118 void setSolidName(
int index,
const std::string& name) { m_solids.setName(index, name); }
129 const std::string getElementReference(
XAO::Dimension dim,
int index) ;
131 void setVertexReference(
int index,
const std::string& reference) ;
132 void setEdgeReference(
int index,
const std::string& reference) ;
133 void setFaceReference(
int index,
const std::string& reference) ;
134 void setSolidReference(
int index,
const std::string& reference) ;
136 void setVertex(
int index,
const std::string& name,
const std::string& reference) ;
137 void setEdge(
int index,
const std::string& name,
const std::string& reference) ;
138 void setFace(
int index,
const std::string& name,
const std::string& reference) ;
139 void setSolid(
int index,
const std::string& name,
const std::string& reference) ;
145 int getElementIndexByReference(
XAO::Dimension dim,
const std::string& reference) ;
162 void checkReadOnly() ;
#define XAO_EXPORT
Definition: XAO.hxx:31
Generic class to manipulate a list of topologic element.
Definition: XAO_GeometricElement.hxx:112
std::map< int, GeometricElement >::iterator iterator
Iterator on the element of the list.
Definition: XAO_GeometricElement.hxx:198
Base class for geometries.
Definition: XAO_Geometry.hxx:43
const std::string getFaceReference(int index)
Definition: XAO_Geometry.hxx:127
const std::string getName()
Gets the name of the geometry.
Definition: XAO_Geometry.hxx:75
virtual XAO::Format getFormat()=0
Gets the format of the geometry.
void setVertexName(int index, const std::string &name)
Definition: XAO_Geometry.hxx:115
const std::string getVertexReference(int index)
Definition: XAO_Geometry.hxx:125
virtual void setShapeString(const std::string &shape)=0
bool hasFaceName(int index)
Definition: XAO_Geometry.hxx:122
const std::string getSolidName(int index)
Definition: XAO_Geometry.hxx:113
int getFaceIndexByReference(const std::string &reference)
Definition: XAO_Geometry.hxx:143
GeometricElementList m_faces
Definition: XAO_Geometry.hxx:168
std::string m_name
Definition: XAO_Geometry.hxx:165
bool isReadOnly()
Verifies if the geometry is read only.
Definition: XAO_Geometry.hxx:154
int countSolids() const
Definition: XAO_Geometry.hxx:103
int countVertices() const
Definition: XAO_Geometry.hxx:100
const std::string getVertexName(int index)
Definition: XAO_Geometry.hxx:110
int countEdges() const
Definition: XAO_Geometry.hxx:101
bool m_readOnly
Definition: XAO_Geometry.hxx:170
GeometricElementList m_edges
Definition: XAO_Geometry.hxx:167
void setEdgeName(int index, const std::string &name)
Definition: XAO_Geometry.hxx:116
int getVertexIndexByReference(const std::string &reference)
Definition: XAO_Geometry.hxx:141
void setName(const std::string &name)
Sets the name of the geometry.
Definition: XAO_Geometry.hxx:83
GeometricElementList m_vertices
Definition: XAO_Geometry.hxx:166
const std::string getFaceName(int index)
Definition: XAO_Geometry.hxx:112
virtual const std::string getShapeString()=0
const std::string getSolidReference(int index)
Definition: XAO_Geometry.hxx:128
virtual void readShapeFile(const std::string &fileName)=0
const std::string getEdgeReference(int index)
Definition: XAO_Geometry.hxx:126
const std::string getEdgeName(int index)
Definition: XAO_Geometry.hxx:111
void setFaceName(int index, const std::string &name)
Definition: XAO_Geometry.hxx:117
int getEdgeIndexByReference(const std::string &reference)
Definition: XAO_Geometry.hxx:142
bool hasSolidName(int index)
Definition: XAO_Geometry.hxx:123
bool hasVertexName(int index)
Definition: XAO_Geometry.hxx:120
void setReadOnly()
Sets the geometry read only.
Definition: XAO_Geometry.hxx:159
void setSolidName(int index, const std::string &name)
Definition: XAO_Geometry.hxx:118
bool hasEdgeName(int index)
Definition: XAO_Geometry.hxx:121
int countFaces() const
Definition: XAO_Geometry.hxx:102
int getSolidIndexByReference(const std::string &reference)
Definition: XAO_Geometry.hxx:144
virtual void writeShapeFile(const std::string &fileName)=0
GeometricElementList m_solids
Definition: XAO_Geometry.hxx:169
Definition: BrepGeometryTest.hxx:26
Dimension
Definition: XAO_XaoUtils.hxx:50
Format
Definition: XAO_XaoUtils.hxx:41