MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
igespd190.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #if !defined( __MGIGESPD190_H__)
6 #define __MGIGESPD190_H__
7 
8 #include "mg/Position.h"
9 #include "mg/Unit_vector.h"
10 #include "mgiges/IgesIfstream.h"
11 #include "mgiges/IgesPD.h"
12 
14 class MGIgesPD190: public MGIgesPD{
15 public:
16  // Constructors.
17 
20 
23  int locationDE, int normalDE, int refdirDE=0
24  );
25 
28 
30  void getOrigin(const MGIgesIfstream& ifs, MGPosition& origin)const;
31 
33  void getNormal(const MGIgesIfstream& ifs, MGUnit_vector& normal)const;
34 
36  void getRefdir(const MGIgesIfstream& ifs, MGVector& refdir)const;
37 
39  void read_in(
40  char pDelimeter,
41  std::istringstream& pdstream
42  );
43 
51  const MGIgesGSec& gsec,
52  MGPvector<std::string>& plines
53  )const;
54 
55 //Member data. These are set as public.
59 };
61 
62 #endif // __MGIGESPD190_H__
void read_in(char pDelimeter, std::istringstream &pdstream)
Read in parameter data from string stream data.
MGIgesPD190(MGIgesDirectoryEntry *DEpointer=0)
Constructs an object of class MGIgesPD190.
void getOrigin(const MGIgesIfstream &ifs, MGPosition &origin) const
Get the plane origin(LOCATION) into origin.
const MGIgesDirectoryEntry * DEpointer() const
Definition: igesPD.h:39
MGIgesDirectoryEntry describes a directory entry section of an IGES file.
Definition: IgesDirectoryEntry.h:20
void getRefdir(const MGIgesIfstream &ifs, MGVector &refdir) const
Get the plane reference direction(REFDIR) into refdir.
Vector of a general n space dimension.
Definition: Vector.h:26
MGIgesIfstream read in *.iges; *.igs file, transforming IGES objects to MGCL objects.
Definition: IgesIfstream.h:43
Represent a positional data.
Definition: Position.h:28
MGIgesPD is the parent class of all the Parameter data section type.
Definition: igesPD.h:17
int m_locationDE
a location DE on the plane.
Definition: igespd190.h:56
void getNormal(const MGIgesIfstream &ifs, MGUnit_vector &normal) const
Get the plane normal into nromal.
int m_normalDE
normal DE of the plane(this is a unit vector).
Definition: igespd190.h:57
MGIgesGSec describes a Global Section of a IGES file.
Definition: IgesGSec.h:18
int m_refdirDE
=0 if no reference direction.
Definition: igespd190.h:58
~MGIgesPD190()
Destructor;.
Definition: igespd190.h:27
MGIgesPD190 is the class for Iges parameter data type 190(plane surface).
Definition: igespd190.h:14
void write_out_into_string(const MGIgesGSec &gsec, MGPvector< std::string > &plines) const
Defines Vector of newed object pointers.
Definition: Pvector.h:27
Define a unit vector, is a MGVector.
Definition: Unit_vector.h:17