MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
OscuCircleData.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #ifndef _MGOscuCircleData_HH_
6 #define _MGOscuCircleData_HH_
7 
11 #include "mg/MGCL.h"
12 
13 // MGOscuCircleData.h
14 //
15 
16 class MGIfstream;
17 class MGOfstream;
18 
20 
30 class MG_DLL_DECLR MGOscuCircleData {
31 
32 public:
33 
35 MG_DLL_DECLR friend std::ostream& operator<< (std::ostream&, const MGOscuCircleData& );
36 
38 
41 
43  int index,
44  double radius
46 );
47 
48 //Destructor
49 // ~MGOscuCircleData();
50 
52 
53 bool operator< (const MGOscuCircleData& ocd2)const;
54 bool operator> (const MGOscuCircleData& ocd2)const{return ocd2<(*this);};
55 bool operator<= (const MGOscuCircleData& ocd2)const{return !(ocd2<(*this));};
56 bool operator>= (const MGOscuCircleData& ocd2)const{return !((*this)<ocd2);};
57 bool operator== (const MGOscuCircleData& ocd2)const;
58 bool operator!= (const MGOscuCircleData& ocd2)const{return !operator==(ocd2);};
59 
61 
62 int index() const {return m_index;}
63 double radius() const {return m_radius;}
64 
66 int dump_size() const;
67 
69 int dump(MGOfstream& ) const;
70 
72 int restore(MGIfstream& );
73 
75 private:
76  int m_index;
77  double m_radius;
78 
79 };
80  // end of GEORelated group
82 #endif
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
int index() const
Definition: OscuCircleData.h:62
MGOfstream is a class to serialize all of the subclasses of MGGel.
Definition: Ofstream.h:31
MGOscuCircleData()
Default Constructor.
Definition: OscuCircleData.h:40
The class for MGLBRep constructor of osculating circles.
Definition: OscuCircleData.h:30
double radius() const
Definition: OscuCircleData.h:63