gmsh-TingyuanDoc
0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
ShowNeighborElements.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 SHOWNEIGHBORELEMENTS_H
7
#define SHOWNEIGHBORELEMENTS_H
8
9
#include "
Plugin.h
"
10
#include <set>
11
12
class
MVertex
;
13
14
extern
"C"
{
15
GMSH_Plugin
*
GMSH_RegisterShowNeighborElementsPlugin
();
16
}
17
18
class
GMSH_ShowNeighborElementsPlugin
:
public
GMSH_PostPlugin
{
19
private
:
20
int
_nLayers
;
21
std::size_t
_nel1
,
_nel2
,
_nel3
,
_nel4
,
_nel5
;
22
std::multimap<MVertex *, MElement *>
_vert2elem
;
23
std::set<MVertex *>
_vertices
;
24
25
public
:
26
GMSH_ShowNeighborElementsPlugin
() {}
27
std::string
getName
()
const
{
return
"ShowNeighborElements"
; }
28
std::string
getShortHelp
()
const
29
{
30
return
"Choose which type of element to hide."
;
31
}
32
std::string
getHelp
()
const
;
33
std::string
getAuthor
()
const
{
return
"Amaury Johnen"
; }
34
int
getNbOptions
()
const
;
35
StringXNumber
*
getOption
(
int
);
36
PView
*
execute
(
PView
*);
37
38
private
:
39
void
_init
(
GEntity
*);
40
void
_showLayers
(
GEntity
*,
int
nLayer);
41
};
42
43
#endif
PView
Definition:
PView.h:27
Plugin.h
GMSH_ShowNeighborElementsPlugin::_vert2elem
std::multimap< MVertex *, MElement * > _vert2elem
Definition:
ShowNeighborElements.h:22
GMSH_ShowNeighborElementsPlugin::getOption
StringXNumber * getOption(int)
Definition:
ShowNeighborElements.cpp:38
GMSH_ShowNeighborElementsPlugin::_nel4
std::size_t _nel4
Definition:
ShowNeighborElements.h:21
GMSH_ShowNeighborElementsPlugin::_vertices
std::set< MVertex * > _vertices
Definition:
ShowNeighborElements.h:23
GMSH_Plugin
Definition:
Plugin.h:26
MVertex
Definition:
MVertex.h:24
GMSH_ShowNeighborElementsPlugin::_init
void _init(GEntity *)
Definition:
ShowNeighborElements.cpp:79
StringXNumber
Definition:
Options.h:918
GMSH_ShowNeighborElementsPlugin::_nel3
std::size_t _nel3
Definition:
ShowNeighborElements.h:21
GEntity
Definition:
GEntity.h:31
GMSH_ShowNeighborElementsPlugin::_nLayers
int _nLayers
Definition:
ShowNeighborElements.h:20
GMSH_ShowNeighborElementsPlugin::getName
std::string getName() const
Definition:
ShowNeighborElements.h:27
GMSH_ShowNeighborElementsPlugin
Definition:
ShowNeighborElements.h:18
GMSH_ShowNeighborElementsPlugin::getAuthor
std::string getAuthor() const
Definition:
ShowNeighborElements.h:33
GMSH_ShowNeighborElementsPlugin::_nel2
std::size_t _nel2
Definition:
ShowNeighborElements.h:21
GMSH_RegisterShowNeighborElementsPlugin
GMSH_Plugin * GMSH_RegisterShowNeighborElementsPlugin()
Definition:
ShowNeighborElements.cpp:27
GMSH_ShowNeighborElementsPlugin::_nel1
std::size_t _nel1
Definition:
ShowNeighborElements.h:21
GMSH_ShowNeighborElementsPlugin::getNbOptions
int getNbOptions() const
Definition:
ShowNeighborElements.cpp:33
GMSH_ShowNeighborElementsPlugin::_showLayers
void _showLayers(GEntity *, int nLayer)
Definition:
ShowNeighborElements.cpp:103
GMSH_PostPlugin
Definition:
Plugin.h:83
GMSH_ShowNeighborElementsPlugin::getHelp
std::string getHelp() const
Definition:
ShowNeighborElements.cpp:42
GMSH_ShowNeighborElementsPlugin::GMSH_ShowNeighborElementsPlugin
GMSH_ShowNeighborElementsPlugin()
Definition:
ShowNeighborElements.h:26
GMSH_ShowNeighborElementsPlugin::_nel5
std::size_t _nel5
Definition:
ShowNeighborElements.h:21
GMSH_ShowNeighborElementsPlugin::getShortHelp
std::string getShortHelp() const
Definition:
ShowNeighborElements.h:28
GMSH_ShowNeighborElementsPlugin::execute
PView * execute(PView *)
Definition:
ShowNeighborElements.cpp:48
src
plugin
ShowNeighborElements.h
Generated by
1.8.18