gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
PViewFactory.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 PVIEW_FACTORY_H
7 #define PVIEW_FACTORY_H
8 
9 // quick hack to have something that we can bind for the summer
10 // school... this class has probably to be removed or rewritten
11 
12 #include <map>
13 #include <vector>
14 #include <string>
15 
16 class GModel;
17 class PView;
18 template <class t> class fullMatrix;
19 
20 class PViewFactory {
21  std::map<int, std::vector<double> > _values;
22  std::string _name, _type;
25 
26 public:
27  PViewFactory(std::string name, std::string type, GModel *model, int timeStep,
28  int dim = 3);
29  void setEntry(int id, const fullMatrix<double> &val);
30  PView *createView();
31 };
32 
33 #endif
PView
Definition: PView.h:27
PViewFactory::_timeStep
int _timeStep
Definition: PViewFactory.h:23
PViewFactory::_name
std::string _name
Definition: PViewFactory.h:22
fullMatrix
Definition: MElement.h:27
PViewFactory
Definition: PViewFactory.h:20
PViewFactory::setEntry
void setEntry(int id, const fullMatrix< double > &val)
Definition: PViewFactory.cpp:18
PViewFactory::createView
PView * createView()
Definition: PViewFactory.cpp:28
GModel
Definition: GModel.h:44
PViewFactory::PViewFactory
PViewFactory(std::string name, std::string type, GModel *model, int timeStep, int dim=3)
Definition: PViewFactory.cpp:12
PViewFactory::_values
std::map< int, std::vector< double > > _values
Definition: PViewFactory.h:21
PViewFactory::_model
GModel * _model
Definition: PViewFactory.h:24
PViewFactory::_dim
int _dim
Definition: PViewFactory.h:23
PViewFactory::_type
std::string _type
Definition: PViewFactory.h:22