/********************************************************************/ /* Copyright (c) 2017 System fugen G.K. and Yuzi Mizuno */ /* All rights reserved. */ /********************************************************************/ #ifndef _MGLPoint_HH_ #define _MGLPoint_HH_ #include #include "mg/MGCL.h" class MGLEPoint; //Define MGLPoint Class. /** @file */ /** @addtogroup TOPORelated * @{ */ ///MGLPoint is to represent Loop's point. ///This is represented as ///(i, t), where i is the pcell id(i.e. edge number) of in the loop, ///and t is the parameter value of the curve of the pcell(edge). class MG_DLL_DECLR MGLPoint{ public: ///String stream Function MG_DLL_DECLR friend std::ostream& operator<< (std::ostream&, const MGLPoint& ); /////////Constructor///////// MGLPoint():m_i(0), m_t(0.){;}; ///Construct from all the necessary data. MGLPoint( int i, /// (const MGLPoint& lp)const; bool operator<= (const MGLPoint& lp)const; bool operator>= (const MGLPoint& lp)const; bool operator== (const MGLPoint& lp)const; bool operator!= (const MGLPoint& lp)const{return !operator==(lp);}; /////////Member function///////// ///return loop's edge number. int edge_num()const{return m_i;}; ///Return isect data. double param()const{return m_t;}; private: int m_i; ///