// return list of ancestors of theSubShape in the order
// that lower dimention shapes come first.
+ void SetAutoColor(bool theAutoColor) throw(SALOME_Exception);
+
+ bool GetAutoColor() throw(SALOME_Exception);
+
/*! Check group names for duplications.
* Consider maximum group name length stored in MED file.
*/
int NbNodes() throw(SALOME_Exception);
- /*!
- * ElementOrder points out entities of what order are requested
- */
- enum ElementOrder {
- ORDER_ANY, /*! entities of any order */
- ORDER_LINEAR, /*! entities of 1st order */
- ORDER_QUADRATIC /*! entities of 2nd order */
- };
-
- int NbEdges(ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
+ int NbEdges(SMDSAbs_ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
- int NbFaces(ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
+ int NbFaces(SMDSAbs_ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
- int NbTriangles(ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
+ int NbTriangles(SMDSAbs_ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
- int NbQuadrangles(ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
+ int NbQuadrangles(SMDSAbs_ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
int NbPolygons() throw(SALOME_Exception);
- int NbVolumes(ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
+ int NbVolumes(SMDSAbs_ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
- int NbTetras(ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
+ int NbTetras(SMDSAbs_ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
- int NbHexas(ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
+ int NbHexas(SMDSAbs_ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
- int NbPyramids(ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
+ int NbPyramids(SMDSAbs_ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
- int NbPrisms(ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
+ int NbPrisms(SMDSAbs_ElementOrder order = ORDER_ANY) throw(SALOME_Exception);
int NbPolyhedrons() throw(SALOME_Exception);
void RemoveGroup (const int theGroupID);
- // Propagation hypothesis management
-
- const SMESH_Hypothesis* IsLocal1DHypothesis (const TopoDS_Shape& theEdge);
- // Returns a local 1D hypothesis used for theEdge.
-
- bool IsPropagationHypothesis (const TopoDS_Shape& theEdge);
- // Returns true, if a local Propagation hypothesis is set directly on <theEdge>
-
- bool IsPropagatedHypothesis (const TopoDS_Shape& theEdge,
- TopoDS_Shape& theMainEdge);
- // Returns true, if a local 1D hypothesis is
- // propagated on <theEdge> from some other edge.
- // Returns through <theMainEdge> the edge, from
- // which the 1D hypothesis is propagated on <theEdge>
-
- bool IsReversedInChain (const TopoDS_Shape& theEdge,
- const TopoDS_Shape& theMainEdge);
- // Returns true if theEdge should be reversed to be
- // co-directed with theMainEdge
-
- bool RebuildPropagationChains();
- bool RemovePropagationChain (const TopoDS_Shape& theMainEdge);
- bool BuildPropagationChain (const TopoDS_Shape& theMainEdge);
-
+
SMDSAbs_ElementType GetElementType( const int id, const bool iselem );
//
ostream& Dump(ostream & save);
private:
- // Propagation hypothesis management
- void CleanMeshOnPropagationChain(const TopoDS_Shape& theMainEdge);
- //
protected:
int _id; // id given by creator (unique within the creator instance)
map <int, SMESH_subMesh *> _mapSubMesh;
map <int, SMESH_Group *> _mapGroup;
SMESH_Gen * _gen;
+
+ bool _isAutoColor;
TopTools_IndexedDataMapOfShapeListOfShape _mapAncestors;
- IndexedMapOfChain _mapPropagationChains; // Propagation hypothesis management
-
protected:
SMESH_Mesh() {};
SMESH_Mesh(const SMESH_Mesh&) {};