OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
FaceAnnotationsManager.h
Go to the documentation of this file.
1#pragma once
2
3class Application;
4class EntityFaceAnnotation;
5class EntityBrep;
6
7class TopoDS_Shape;
8class TopoDS_TShape;
9
10#include "OldTreeIcon.h"
11
12#include <list>
13#include <vector>
14#include <map>
15#include <string>
16
17#include "Standard_Handle.hxx"
18
19namespace gmsh
20{
21 typedef std::vector<std::pair<int, int> > vectorpair;
22}
23
25{
26public:
29
30 void loadAllFaceAnnotations(void);
32 void buildFaceToAnnotationMap(const std::string &entityName, EntityBrep* brep);
33 void buildIndexedFaceToAnnotationVector(const TopoDS_Shape *shape);
35
36 std::list<ot::UID> getAnnotationIDsforFace(int faceTag);
37 std::list<EntityFaceAnnotation *> getAnnotationsforFace(int faceTag);
38
39private:
40 Application *application;
41 std::list<EntityFaceAnnotation *> faceAnnotations;
42 std::map<std::string, std::list<EntityFaceAnnotation *>> entityNametoAnnotationsMap;
43 std::map< const Handle(TopoDS_TShape), std::list<EntityFaceAnnotation *> > faceToAnnotationMap;
44 std::vector<std::list< EntityFaceAnnotation *>> faceAnnotationVector;
45 std::map<int, std::list<EntityFaceAnnotation *>> faceTagToAnnotationMap;
46};
Definition Application.h:25
Definition FaceAnnotationsManager.h:25
std::list< ot::UID > getAnnotationIDsforFace(int faceTag)
Definition FaceAnnotationsManager.cpp:116
void buildTagToAnnotationMap(gmsh::vectorpair &output)
Definition FaceAnnotationsManager.cpp:101
void loadAllFaceAnnotations(void)
Definition FaceAnnotationsManager.cpp:19
void buildIndexedFaceToAnnotationVector(const TopoDS_Shape *shape)
Definition FaceAnnotationsManager.cpp:76
void buildEntityNameToAnnotationsMap(void)
Definition FaceAnnotationsManager.cpp:44
FaceAnnotationsManager(Application *app)
Definition FaceAnnotationsManager.h:27
void buildFaceToAnnotationMap(const std::string &entityName, EntityBrep *brep)
Definition FaceAnnotationsManager.cpp:58
~FaceAnnotationsManager()
Definition FaceAnnotationsManager.h:28
std::list< EntityFaceAnnotation * > getAnnotationsforFace(int faceTag)
Definition FaceAnnotationsManager.cpp:128
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