📄 segmentstring.inl
字号:
/********************************************************************** * $Id: SegmentString.inl 1820 2006-09-06 16:54:23Z mloskot $ * * GEOS - Geometry Engine Open Source * http://geos.refractions.net * * Copyright (C) 2005-2006 Refractions Research Inc. * * This is free software; you can redistribute and/or modify it under * the terms of the GNU Lesser General Public Licence as published * by the Free Software Foundation. * See the COPYING file for more information. * **********************************************************************/#ifndef GEOS_NODING_SEGMENTSTRING_INL#define GEOS_NODING_SEGMENTSTRING_INL#include <geos/noding/SegmentString.h>#include <geos/geom/Coordinate.h>#include <cassert>namespace geos {namespace noding { // geos.nodingINLINESegmentString::SegmentString(geom::CoordinateSequence *newPts, const void* newContext) : nodeList(this), pts(newPts), npts(pts->size()), context(newContext), isIsolatedVar(false){ testInvariant();}INLINESegmentString::~SegmentString() {}INLINE const void*SegmentString::getData() const{ testInvariant(); return context;}INLINE const SegmentNodeList&SegmentString::getNodeList() const{ testInvariant(); return nodeList;}INLINE SegmentNodeList&SegmentString::getNodeList(){ testInvariant(); return nodeList;}INLINE unsigned intSegmentString::size() const{ testInvariant(); return npts;}INLINE const geom::Coordinate&SegmentString::getCoordinate(unsigned int i) const{ testInvariant(); return pts->getAt(i);}INLINE geom::CoordinateSequence*SegmentString::getCoordinates() const{ testInvariant(); return pts;}INLINE voidSegmentString::setIsolated(bool isIsolated){ isIsolatedVar=isIsolated; testInvariant();}INLINE boolSegmentString::isIsolated() const{ testInvariant(); return isIsolatedVar;}INLINE boolSegmentString::isClosed() const{ testInvariant(); return pts->getAt(0)==pts->getAt(npts-1);}} // namespace geos.noding} // namespace geos#endif // GEOS_NODING_SEGMENTSTRING_INL
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -