MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
igesVertexListMap.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #if !defined( __MGIGESVertexListMap_H__)
6 #define __MGIGESVertexListMap_H__
7 
8 #include <map>
9 #include <vector>
10 #include "mg/Pvector.h"
11 #include "topo/BVertex.h"
12 #include "mgIges/igesPD502.h"
13 class MGIgesIfstream;
14 
17 public:
18 
19  typedef std::map<const MGIgesPD502*,int> PD502toVertexMap;
20  //MGIgesPD502 is a vactor of vertices. So the 2nd int(say i) is
21  //a index of m_VerticesVector. Thus m_VerticesVector[i] is
22  //the vector of vertices of MGIgesPD502.
23 
26  MGIgesVertexListMap(MGIgesIfstream* ifs=0):m_ifstream(ifs){;};
27 
31  int DEid,
32  int vertex
33  );
34 
35  void set_ifstream(MGIgesIfstream* ifs){m_ifstream=ifs;};
36 
37 //Member data.
38 private:
39 
40  MGIgesIfstream* m_ifstream;
41 
44  PD502toVertexMap m_PD502toVertexMap;
45 
50  std::vector< std::vector<MGBVertex*> > m_VerticesVector;
51 };
52 
53 #endif
MGBVertex is 0 manifold dimension binder cell, is an point.
Definition: BVertex.h:30
MGIgesIfstream read in *.iges; *.igs file, transforming IGES objects to MGCL objects.
Definition: IgesIfstream.h:43
std::map< const MGIgesPD502 *, int > PD502toVertexMap
Definition: igesVertexListMap.h:19
MGBVertex * get_BVertex(int DEid, int vertex)
MGIgesVertexListMap(MGIgesIfstream *ifs=0)
Definition: igesVertexListMap.h:26
Is the class to store MGBVertex*(newed objects) generated for MGIges502 Vertices list.
Definition: igesVertexListMap.h:16
void set_ifstream(MGIgesIfstream *ifs)
Definition: igesVertexListMap.h:35