gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
Distance.h
Go to the documentation of this file.
1 // Gmsh - Copyright (C) 1997-2022 C. Geuzaine, J.-F. Remacle
2 //
3 // See the LICENSE.txt file in the Gmsh root directory for license information.
4 // Please report all issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
5 
6 #ifndef DISTANCE_H
7 #define DISTANCE_H
8 
9 #include <string>
10 #include "Plugin.h"
11 #include "MVertex.h"
12 
13 extern "C" {
15 }
16 
18 private:
19  int _maxDim;
21 
22 public:
24  std::string getName() const { return "Distance"; }
25  std::string getShortHelp() const { return "Compute distance to boundaries"; }
26  std::string getHelp() const;
27  std::string getAuthor() const { return "E. Marchandise"; }
28  int getNbOptions() const;
29  StringXNumber *getOption(int iopt);
30  PView *execute(PView *);
31  void printView(std::vector<GEntity *> &entities,
32  std::map<MVertex *, double> &distance_map);
33 };
34 
35 #endif
PView
Definition: PView.h:27
Plugin.h
GMSH_Plugin
Definition: Plugin.h:26
PViewDataList
Definition: PViewDataList.h:17
StringXNumber
Definition: Options.h:918
GMSH_DistancePlugin
Definition: Distance.h:17
GMSH_DistancePlugin::getName
std::string getName() const
Definition: Distance.h:24
GMSH_DistancePlugin::getShortHelp
std::string getShortHelp() const
Definition: Distance.h:25
GMSH_DistancePlugin::execute
PView * execute(PView *)
Definition: Distance.cpp:131
MVertex.h
GMSH_DistancePlugin::getOption
StringXNumber * getOption(int iopt)
Definition: Distance.cpp:64
GMSH_DistancePlugin::printView
void printView(std::vector< GEntity * > &entities, std::map< MVertex *, double > &distance_map)
Definition: Distance.cpp:69
GMSH_DistancePlugin::getAuthor
std::string getAuthor() const
Definition: Distance.h:27
GMSH_DistancePlugin::getNbOptions
int getNbOptions() const
Definition: Distance.cpp:59
GMSH_DistancePlugin::_maxDim
int _maxDim
Definition: Distance.h:19
GMSH_RegisterDistancePlugin
GMSH_Plugin * GMSH_RegisterDistancePlugin()
Definition: Distance.cpp:34
GMSH_PostPlugin
Definition: Plugin.h:83
GMSH_DistancePlugin::GMSH_DistancePlugin
GMSH_DistancePlugin()
Definition: Distance.cpp:37
GMSH_DistancePlugin::_data
PViewDataList * _data
Definition: Distance.h:20
GMSH_DistancePlugin::getHelp
std::string getHelp() const
Definition: Distance.cpp:43