Version: 9.16.0
StdMeshers_FixedPoints1D.hxx
Go to the documentation of this file.
1// Copyright (C) 2007-2026 CEA, EDF, OPEN CASCADE
2//
3// This library is free software; you can redistribute it and/or
4// modify it under the terms of the GNU Lesser General Public
5// License as published by the Free Software Foundation; either
6// version 2.1 of the License, or (at your option) any later version.
7//
8// This library is distributed in the hope that it will be useful,
9// but WITHOUT ANY WARRANTY; without even the implied warranty of
10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11// Lesser General Public License for more details.
12//
13// You should have received a copy of the GNU Lesser General Public
14// License along with this library; if not, write to the Free Software
15// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
16//
17// See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18//
19
20// SMESH SMESH : implementation of SMESH idl descriptions
21// File : StdMeshers_FixedPoints1D.hxx
22// Author : Damien COQUERET, OCC
23// Module : SMESH
24//
25#ifndef _SMESH_FIXEDPOINTS1D_HXX_
26#define _SMESH_FIXEDPOINTS1D_HXX_
27
28#include "SMESH_StdMeshers.hxx"
29
31#include "SMESH_Hypothesis.hxx"
32#include "Utils_SALOME_Exception.hxx"
33#include <smIdType.hxx>
34
35#include <vector>
36
38{
39public:
40 StdMeshers_FixedPoints1D(int hypId, SMESH_Gen* gen);
42
43 void SetPoints(const std::vector<double>& listParams);
44
45 void SetNbSegments(const std::vector<smIdType>& listNbSeg) ;
46
47 const std::vector<double>& GetPoints() const { return _params; }
48
49 const std::vector<smIdType>& GetNbSegments() const { return _nbsegs; }
50
51 virtual std::ostream & SaveTo(std::ostream & save);
52 virtual std::istream & LoadFrom(std::istream & load);
53
60 virtual bool SetParametersByMesh(const SMESH_Mesh* theMesh, const TopoDS_Shape& theShape);
61
66 virtual bool SetParametersByDefaults(const TDefaults& dflts, const SMESH_Mesh* theMesh=0);
67
68 protected:
69 std::vector<double> _params;
70 std::vector<smIdType> _nbsegs;
71};
72
73#endif
#define STDMESHERS_EXPORT
Definition: SMESH_StdMeshers.hxx:38
Definition: SMESH_Gen.hxx:68
virtual bool SetParametersByDefaults(const TDefaults &dflts, const SMESH_Mesh *theMesh=0)=0
Initialize my parameter values by default parameters.
virtual bool SetParametersByMesh(const SMESH_Mesh *theMesh, const TopoDS_Shape &theShape)=0
Initialize my parameter values by the mesh built on the geometry.
Definition: SMESH_Mesh.hxx:80
Definition: StdMeshers_FixedPoints1D.hxx:38
const std::vector< smIdType > & GetNbSegments() const
Definition: StdMeshers_FixedPoints1D.hxx:49
std::vector< double > _params
Definition: StdMeshers_FixedPoints1D.hxx:69
const std::vector< double > & GetPoints() const
Definition: StdMeshers_FixedPoints1D.hxx:47
std::vector< smIdType > _nbsegs
Definition: StdMeshers_FixedPoints1D.hxx:70
A base of reversible 1D hypotheses.
Definition: StdMeshers_Reversible1D.hxx:39
virtual std::istream & LoadFrom(std::istream &load)
Definition: StdMeshers_Reversible1D.cxx:83
virtual std::ostream & SaveTo(std::ostream &save)
Definition: StdMeshers_Reversible1D.cxx:63