gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
NearestNeighbor.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 NEAREST_NEIGHBOR_H
7 #define NEAREST_NEIGHBOR_H
8 
9 #include "Plugin.h"
10 
11 extern "C" {
13 }
14 
16 public:
18  std::string getName() const { return "NearestNeighbor"; }
19  std::string getShortHelp() const
20  {
21  return "Compute distance to the nearest neighbor";
22  }
23  std::string getHelp() const;
24  int getNbOptions() const;
25  StringXNumber *getOption(int iopt);
26  PView *execute(PView *);
27 };
28 
29 #endif
PView
Definition: PView.h:27
Plugin.h
GMSH_RegisterNearestNeighborPlugin
GMSH_Plugin * GMSH_RegisterNearestNeighborPlugin()
Definition: NearestNeighbor.cpp:18
GMSH_Plugin
Definition: Plugin.h:26
StringXNumber
Definition: Options.h:918
GMSH_NearestNeighborPlugin::getOption
StringXNumber * getOption(int iopt)
Definition: NearestNeighbor.cpp:37
GMSH_NearestNeighborPlugin::getNbOptions
int getNbOptions() const
Definition: NearestNeighbor.cpp:32
GMSH_NearestNeighborPlugin::GMSH_NearestNeighborPlugin
GMSH_NearestNeighborPlugin()
Definition: NearestNeighbor.h:17
GMSH_NearestNeighborPlugin::getName
std::string getName() const
Definition: NearestNeighbor.h:18
GMSH_PostPlugin
Definition: Plugin.h:83
GMSH_NearestNeighborPlugin::execute
PView * execute(PView *)
Definition: NearestNeighbor.cpp:42
GMSH_NearestNeighborPlugin::getShortHelp
std::string getShortHelp() const
Definition: NearestNeighbor.h:19
GMSH_NearestNeighborPlugin
Definition: NearestNeighbor.h:15
GMSH_NearestNeighborPlugin::getHelp
std::string getHelp() const
Definition: NearestNeighbor.cpp:24