SOFA API  59c939c2
Open source framework for multi-physics simuation
sofa::defaulttype::BoundingBox1D Class Reference

#include <BoundingBox.h>

bounding interval More...

Detailed Description

bounding interval

Protected Attributes

bbox_t bbox
 

Public Member Functions

 BoundingBox1D ()
 
 BoundingBox1D (SReal minBBox, SReal maxBBox)
 Define using the endpoints of the main diagonal. More...
 
 BoundingBox1D (const bbox_t &bbox)
 
 BoundingBox1D (const Vec2f &bbox)
 Define using xmin, xmax in this order. More...
 
 BoundingBox1D (const Vec2d &bbox)
 Define using xmin, xmax in this order. More...
 
 operator bbox_t () const
 
void invalidate ()
 
bool isValid () const
 
bool isFlat () const
 
bool isNegligeable () const
 
bool isNull () const
 
const SReal & minBBox () const
 
const SReal & maxBBox () const
 
SReal & minBBox ()
 
SReal & maxBBox ()
 
bool contains (SReal point) const
 
bool contains (const BoundingBox1D &other) const
 
bool intersect (const BoundingBox1D &other) const
 
void intersection (const BoundingBox1D &other)
 
void include (SReal point)
 
void include (const BoundingBox1D &other)
 
void inflate (SReal amount)
 
BoundingBox1D getIntersection (const BoundingBox1D &other) const
 
BoundingBox1D getInclude (SReal point) const
 
BoundingBox1D getInclude (const BoundingBox1D &other) const
 
BoundingBox1D getInflate (SReal amount) const
 

Static Public Member Functions

static BoundingBox1D neutral_bbox ()
 

Friends

std::ostream & operator<< (std::ostream &out, const BoundingBox1D &bbox)
 
std::istream & operator>> (std::istream &in, BoundingBox1D &bbox)
 

Attribute details

bbox_t sofa::defaulttype::BoundingBox1D::bbox
protected

Constructor details

sofa::defaulttype::BoundingBox1D::BoundingBox1D ( )
sofa::defaulttype::BoundingBox1D::BoundingBox1D ( SReal  minBBox,
SReal  maxBBox 
)

Define using the endpoints of the main diagonal.

sofa::defaulttype::BoundingBox1D::BoundingBox1D ( const bbox_t bbox)
sofa::defaulttype::BoundingBox1D::BoundingBox1D ( const Vec2f &  bbox)

Define using xmin, xmax in this order.

sofa::defaulttype::BoundingBox1D::BoundingBox1D ( const Vec2d &  bbox)

Define using xmin, xmax in this order.

Function details

bool sofa::defaulttype::BoundingBox1D::contains ( SReal  point) const
bool sofa::defaulttype::BoundingBox1D::contains ( const BoundingBox1D other) const
BoundingBox1D sofa::defaulttype::BoundingBox1D::getInclude ( SReal  point) const
BoundingBox1D sofa::defaulttype::BoundingBox1D::getInclude ( const BoundingBox1D other) const
BoundingBox1D sofa::defaulttype::BoundingBox1D::getInflate ( SReal  amount) const
BoundingBox1D sofa::defaulttype::BoundingBox1D::getIntersection ( const BoundingBox1D other) const
void sofa::defaulttype::BoundingBox1D::include ( SReal  point)
void sofa::defaulttype::BoundingBox1D::include ( const BoundingBox1D other)
void sofa::defaulttype::BoundingBox1D::inflate ( SReal  amount)
bool sofa::defaulttype::BoundingBox1D::intersect ( const BoundingBox1D other) const
void sofa::defaulttype::BoundingBox1D::intersection ( const BoundingBox1D other)
void sofa::defaulttype::BoundingBox1D::invalidate ( )
bool sofa::defaulttype::BoundingBox1D::isFlat ( ) const
bool sofa::defaulttype::BoundingBox1D::isNegligeable ( ) const
bool sofa::defaulttype::BoundingBox1D::isNull ( ) const
bool sofa::defaulttype::BoundingBox1D::isValid ( ) const
const SReal & sofa::defaulttype::BoundingBox1D::maxBBox ( ) const
SReal & sofa::defaulttype::BoundingBox1D::maxBBox ( )
const SReal & sofa::defaulttype::BoundingBox1D::minBBox ( ) const
SReal & sofa::defaulttype::BoundingBox1D::minBBox ( )
BoundingBox1D sofa::defaulttype::BoundingBox1D::neutral_bbox ( )
static
sofa::defaulttype::BoundingBox1D::operator bbox_t ( ) const

Related details

std::ostream& operator<< ( std::ostream &  out,
const BoundingBox1D bbox 
)
friend
std::istream& operator>> ( std::istream &  in,
BoundingBox1D bbox 
)
friend