MGCL V10  V10
MGCL V10
 全て クラス 名前空間 関数 変数 型定義 列挙型 列挙値 フレンド グループ ページ
LPoint.h
1 /********************************************************************/
2 /* Copyright (c) 2015 DG Technologies Inc. and Yuzi Mizuno */
3 /* All rights reserved. */
4 /********************************************************************/
5 #ifndef _MGLPoint_HH_
6 #define _MGLPoint_HH_
7 
8 #include <iosfwd>
9 #include "mg/MGCL.h"
10 class MGLEPoint;
11 //Define MGLPoint Class.
12 
18 
23 class MG_DLL_DECLR MGLPoint{
24 
25 public:
26 
28 MG_DLL_DECLR friend std::ostream& operator<< (std::ostream&, const MGLPoint& );
29 
31 MGLPoint():m_i(0), m_t(0.){;};
32 
35  int i,
36  double t)
37  :m_i(i), m_t(t){;};
38 
40 MGLPoint(const MGLEPoint& le);
41 
43 
44 bool operator< (const MGLPoint& lp)const;
45 bool operator> (const MGLPoint& lp)const;
46 bool operator<= (const MGLPoint& lp)const;
47 bool operator>= (const MGLPoint& lp)const;
48 bool operator== (const MGLPoint& lp)const;
49 bool operator!= (const MGLPoint& lp)const{return !operator==(lp);};
50 
52 
54 int edge_num()const{return m_i;};
55 
57 double param()const{return m_t;};
58 
59 private:
60  int m_i;
61  double m_t;
62 
63 };
64  // end of TOPORelated group
66 #endif
int edge_num() const
return loop's edge number.
Definition: LPoint.h:54
MGLPoint is to represent Loop's point.
Definition: LPoint.h:23
std::ostream & operator<<(std::ostream &ostrm, const MGisect &is)
Debug Function.
Definition: isect.h:95
double param() const
Return isect data.
Definition: LPoint.h:57
Is to represent a Loop's point.
Definition: LEPoint.h:28
MGLPoint()
Definition: LPoint.h:31
MGLPoint(int i, double t)
Construct from all the necessary data.
Definition: LPoint.h:34