Read point. More...
#include <SgPoint.h>
Public Member Functions | |
| SgReadPoint (SgPoint &point) | |
| void | Read (std::istream &in) const |
Private Attributes | |
| SgPoint & | m_point |
Related Functions | |
(Note that these are not member functions.) | |
| std::istream & | operator>> (std::istream &in, const SgReadPoint &readPoint) |
Read point.
For overloading input stream operator for SgPoint (which is an integer). Usage:
istream& in;
SgPoint point;
in >> SgReadPoint(point);
if (! in)
SgDebug() << "Invalid point\n";
Definition at line 186 of file SgPoint.h.
| void SgReadPoint::Read | ( | std::istream & | in | ) | const |
Definition at line 94 of file SgPoint.cpp.
References SgUtil::InRange(), m_point, SgPointUtil::Pt(), SG_ASSERT, SG_COUPONMOVE, SG_COUPONMOVE_VIRTUAL, SG_MAX_SIZE, SG_PASS, and SG_RESIGN.
Referenced by operator>>().
| std::istream & operator>> | ( | std::istream & | in, | |
| const SgReadPoint & | readPoint | |||
| ) | [related] |
SgPoint& SgReadPoint::m_point [private] |