OGS
FileIO::GMSH::GMSHFixedMeshDensity Class Referencefinal

Detailed Description

Definition at line 20 of file GMSHFixedMeshDensity.h.

#include <GMSHFixedMeshDensity.h>

Inheritance diagram for FileIO::GMSH::GMSHFixedMeshDensity:
[legend]
Collaboration diagram for FileIO::GMSH::GMSHFixedMeshDensity:
[legend]

Public Member Functions

 GMSHFixedMeshDensity (double mesh_density)
 
void initialize (std::vector< GeoLib::Point const * > const &vec) override
 
double getMeshDensityAtPoint (GeoLib::Point const *const) const override
 
double getMeshDensityAtStation (GeoLib::Point const *const) const override
 
 ~GMSHFixedMeshDensity () override=default
 
- Public Member Functions inherited from FileIO::GMSH::GMSHMeshDensityStrategy
virtual ~GMSHMeshDensityStrategy ()=default
 

Private Attributes

double _mesh_density
 

Constructor & Destructor Documentation

◆ GMSHFixedMeshDensity()

FileIO::GMSH::GMSHFixedMeshDensity::GMSHFixedMeshDensity ( double  mesh_density)
explicit

Definition at line 17 of file GMSHFixedMeshDensity.cpp.

18  : _mesh_density(mesh_density)
19 {
20 }

◆ ~GMSHFixedMeshDensity()

FileIO::GMSH::GMSHFixedMeshDensity::~GMSHFixedMeshDensity ( )
overridedefault

Member Function Documentation

◆ getMeshDensityAtPoint()

double FileIO::GMSH::GMSHFixedMeshDensity::getMeshDensityAtPoint ( GeoLib::Point const * const  ) const
overridevirtual

Implements FileIO::GMSH::GMSHMeshDensityStrategy.

Definition at line 29 of file GMSHFixedMeshDensity.cpp.

31 {
32  return _mesh_density;
33 }

References _mesh_density.

◆ getMeshDensityAtStation()

double FileIO::GMSH::GMSHFixedMeshDensity::getMeshDensityAtStation ( GeoLib::Point const * const  ) const
overridevirtual

Implements FileIO::GMSH::GMSHMeshDensityStrategy.

Definition at line 35 of file GMSHFixedMeshDensity.cpp.

37 {
38  return _mesh_density;
39 }

References _mesh_density.

◆ initialize()

void FileIO::GMSH::GMSHFixedMeshDensity::initialize ( std::vector< GeoLib::Point const * > const &  vec)
overridevirtual

Implements FileIO::GMSH::GMSHMeshDensityStrategy.

Definition at line 22 of file GMSHFixedMeshDensity.cpp.

24 {
25  // to avoid a warning here:
26  (void)(vec);
27 }

Member Data Documentation

◆ _mesh_density

double FileIO::GMSH::GMSHFixedMeshDensity::_mesh_density
private

Definition at line 32 of file GMSHFixedMeshDensity.h.

Referenced by getMeshDensityAtPoint(), and getMeshDensityAtStation().


The documentation for this class was generated from the following files: