gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
NewView.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 NEWVIEW_H
7 #define NEWVIEW_H
8 
9 #include "Plugin.h"
10 
11 extern "C" {
13 }
14 
16 public:
18  std::string getName() const { return "NewView"; }
19  std::string getShortHelp() const
20  {
21  return "Create an empty new view from a mesh";
22  }
23  std::string getHelp() const;
24  int getNbOptions() const;
25  StringXNumber *getOption(int iopt);
26  int getNbOptionsStr() const;
27  StringXString *getOptionStr(int iopt);
28  PView *execute(PView *);
29 
30 private:
31  void nodeData(int numComp, double value,
32  std::map<int, std::vector<double> > &d);
33  void elementData(int numComp, double value,
34  std::map<int, std::vector<double> > &d, int phys);
35 };
36 
37 #endif
GMSH_NewViewPlugin
Definition: NewView.h:15
StringXString
Definition: Options.h:910
GMSH_NewViewPlugin::getNbOptions
int getNbOptions() const
Definition: NewView.cpp:38
GMSH_NewViewPlugin::GMSH_NewViewPlugin
GMSH_NewViewPlugin()
Definition: NewView.h:17
PView
Definition: PView.h:27
Plugin.h
GMSH_Plugin
Definition: Plugin.h:26
GMSH_NewViewPlugin::elementData
void elementData(int numComp, double value, std::map< int, std::vector< double > > &d, int phys)
Definition: NewView.cpp:100
GMSH_NewViewPlugin::getHelp
std::string getHelp() const
Definition: NewView.cpp:27
StringXNumber
Definition: Options.h:918
GMSH_NewViewPlugin::getNbOptionsStr
int getNbOptionsStr() const
Definition: NewView.cpp:48
GMSH_NewViewPlugin::getOption
StringXNumber * getOption(int iopt)
Definition: NewView.cpp:43
GMSH_NewViewPlugin::getOptionStr
StringXString * getOptionStr(int iopt)
Definition: NewView.cpp:53
GMSH_NewViewPlugin::nodeData
void nodeData(int numComp, double value, std::map< int, std::vector< double > > &d)
Definition: NewView.cpp:87
GMSH_NewViewPlugin::execute
PView * execute(PView *)
Definition: NewView.cpp:58
GMSH_PostPlugin
Definition: Plugin.h:83
GMSH_RegisterNewViewPlugin
GMSH_Plugin * GMSH_RegisterNewViewPlugin()
Definition: NewView.cpp:24
GMSH_NewViewPlugin::getName
std::string getName() const
Definition: NewView.h:18
GMSH_NewViewPlugin::getShortHelp
std::string getShortHelp() const
Definition: NewView.h:19