MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
igesPD502.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #if !defined( __MGIGESPD502_H__)
6 #define __MGIGESPD502_H__
7 
11 
12 #include <vector>
13 #include "mg/Position.h"
14 #include "mgiges/IgesPD.h"
15 
17 class MGIgesPD502: public MGIgesPD{
18 public:
20 
23 
26 
27  MGPosition& operator[](int i){return m_vertices[i];};
28  const MGPosition& operator[](int i)const{return m_vertices[i];};
29 
31  void push_back(const MGPosition& vertex);
32 
34  void read_in(
35  char pDelimeter,
36  std::istringstream& pdstream
37  );
38 
46  const MGIgesGSec& gsec,
47  MGPvector<std::string>& plines
48  )const;
49 
50 //Member data. These are set as public.
51 
53  std::vector<MGPosition> m_vertices;
54 };
56 
57 #endif // __MGIGESPD502_H__
MGIgesPD502(MGIgesDirectoryEntry *DEpointer=0)
Constructors.
std::vector< MGPosition > m_vertices
Vertices of 3D coordinates.
Definition: igesPD502.h:53
const MGPosition & operator[](int i) const
Definition: igesPD502.h:28
void read_in(char pDelimeter, std::istringstream &pdstream)
Read in parameter data from string stream data.
void push_back(const MGPosition &vertex)
append one vertex data.
~MGIgesPD502()
Destructor;.
Definition: igesPD502.h:25
const MGIgesDirectoryEntry * DEpointer() const
Definition: igesPD.h:39
MGPosition & operator[](int i)
Definition: igesPD502.h:27
void write_out_into_string(const MGIgesGSec &gsec, MGPvector< std::string > &plines) const
MGIgesDirectoryEntry describes a directory entry section of an IGES file.
Definition: IgesDirectoryEntry.h:20
MGIgesPD502 is the class for the Iges parameter data type 502(VERTEX List Entity) form 1...
Definition: igesPD502.h:17
Represent a positional data.
Definition: Position.h:28
MGIgesPD is the parent class of all the Parameter data section type.
Definition: igesPD.h:17
MGIgesGSec describes a Global Section of a IGES file.
Definition: IgesGSec.h:18
Defines Vector of newed object pointers.
Definition: Pvector.h:27