MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
igespd112.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #if !defined( __MGIGESPD112_H__)
6 #define __MGIGESPD112_H__
7 
8 #include <vector>
9 #include "mg/NDDArray.h"
10 #include "mgiges/IgesPD.h"
11 
13 //A Private class for MGIgesPD112, express one coefficient of IGES NURBS.
14 class MGIgesSplineCoef{
15 public:
16  double m_abcd[4][3];
19 };
21 
23 class MGIgesPD112: public MGIgesPD{
24 public:
25  // Constructors.
26 
29 
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 public:
51 //Member data. These are set as public.
52 
53  short m_spline_type;
54  short m_continuity;
56  short m_dimension;
59  std::vector<MGIgesSplineCoef> m_coefs;
61 
62 };
63 
64 #endif // __MGIGESPD112_H__
MGNDDArray m_tau
Break point sequence of the spline. m_tau.length()=number_of_segments+1;.
Definition: igespd112.h:57
void read_in(char pDelimeter, std::istringstream &pdstream)
Read in parameter data from string stream data.
std::vector< MGIgesSplineCoef > m_coefs
Coefficients sequence of the spline. m_coefs.size()=number_of_segments+1;.
Definition: igespd112.h:59
const MGIgesDirectoryEntry * DEpointer() const
Definition: igesPD.h:39
MGIgesPD112(MGIgesDirectoryEntry *DEpointer=0)
Constructs an object of class MGIgesPD112.
MGIgesDirectoryEntry describes a directory entry section of an IGES file.
Definition: IgesDirectoryEntry.h:20
~MGIgesPD112()
Destructor;.
Definition: igespd112.h:31
MGIgesPD is the parent class of all the Parameter data section type.
Definition: igesPD.h:17
short m_spline_type
=4:Wilson-Fowler, =5:Modified Wilson-Fowler, =6:B-spline.
Definition: igespd112.h:53
MGIgesGSec describes a Global Section of a IGES file.
Definition: IgesGSec.h:18
short m_continuity
Degree of continuity with respect to arc length.
Definition: igespd112.h:55
Defines non-decreasing double data array.
Definition: NDDArray.h:27
MGIgesPD112 is the class for Iges parameter data type 112(Parametric spline curve).
Definition: igespd112.h:23
short m_dimension
=2:planar, =3:nonplanar.
Definition: igespd112.h:56
Defines Vector of newed object pointers.
Definition: Pvector.h:27
void write_out_into_string(const MGIgesGSec &gsec, MGPvector< std::string > &plines) const