LSST Applications  21.0.0-147-g0e635eb1+1acddb5be5,22.0.0+052faf71bd,22.0.0+1ea9a8b2b2,22.0.0+6312710a6c,22.0.0+729191ecac,22.0.0+7589c3a021,22.0.0+9f079a9461,22.0.1-1-g7d6de66+b8044ec9de,22.0.1-1-g87000a6+536b1ee016,22.0.1-1-g8e32f31+6312710a6c,22.0.1-10-gd060f87+016f7cdc03,22.0.1-12-g9c3108e+df145f6f68,22.0.1-16-g314fa6d+c825727ab8,22.0.1-19-g93a5c75+d23f2fb6d8,22.0.1-19-gb93eaa13+aab3ef7709,22.0.1-2-g8ef0a89+b8044ec9de,22.0.1-2-g92698f7+9f079a9461,22.0.1-2-ga9b0f51+052faf71bd,22.0.1-2-gac51dbf+052faf71bd,22.0.1-2-gb66926d+6312710a6c,22.0.1-2-gcb770ba+09e3807989,22.0.1-20-g32debb5+b8044ec9de,22.0.1-23-gc2439a9a+fb0756638e,22.0.1-3-g496fd5d+09117f784f,22.0.1-3-g59f966b+1e6ba2c031,22.0.1-3-g849a1b8+f8b568069f,22.0.1-3-gaaec9c0+c5c846a8b1,22.0.1-32-g5ddfab5d3+60ce4897b0,22.0.1-4-g037fbe1+64e601228d,22.0.1-4-g8623105+b8044ec9de,22.0.1-5-g096abc9+d18c45d440,22.0.1-5-g15c806e+57f5c03693,22.0.1-7-gba73697+57f5c03693,master-g6e05de7fdc+c1283a92b8,master-g72cdda8301+729191ecac,w.2021.39
LSST Data Management Base Package
Classes | Functions
lsst::afw::geom::polygon Namespace Reference

Classes

class  SinglePolygonException
 An exception that indicates the single-polygon assumption has been violated. More...
 
class  Polygon
 Cartesian polygons. More...
 

Functions

std::ostreamoperator<< (std::ostream &os, Polygon const &poly)
 Stream polygon. More...
 
void wrapPolygon (lsst::utils::python::WrapperCollection &)
 
std::ostreamoperator<< (std::ostream &os, std::vector< LsstPoint > const &vertices)
 
std::ostreamoperator<< (std::ostream &os, BoostPolygon const &poly)
 

Function Documentation

◆ operator<<() [1/3]

std::ostream& lsst::afw::geom::polygon::operator<< ( std::ostream os,
BoostPolygon const &  poly 
)

Definition at line 167 of file Polygon.cc.

167  {
168  return os << "BoostPolygon(" << poly.outer() << ")";
169 }
std::ostream * os
Definition: Schema.cc:557
Low-level polynomials (including special polynomials) in C++.
Definition: Basis1d.h:26

◆ operator<<() [2/3]

std::ostream & lsst::afw::geom::polygon::operator<< ( std::ostream os,
Polygon const &  poly 
)

Stream polygon.

Definition at line 171 of file Polygon.cc.

171  {
172  os << poly.toString();
173  return os;
174 }

◆ operator<<() [3/3]

std::ostream& lsst::afw::geom::polygon::operator<< ( std::ostream os,
std::vector< LsstPoint > const &  vertices 
)

Definition at line 156 of file Polygon.cc.

156  {
157  os << "[";
158  size_t num = vertices.size();
159  for (size_t i = 0; i < num - 1; ++i) {
160  os << vertices[i] << ",";
161  }
162  os << vertices[vertices.size() - 1] << "]";
163  return os;
164 }
afw::table::PointKey< double > vertices
Definition: Polygon.cc:525

◆ wrapPolygon()

void lsst::afw::geom::polygon::wrapPolygon ( lsst::utils::python::WrapperCollection &  wrappers)

Definition at line 129 of file _polygon.cc.

129  {
130  wrappers.addSignatureDependency("lsst.pex.exceptions");
131  wrappers.addInheritanceDependency("lsst.afw.typehandling");
132  wrappers.addSignatureDependency("lsst.afw.table.io");
133  wrappers.wrapException<SinglePolygonException, pex::exceptions::RuntimeError>("SinglePolygonException",
134  "RuntimeError");
135  declarePolygon(wrappers);
136 }