X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FStdMeshers%2FStdMeshers_FixedPoints1D.cxx;h=28432c8bf6a9f4c88d1adfeb9808f35a0ea22b6b;hb=93781217abf598f9815e290739ef6b579007308a;hp=b5934045b4fa19d3558f49faca6e0ac3453548dd;hpb=b7a7d49664daa32e1befb558280e13ed0bde37c9;p=modules%2Fsmesh.git diff --git a/src/StdMeshers/StdMeshers_FixedPoints1D.cxx b/src/StdMeshers/StdMeshers_FixedPoints1D.cxx index b5934045b..28432c8bf 100644 --- a/src/StdMeshers/StdMeshers_FixedPoints1D.cxx +++ b/src/StdMeshers/StdMeshers_FixedPoints1D.cxx @@ -1,4 +1,4 @@ -// Copyright (C) 2007-2016 CEA/DEN, EDF R&D, OPEN CASCADE +// Copyright (C) 2007-2019 CEA/DEN, EDF R&D, OPEN CASCADE // // This library is free software; you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public @@ -35,9 +35,8 @@ using namespace std; */ //============================================================================= -StdMeshers_FixedPoints1D::StdMeshers_FixedPoints1D(int hypId, - SMESH_Gen * gen) - :SMESH_Hypothesis(hypId, gen) +StdMeshers_FixedPoints1D::StdMeshers_FixedPoints1D(int hypId, SMESH_Gen * gen) + :StdMeshers_Reversible1D(hypId, gen) { _name = "FixedPoints1D"; _param_algo_dim = 1; @@ -61,7 +60,7 @@ StdMeshers_FixedPoints1D::~StdMeshers_FixedPoints1D() */ //============================================================================= -void StdMeshers_FixedPoints1D::SetPoints(std::vector& listParams) +void StdMeshers_FixedPoints1D::SetPoints(const std::vector& listParams) throw(SALOME_Exception) { _params = listParams; @@ -74,34 +73,13 @@ void StdMeshers_FixedPoints1D::SetPoints(std::vector& listParams) */ //============================================================================= -void StdMeshers_FixedPoints1D::SetNbSegments(std::vector& listNbSeg) +void StdMeshers_FixedPoints1D::SetNbSegments(const std::vector& listNbSeg) throw(SALOME_Exception) { _nbsegs = listNbSeg; NotifySubMeshesHypothesisModification(); } -//============================================================================= -/*! - * - */ -//============================================================================= - -void StdMeshers_FixedPoints1D::SetReversedEdges( std::vector& ids ) -{ - if ( ids != _edgeIDs ) { - _edgeIDs = ids; - - NotifySubMeshesHypothesisModification(); - } -} - -//============================================================================= -/*! - * - */ -//============================================================================= - ostream & StdMeshers_FixedPoints1D::SaveTo(ostream & save) { int listSize = _params.size();