Loading [MathJax]/extensions/tex2jax.js
LSST Applications g04a91732dc+7fec47d7bc,g07dc498a13+5ab4d22ec3,g0fba68d861+565de8e5d5,g1409bbee79+5ab4d22ec3,g1a7e361dbc+5ab4d22ec3,g1fd858c14a+11200c7927,g20f46db602+25d63fd678,g35bb328faa+fcb1d3bbc8,g4d2262a081+61302e889d,g4d39ba7253+d05e267ece,g4e0f332c67+5d362be553,g53246c7159+fcb1d3bbc8,g60b5630c4e+d05e267ece,g78460c75b0+2f9a1b4bcd,g786e29fd12+cf7ec2a62a,g7b71ed6315+fcb1d3bbc8,g8048e755c2+a1301e4c20,g8852436030+163ceb82d8,g89139ef638+5ab4d22ec3,g89e1512fd8+fbb808ebce,g8d6b6b353c+d05e267ece,g9125e01d80+fcb1d3bbc8,g989de1cb63+5ab4d22ec3,g9f33ca652e+8abe617c77,ga9baa6287d+d05e267ece,gaaedd4e678+5ab4d22ec3,gabe3b4be73+1e0a283bba,gb1101e3267+fefe9ce5b1,gb58c049af0+f03b321e39,gb90eeb9370+824c420ec4,gc741bbaa4f+77ddc33078,gcf25f946ba+163ceb82d8,gd315a588df+0f88d5218e,gd6cbbdb0b4+c8606af20c,gd9a9a58781+fcb1d3bbc8,gde0f65d7ad+e6bd566e97,ge278dab8ac+932305ba37,ge82c20c137+76d20ab76d,w.2025.10
LSST Data Management Base Package
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
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::cpputils::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}

◆ 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}

◆ 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}

◆ wrapPolygon()

void lsst::afw::geom::polygon::wrapPolygon ( lsst::cpputils::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
void addSignatureDependency(std::string const &name)
Indicate an external module that provides a type used in function/method signatures.
Definition python.h:357
void addInheritanceDependency(std::string const &name)
Indicate an external module that provides a base class for a subsequent addType call.
Definition python.h:343
auto wrapException(std::string const &pyName, std::string const &pyBase, bool setModuleName=true)
Wrap a C++ exception as a Python exception.
Definition python.h:421
Reports errors that are due to events beyond the control of the program.
Definition Runtime.h:104