MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
LBRepEndC.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #ifndef _MGLBRepEndC_HH_
6 #define _MGLBRepEndC_HH_
7 #include "mg/MGCL.h"
8 #include "mg/Vector.h"
9 
10 // MGLBRepEndC.h
11 //
12 
13 class MGNDDArray;
14 class MGBPointSeq;
15 class MGCurve;
16 class MGIfstream;
17 class MGOfstream;
18 
24 
34 class MG_DLL_DECLR MGLBRepEndC {
35 
36 public:
37 
39 
41 MGLBRepEndC():m_cond(MGENDC_NO){;};
42 
45  MGENDCOND cond,
46  const MGVector& deriv
48 );
49 
52  const MGVector& first_deriv,
53  const MGVector& second_deriv
54 );
55 
59  int start,
60  const MGNDDArray& tau,
62  const MGBPointSeq& points,
63  int &error
64 );
65 
69  int start,
70  const MGBPointSeq& points
72 );
73 
76  int start,
77  MGENDCOND cond,
78  const MGCurve& curve
79 );
80 
83 
85 MG_DLL_DECLR friend std::ostream& operator<< (std::ostream&, const MGLBRepEndC& );
86 
88 
89 MGENDCOND cond() const {return m_cond;}
90 const MGVector& first() const {return m_1deriv;}
91 MGVector& first() {return m_1deriv;}
92 const MGVector& second() const {return m_2deriv;}
93 MGVector& second() {return m_2deriv;}
94 
97 void initialize();
98 
100 void set_1st(const MGVector& first_deriv);
101 
103 void set_2nd(const MGVector& second_deriv);
104 
106 int dump_size() const;
107 
109 int dump(MGOfstream& ) const;
110 
112 int restore(MGIfstream& );
113 
115 private:
116 
117  MGENDCOND m_cond;
118  MGVector m_1deriv;
119  MGVector m_2deriv;
121 
123 };
124  // end of GEORelated group
126 
127 #endif
MGCurve is an abstract class which represents a whole curve.
Definition: Curve.h:63
no end cond(only positional data)
Definition: MGCL.h:223
MGIfstream is a class to read the serialized data generated by MGOfstream.
Definition: Ifstream.h:30
std::ostream & operator<<(std::ostream &ostrm, const MGisect &is)
Debug Function.
Definition: isect.h:95
MGENDCOND cond() const
Definition: LBRepEndC.h:89
Vector of a general n space dimension.
Definition: Vector.h:26
MGLBRepEndC()
Default Constructor.
Definition: LBRepEndC.h:41
const MGVector & first() const
Definition: LBRepEndC.h:90
Defines BPoint seq of a space dimension and of a capacity.
Definition: BPointSeq.h:38
MGVector & first()
Definition: LBRepEndC.h:91
MGVector & second()
Definition: LBRepEndC.h:93
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
Defines End Condition of Line B-Representation.
Definition: LBRepEndC.h:34
MGENDCOND
End condition to get spline by interpolation.
Definition: MGCL.h:219
Defines non-decreasing double data array.
Definition: NDDArray.h:27
const MGVector & second() const
Definition: LBRepEndC.h:92