1212/* ----------------------------------------------------------------------------*/
1313#include " Services/DescriptionService.h"
1414/* ----------------------------------------------------------------------------*/
15- #include " Topo/TopoEntity.h"
16- #include " Topo/Vertex.h"
17- #include " Topo/CoEdge.h"
18- #include " Topo/CoFace.h"
19- #include " Topo/Block.h"
20- /* ----------------------------------------------------------------------------*/
2115#include " Group/Group0D.h"
2216#include " Group/Group1D.h"
2317#include " Group/Group2D.h"
@@ -100,7 +94,7 @@ getRepresentation(Utils::DisplayRepresentation& dr, bool checkDestroyed) const
10094/* ----------------------------------------------------------------------------*/
10195Mgx3D::Utils::SerializedRepresentation* GeomEntity::getDescription (bool alsoComputed) const
10296{
103- return Services::DescriptionService::describe (this , alsoComputed);
97+ return Services::DescriptionService::getDescription (this , alsoComputed);
10498}
10599/* ----------------------------------------------------------------------------*/
106100GeomProperty::type GeomEntity::getGeomType ( ) const
@@ -109,51 +103,6 @@ GeomProperty::type GeomEntity::getGeomType ( ) const
109103 return getGeomProperty ( )->getType ( );
110104} // GeomEntity::getGeomType
111105/* ----------------------------------------------------------------------------*/
112- void GeomEntity::addRefTopo (Topo::TopoEntity* te)
113- {
114- #ifdef _DEBUG2
115- std::cout<<" GeomEntity::addRefTopo(" <<(te?te->getName ():" 0" )<<" ) à " <<getName ()<<std::endl;
116- #endif
117-
118- // recherche si l'entité topologique ne serait pas déjà référencée
119- uint i = 0 ;
120- for (; i<m_topo_entities.size () && te != m_topo_entities[i]; ++i)
121- ;
122-
123- // elle est déjà présente, on ne fait rien
124- if (i != m_topo_entities.size ())
125- return ;
126-
127- m_topo_entities.push_back (te);
128- }
129- /* ----------------------------------------------------------------------------*/
130- void GeomEntity::removeRefTopo (Topo::TopoEntity* te)
131- {
132- #ifdef _DEBUG2
133- std::cout<<" GeomEntity::removeRefTopo(" <<(te?te->getName ():" 0" )<<" ) à " <<getName ()<<std::endl;
134- #endif
135- uint i = 0 ;
136- for (; i<m_topo_entities.size () && te != m_topo_entities[i]; ++i)
137- ;
138-
139- // on la retire si elle est présente
140- if (i!=m_topo_entities.size ())
141- m_topo_entities.erase (m_topo_entities.begin ()+i);
142- // else {
143- // std::cout<<"m_topo_entities : ";
144- // for(int i=0;i<m_topo_entities.size();i++)
145- // std::cout<<" "<<m_topo_entities[i]->getName();
146- // std::cout<<std::endl;
147- // throw TkUtil::Exception (TkUtil::UTF8String ("Erreur interne (pas d'entité), avec GeomEntity::removeRefTopo", TkUtil::Charset::UTF_8));
148- // }
149- }
150- /* ----------------------------------------------------------------------------*/
151- void GeomEntity::getRefTopo (std::vector<Topo::TopoEntity* >& vte) const
152- {
153- vte.clear ();
154- vte.insert (vte.end (), m_topo_entities.begin (), m_topo_entities.end ());
155- }
156- /* ----------------------------------------------------------------------------*/
157106void GeomEntity::getGroupsName (std::vector<std::string>& gn) const
158107{
159108 MGX_FORBIDDEN (" getGroupsName est à redéfinir dans les classes dérivées" );
0 commit comments