![]() |
Prusa Slicer 2.6.0
|
An abstraction of a box;. More...
#include <src/libnest2d/include/libnest2d/geometry_traits.hpp>
Inheritance diagram for libnest2d::_Box< P >:
Collaboration diagram for libnest2d::_Box< P >:Public Types | |
| using | Tag = BoxTag |
| using | PointType = P |
Public Member Functions | |
| _Box (const P ¢er={TCoord< P >(0), TCoord< P >(0)}) | |
| _Box (const P &p, const P &pp) | |
| _Box (TCoord< P > width, TCoord< P > height, const P &p={TCoord< P >(0), TCoord< P >(0)}) | |
| const P & | minCorner () const BP2D_NOEXCEPT |
| const P & | maxCorner () const BP2D_NOEXCEPT |
| P & | minCorner () BP2D_NOEXCEPT |
| P & | maxCorner () BP2D_NOEXCEPT |
| TCoord< P > | width () const BP2D_NOEXCEPT |
| TCoord< P > | height () const BP2D_NOEXCEPT |
| P | center () const BP2D_NOEXCEPT |
| template<class Unit = TCompute<P>> | |
| Unit | area () const BP2D_NOEXCEPT |
Static Public Member Functions | |
| static _Box | infinite (const P ¢er={TCoord< P >(0), TCoord< P >(0)}) |
Private Attributes | |
| P | p1 |
| P | p2 |
An abstraction of a box;.
| using libnest2d::_Box< P >::PointType = P |
| using libnest2d::_Box< P >::Tag = BoxTag |
|
inline |
|
inline |
|
inline |
References libnest2d::_Box< P >::center(), libnest2d::_Box< P >::height(), libnest2d::modulo(), and libnest2d::_Box< P >::width().
Here is the call graph for this function:
|
inline |
References libnest2d::abs(), libnest2d::_Box< P >::height(), and libnest2d::_Box< P >::width().
Referenced by Slic3r::arrangement::fixed_overfit().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References libnest2d::getX(), and libnest2d::getY().
Referenced by libnest2d::_Box< P >::_Box(), libnest2d::placers::_NofitPolyPlacer< RawShape, TBin >::finalAlign(), Slic3r::arrangement::AutoArranger< TBin >::objfunc(), libnest2d::placers::_NofitPolyPlacer< RawShape, TBin >::overfit(), and libnest2d::placers::_NofitPolyPlacer< RawShape, TBin >::setInitialPosition().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inline |
References libnest2d::pointlike::y().
Referenced by libnest2d::_Box< P >::_Box(), libnest2d::placers::_BottomLeftPlacer< RawShape >::_trypack(), libnest2d::_Box< P >::area(), libnest2d::placers::_NofitPolyPlacer< RawShape, TBin >::overfit(), libnest2d::placers::_NofitPolyPlacer< RawShape, TBin >::overfit(), and libnest2d::svg::SVGWriter< RawShape >::setSize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inlinestatic |
References libnest2d::getX(), libnest2d::getY(), libnest2d::_Box< P >::maxCorner(), and libnest2d::_Box< P >::minCorner().
Here is the call graph for this function:
|
inline |
References libnest2d::PointPair< P >::p2.
|
inline |
References libnest2d::PointPair< P >::p2.
Referenced by libnest2d::shapelike::boundingBox(), libnest2d::placers::_NofitPolyPlacer< RawShape, TBin >::finalAlign(), boost::geometry::traits::indexed_access< bp2d::Box, max_corner, 0 >::get(), boost::geometry::traits::indexed_access< bp2d::Box, max_corner, 1 >::get(), libnest2d::_Box< P >::infinite(), libnest2d::shapelike::offset(), libnest2d::placers::_NofitPolyPlacer< RawShape, TBin >::overfit(), libnest2d::placers::_NofitPolyPlacer< RawShape, TBin >::placeOutsideOfBin(), boost::geometry::traits::indexed_access< bp2d::Box, max_corner, 0 >::set(), boost::geometry::traits::indexed_access< bp2d::Box, max_corner, 1 >::set(), libnest2d::placers::_BottomLeftPlacer< RawShape >::setInitialPosition(), and libnest2d::placers::_NofitPolyPlacer< RawShape, TBin >::setInitialPosition().
Here is the caller graph for this function:
|
inline |
References libnest2d::PointPair< P >::p1.
|
inline |
References libnest2d::PointPair< P >::p1.
Referenced by libnest2d::shapelike::boundingBox(), libnest2d::placers::_NofitPolyPlacer< RawShape, TBin >::finalAlign(), boost::geometry::traits::indexed_access< bp2d::Box, min_corner, 0 >::get(), boost::geometry::traits::indexed_access< bp2d::Box, min_corner, 1 >::get(), libnest2d::_Box< P >::infinite(), libnest2d::shapelike::offset(), libnest2d::placers::_NofitPolyPlacer< RawShape, TBin >::overfit(), libnest2d::placers::_NofitPolyPlacer< RawShape, TBin >::overfit(), boost::geometry::traits::indexed_access< bp2d::Box, min_corner, 0 >::set(), boost::geometry::traits::indexed_access< bp2d::Box, min_corner, 1 >::set(), and libnest2d::placers::_NofitPolyPlacer< RawShape, TBin >::setInitialPosition().
Here is the caller graph for this function:
|
inline |
References libnest2d::pointlike::x().
Referenced by libnest2d::_Box< P >::_Box(), libnest2d::placers::_BottomLeftPlacer< RawShape >::_trypack(), libnest2d::_Box< P >::area(), libnest2d::placers::_NofitPolyPlacer< RawShape, TBin >::overfit(), libnest2d::placers::_NofitPolyPlacer< RawShape, TBin >::overfit(), and libnest2d::svg::SVGWriter< RawShape >::setSize().
Here is the call graph for this function:
Here is the caller graph for this function:
|
inherited |
|
inherited |