MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
igespd192.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #if !defined( __MGIGESPD192_H__)
6 #define __MGIGESPD192_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 
16 class MGIgesPD192: public MGIgesPD{
17 public:
19 
22 
25  int locationDE, int normalDE, double radius, int refdirDE=0
26  );
27 
30 
32  void getOrigin(const MGIgesIfstream& ifs, MGPosition& origin)const;
33 
35  void getNormal(const MGIgesIfstream& ifs, MGUnit_vector& normal)const;
36 
38  void getRefdir(const MGIgesIfstream& ifs, MGVector& refdir)const;
39 
40  double getRadius()const{return m_radius;};
41 
43  void read_in(
44  char pDelimeter,
45  std::istringstream& pdstream
46  );
47 
55  const MGIgesGSec& gsec,
56  MGPvector<std::string>& plines
57  )const;
58 
59 //Member data. These are set as public.
60 
63  double m_radius;
65 };
67 
68 #endif // __MGIGESPD192_H__
MGIgesPD192(MGIgesDirectoryEntry *DEpointer=0)
Constructors.
const MGIgesDirectoryEntry * DEpointer() const
Definition: igesPD.h:39
void getRefdir(const MGIgesIfstream &ifs, MGVector &refdir) const
Get the plane reference direction(REFDIR) into refdir.
void getOrigin(const MGIgesIfstream &ifs, MGPosition &origin) const
Get the plane origin(LOCATION) into origin.
MGIgesPD192 is the class for Iges parameter data type 192.
Definition: igespd192.h:16
MGIgesDirectoryEntry describes a directory entry section of an IGES file.
Definition: IgesDirectoryEntry.h:20
Vector of a general n space dimension.
Definition: Vector.h:26
int m_refdirDE
=0 if no reference direction.
Definition: igespd192.h:64
int m_locationDE
a location DE on the cylinder.
Definition: igespd192.h:61
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_normalDE
normal DE of the cylinder(this is a unit vector).
Definition: igespd192.h:62
~MGIgesPD192()
Destructor;.
Definition: igespd192.h:29
void read_in(char pDelimeter, std::istringstream &pdstream)
Read in parameter data from string stream data.
MGIgesGSec describes a Global Section of a IGES file.
Definition: IgesGSec.h:18
double m_radius
Radius of the cylinder.
Definition: igespd192.h:63
void getNormal(const MGIgesIfstream &ifs, MGUnit_vector &normal) const
Get the plane normal into nromal.
double getRadius() const
Definition: igespd192.h:40
Defines Vector of newed object pointers.
Definition: Pvector.h:27
void write_out_into_string(const MGIgesGSec &gsec, MGPvector< std::string > &plines) const
Define a unit vector, is a MGVector.
Definition: Unit_vector.h:17