MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
igesPD504.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #if !defined( __MGIGESPD504_H__)
6 #define __MGIGESPD504_H__
7 
8 #include <vector>
9 #include "mg/Position.h"
10 #include "mgiges/IgesPD.h"
11 class MGBVertex;
12 class MGIgesIfstream;
13 
15 class MGIges504Edge{
16 public:
17 
18 MGIges504Edge(
19 ):m_curve_DE(0),m_Svertex_list(0),m_Svertex(0),m_Tvertex_list(0),m_Tvertex(0){;};
20 
21 MGIges504Edge(
22  int curve_DE,
23  int Svertex_list,
25  int Svertex,
26  int Tvertex_list,
28  int Tvertex
29 ):m_curve_DE(curve_DE),m_Svertex_list(Svertex_list),m_Svertex(Svertex)
30 ,m_Tvertex_list(Tvertex_list),m_Tvertex(Tvertex){;};
31 
33 MGBVertex* get_SVertex(MGIgesIfstream& ifs)const;
34 
36 MGBVertex* get_TVertex(MGIgesIfstream& ifs)const;
37 
38 public:
39  int m_curve_DE;
40  int m_Svertex_list;
42  int m_Svertex;
43  int m_Tvertex_list;
45  int m_Tvertex;
46 };
48 
50 
52 class MGIgesPD504: public MGIgesPD{
53 public:
54  // Constructors.
55 
58 
61 
62 MGIges504Edge& operator[](int i){return m_edges[i];};
63 const MGIges504Edge& operator[](int i)const{return m_edges[i];};
64 
66 void push_back(const MGIges504Edge& edge){m_edges.push_back(edge);};
67 
69 void read_in(
70  char pDelimeter,
71  std::istringstream& pdstream
72 );
73 
81  const MGIgesGSec& gsec,
82  MGPvector<std::string>& plines
83 )const;
84 
85 //Member data. These are set as public.
87  std::vector<MGIges504Edge> m_edges;
88 };
90 
91 #endif
void write_out_into_string(const MGIgesGSec &gsec, MGPvector< std::string > &plines) const
MGIgesPD504 is the class for the Iges parameter data type 504(EDGE list) form 1.
Definition: igesPD504.h:52
MGBVertex is 0 manifold dimension binder cell, is an point.
Definition: BVertex.h:30
void read_in(char pDelimeter, std::istringstream &pdstream)
Read in parameter data from string stream data.
const MGIgesDirectoryEntry * DEpointer() const
Definition: igesPD.h:39
void push_back(const MGIges504Edge &edge)
append an edge.
Definition: igesPD504.h:66
MGIgesDirectoryEntry describes a directory entry section of an IGES file.
Definition: IgesDirectoryEntry.h:20
std::vector< MGIges504Edge > m_edges
Vector of MGIges504Edge's.
Definition: igesPD504.h:87
MGIgesIfstream read in *.iges; *.igs file, transforming IGES objects to MGCL objects.
Definition: IgesIfstream.h:43
MGIgesPD is the parent class of all the Parameter data section type.
Definition: igesPD.h:17
MGIgesPD504(MGIgesDirectoryEntry *DEpointer=0)
Constructs an object of class MGIgesPD504.
MGIges504Edge & operator[](int i)
Definition: igesPD504.h:62
MGIgesGSec describes a Global Section of a IGES file.
Definition: IgesGSec.h:18
~MGIgesPD504()
Destructor;.
Definition: igesPD504.h:60
Defines Vector of newed object pointers.
Definition: Pvector.h:27
const MGIges504Edge & operator[](int i) const
Definition: igesPD504.h:63