LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
LSST Data Management Base Package
Loading...
Searching...
No Matches
Classes | Functions
lsst::afw::geom::polygon Namespace Reference

Classes

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

Functions

DOXYGEN_IGNORE std::ostreamoperator<< (std::ostream &os, Polygon const &poly)
 Stream polygon.
 
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 172 of file Polygon.cc.

172 {
173 return os << "BoostPolygon(" << poly.outer() << ")";
174}
Low-level polynomials (including special polynomials) in C++.

◆ operator<<() [2/3]

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

Stream polygon.

Definition at line 176 of file Polygon.cc.

176 {
177 os << poly.toString();
178 return os;
179}
std::ostream * os
Definition Schema.cc:557

◆ operator<<() [3/3]

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

Definition at line 161 of file Polygon.cc.

161 {
162 os << "[";
163 size_t num = vertices.size();
164 for (size_t i = 0; i < num - 1; ++i) {
165 os << vertices[i] << ",";
166 }
167 os << vertices[vertices.size() - 1] << "]";
168 return os;
169}
afw::table::PointKey< double > vertices
Definition Polygon.cc:546

◆ wrapPolygon()

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

Definition at line 137 of file _polygon.cc.

137 {
138 wrappers.addInheritanceDependency("lsst.pex.exceptions");
139 wrappers.addInheritanceDependency("lsst.afw.typehandling");
140 wrappers.addSignatureDependency("lsst.afw.table.io");
141 wrappers.wrapException<SinglePolygonException, pex::exceptions::RuntimeError>("SinglePolygonException",
142 "RuntimeError");
143 declarePolygon(wrappers);
144}
An exception that indicates the single-polygon assumption has been violated.
Definition Polygon.h:53
Reports errors that are due to events beyond the control of the program.
Definition Runtime.h:104