OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
PhysicalGroupsManager.h
Go to the documentation of this file.
1#pragma once
2
3class Application;
4
5class ModelBuilder;
6class ObjectManager;
9
10class EntityBase;
11class EntityMesh;
12
13class TopoDS_Shape;
14class TopoDS_TShape;
15
16#include "OldTreeIcon.h"
17
18#include <list>
19#include <vector>
20#include <map>
21#include <string>
22
23#include "Standard_Handle.hxx"
24
25namespace gmsh
26{
27 typedef std::vector<std::pair<int, int> > vectorpair;
28}
29
31{
32public:
33 PhysicalGroupsManager(Application *app) : application(app), pecGroupTag(-1), boundaryGroupTag(-1) {};
35
38
39 void applyGroups(EntityMesh* entityMesh, ModelBuilder *meshModelBuilder, ObjectManager *objectManager, MaterialManager *materialManager, FaceAnnotationsManager *annotationsManager);
40
41private:
42 bool isPECMaterial(EntityBase *entity, MaterialManager *materialManager);
43
44 Application *application;
45
46 std::map < std::string, std::vector<int>> shapeGroupTagList;
47
48 int pecGroupTag;
49 int boundaryGroupTag;
50 std::map<std::string, int> annotationsGroupTag;
51};
Definition Application.h:25
Definition FaceAnnotationsManager.h:25
Definition MaterialManager.h:15
Definition ModelBuilder.h:22
Definition ObjectManager.h:23
Definition PhysicalGroupsManager.h:31
void addBoundaryGroups()
Definition PhysicalGroupsManager.h:36
void applyGroups(EntityMesh *entityMesh, ModelBuilder *meshModelBuilder, ObjectManager *objectManager, MaterialManager *materialManager, FaceAnnotationsManager *annotationsManager)
Definition PhysicalGroupsManager.cpp:23
~PhysicalGroupsManager()
Definition PhysicalGroupsManager.h:34
PhysicalGroupsManager(Application *app)
Definition PhysicalGroupsManager.h:33
void addFaceAnnotationGroups()
Definition PhysicalGroupsManager.h:37
The app namespace contains several functions that may be used to start processes.
Definition FaceAnnotationsManager.h:20
std::vector< std::pair< int, int > > vectorpair
Definition FaceAnnotationsManager.h:21