-// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-2020 CEA/DEN, EDF R&D, OPEN CASCADE
//
// Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN,
// CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS
*/
//=============================================================================
-StdMeshers_StartEndLength::StdMeshers_StartEndLength(int hypId,
- SMESH_Gen * gen)
- :SMESH_Hypothesis(hypId, gen)
+StdMeshers_StartEndLength::StdMeshers_StartEndLength( int hypId, SMESH_Gen* gen )
+ :StdMeshers_Reversible1D(hypId, gen)
{
_begLength = 1.;
_endLength = 10.;
//=============================================================================
void StdMeshers_StartEndLength::SetLength(double length, bool isStartLength)
- throw(SALOME_Exception)
{
if ( (isStartLength ? _begLength : _endLength) != length ) {
if (length <= 0)
*/
//=============================================================================
-void StdMeshers_StartEndLength::SetReversedEdges( std::vector<int>& ids )
-{
- if ( ids != _edgeIDs ) {
- _edgeIDs = ids;
-
- NotifySubMeshesHypothesisModification();
- }
-}
-
-//=============================================================================
-/*!
- *
- */
-//=============================================================================
-
ostream & StdMeshers_StartEndLength::SaveTo(ostream & save)
{
int listSize = _edgeIDs.size();
return load;
}
-//=============================================================================
-/*!
- *
- */
-//=============================================================================
-
-ostream & operator <<(ostream & save, StdMeshers_StartEndLength & hyp)
-{
- return hyp.SaveTo( save );
-}
-
-//=============================================================================
-/*!
- *
- */
-//=============================================================================
-
-istream & operator >>(istream & load, StdMeshers_StartEndLength & hyp)
-{
- return hyp.LoadFrom( load );
-}
-
//================================================================================
/*!
* \brief Initialize start and end length by the mesh built on the geometry