MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
igespd196.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #if !defined( __MGIGESPD196_H__)
6 #define __MGIGESPD196_H__
7 
8 #include "mg/Position.h"
9 #include "mg/Unit_vector.h"
10 #include "mg/Sphere.h"
11 #include "mgiges/IgesIfstream.h"
12 #include "mgiges/IgesPD.h"
13 
15 class MGIgesPD196: public MGIgesPD{
16 public:
17  // Constructors.
18 
21 
24  int locationDE, double radius, int axisDE=0, int refdirDE=0
25  );
26 
29 
31  void getCenter(const MGIgesIfstream& ifs, MGPosition& center)const;
32 
34  void getAxis(const MGIgesIfstream& ifs, MGUnit_vector& axis)const;
35 
37  void getRefdir(const MGIgesIfstream& ifs, MGVector& refdir)const;
38 
39  double getRadius()const{return m_radius;};
40 
42  void read_in(
43  char pDelimeter,
44  std::istringstream& pdstream
45  );
46 
54  const MGIgesGSec& gsec,
55  MGPvector<std::string>& plines
56  )const;
57 
59 
61  double m_radius;
62  int m_axisDE;
63  int m_refdirDE;
65 };
67 
68 #endif // __MGIGESPD196_H__
int m_refdirDE
=0 if no reference direction.
Definition: igespd196.h:64
const MGIgesDirectoryEntry * DEpointer() const
Definition: igesPD.h:39
double m_radius
Radius of the sphere.
Definition: igespd196.h:61
MGIgesPD196(MGIgesDirectoryEntry *DEpointer=0)
Constructs an object of class MGIgesPD196.
void getRefdir(const MGIgesIfstream &ifs, MGVector &refdir) const
Get the sphere reference direction(REFDIR) into refdir.
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
MGIgesPD196 is the class for Iges parameter data type 196(sphere surface).
Definition: igespd196.h:15
int m_axisDE
=0 if no axis direction.
Definition: igespd196.h:62
void write_out_into_string(const MGIgesGSec &gsec, MGPvector< std::string > &plines) const
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
double getRadius() const
Definition: igespd196.h:39
MGIgesGSec describes a Global Section of a IGES file.
Definition: IgesGSec.h:18
~MGIgesPD196()
Destructor;.
Definition: igespd196.h:28
void getAxis(const MGIgesIfstream &ifs, MGUnit_vector &axis) const
Get the plane normal into nromal.
void getCenter(const MGIgesIfstream &ifs, MGPosition &center) const
Get the sphere center(LOCATION) into origin.
int m_locationDE
Member data. These are set as public.
Definition: igespd196.h:60
void read_in(char pDelimeter, std::istringstream &pdstream)
Read in parameter data from string stream data.
Defines Vector of newed object pointers.
Definition: Pvector.h:27
Define a unit vector, is a MGVector.
Definition: Unit_vector.h:17