#include <BoundingBox.h>
bounding rectangle More...
bounding rectangle
Protected Attributes | |
| bbox_t | m_bbox |
Public Member Functions | |
| BoundingBox2D () | |
| BoundingBox2D (const sofa::type::Vec< 2, SReal > &minBBox, const sofa::type::Vec< 2, SReal > &maxBBox) | |
| Define using the endpoints of the main diagonal. More... | |
| BoundingBox2D (const bbox_t &bbox) | |
| BoundingBox2D (SReal xmin, SReal xmax, SReal ymin, SReal ymax) | |
| Define using xmin, xmax, ymin, ymax in this order. More... | |
| BoundingBox2D (const Vec4f &bbox) | |
| Define using xmin, xmax, ymin, ymax in this order. More... | |
| BoundingBox2D (const Vec4d &bbox) | |
| Define using xmin, xmax, ymin, ymax in this order. More... | |
| operator bbox_t () const | |
| void | invalidate () |
| bool | isValid () const |
| bool | isFlat () const |
| bool | isNegligeable () const |
| bool | isNull () const |
| SReal * | minBBoxPtr () |
| SReal * | maxBBoxPtr () |
| const SReal * | minBBoxPtr () const |
| const SReal * | maxBBoxPtr () const |
| const sofa::type::Vec< 2, SReal > & | minBBox () const |
| const sofa::type::Vec< 2, SReal > & | maxBBox () const |
| sofa::type::Vec< 2, SReal > & | minBBox () |
| sofa::type::Vec< 2, SReal > & | maxBBox () |
| bool | contains (const sofa::type::Vec< 2, SReal > &point) const |
| bool | contains (const BoundingBox2D &other) const |
| bool | intersect (const BoundingBox2D &other) const |
| void | intersection (const BoundingBox2D &other) |
| void | include (const sofa::type::Vec< 2, SReal > &point) |
| void | include (const BoundingBox2D &other) |
| void | inflate (SReal amount) |
| BoundingBox2D | getIntersection (const BoundingBox2D &other) const |
| BoundingBox2D | getInclude (const sofa::type::Vec< 2, SReal > &point) const |
| BoundingBox2D | getInclude (const BoundingBox2D &other) const |
| BoundingBox2D | getInflate (SReal amount) const |
Static Public Member Functions | |
| static BoundingBox2D | neutral_bbox () |
Friends | |
| std::ostream & | operator<< (std::ostream &out, const BoundingBox2D &bbox) |
| std::istream & | operator>> (std::istream &in, BoundingBox2D &bbox) |
|
protected |
| sofa::type::BoundingBox2D< TReal >::BoundingBox2D | ( | ) |
| sofa::type::BoundingBox2D< TReal >::BoundingBox2D | ( | const sofa::type::Vec< 2, SReal > & | minBBox, |
| const sofa::type::Vec< 2, SReal > & | maxBBox | ||
| ) |
Define using the endpoints of the main diagonal.
| sofa::type::BoundingBox2D< TReal >::BoundingBox2D | ( | const bbox_t & | bbox | ) |
| sofa::type::BoundingBox2D< TReal >::BoundingBox2D | ( | SReal | xmin, |
| SReal | xmax, | ||
| SReal | ymin, | ||
| SReal | ymax | ||
| ) |
Define using xmin, xmax, ymin, ymax in this order.
| sofa::type::BoundingBox2D< TReal >::BoundingBox2D | ( | const Vec4f & | bbox | ) |
Define using xmin, xmax, ymin, ymax in this order.
| sofa::type::BoundingBox2D< TReal >::BoundingBox2D | ( | const Vec4d & | bbox | ) |
Define using xmin, xmax, ymin, ymax in this order.
| bool sofa::type::BoundingBox2D< TReal >::contains | ( | const BoundingBox2D< TReal > & | other | ) | const |
| bool sofa::type::BoundingBox2D< TReal >::contains | ( | const sofa::type::Vec< 2, SReal > & | point | ) | const |
| BoundingBox2D sofa::type::BoundingBox2D< TReal >::getInclude | ( | const BoundingBox2D< TReal > & | other | ) | const |
| BoundingBox2D sofa::type::BoundingBox2D< TReal >::getInclude | ( | const sofa::type::Vec< 2, SReal > & | point | ) | const |
| BoundingBox2D sofa::type::BoundingBox2D< TReal >::getInflate | ( | SReal | amount | ) | const |
| BoundingBox2D sofa::type::BoundingBox2D< TReal >::getIntersection | ( | const BoundingBox2D< TReal > & | other | ) | const |
| void sofa::type::BoundingBox2D< TReal >::include | ( | const BoundingBox2D< TReal > & | other | ) |
| void sofa::type::BoundingBox2D< TReal >::include | ( | const sofa::type::Vec< 2, SReal > & | point | ) |
| void sofa::type::BoundingBox2D< TReal >::inflate | ( | SReal | amount | ) |
| bool sofa::type::BoundingBox2D< TReal >::intersect | ( | const BoundingBox2D< TReal > & | other | ) | const |
| void sofa::type::BoundingBox2D< TReal >::intersection | ( | const BoundingBox2D< TReal > & | other | ) |
| void sofa::type::BoundingBox2D< TReal >::invalidate | ( | ) |
| bool sofa::type::BoundingBox2D< TReal >::isFlat | ( | ) | const |
| bool sofa::type::BoundingBox2D< TReal >::isNegligeable | ( | ) | const |
| bool sofa::type::BoundingBox2D< TReal >::isNull | ( | ) | const |
| bool sofa::type::BoundingBox2D< TReal >::isValid | ( | ) | const |
| sofa::type::Vec< 2, SReal > & sofa::type::BoundingBox2D< TReal >::maxBBox | ( | ) |
| const sofa::type::Vec< 2, SReal > & sofa::type::BoundingBox2D< TReal >::maxBBox | ( | ) | const |
| SReal * sofa::type::BoundingBox2D< TReal >::maxBBoxPtr | ( | ) |
| const SReal * sofa::type::BoundingBox2D< TReal >::maxBBoxPtr | ( | ) | const |
| sofa::type::Vec< 2, SReal > & sofa::type::BoundingBox2D< TReal >::minBBox | ( | ) |
| const sofa::type::Vec< 2, SReal > & sofa::type::BoundingBox2D< TReal >::minBBox | ( | ) | const |
| SReal * sofa::type::BoundingBox2D< TReal >::minBBoxPtr | ( | ) |
| const SReal * sofa::type::BoundingBox2D< TReal >::minBBoxPtr | ( | ) | const |
|
static |
| sofa::type::BoundingBox2D< TReal >::operator bbox_t | ( | ) | const |
|
friend |
|
friend |