SOFA API  56988ca1
Open source framework for multi-physics simuation
sofa::type::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

bbox_t sofa::type::BoundingBox1D::bbox
protected

Constructor details

◆ BoundingBox1D() [1/5]

sofa::type::BoundingBox1D::BoundingBox1D ( )

◆ BoundingBox1D() [2/5]

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

Define using the endpoints of the main diagonal.

◆ BoundingBox1D() [3/5]

sofa::type::BoundingBox1D::BoundingBox1D ( const bbox_t bbox)

◆ BoundingBox1D() [4/5]

sofa::type::BoundingBox1D::BoundingBox1D ( const Vec2f bbox)

Define using xmin, xmax in this order.

◆ BoundingBox1D() [5/5]

sofa::type::BoundingBox1D::BoundingBox1D ( const Vec2d bbox)

Define using xmin, xmax in this order.

Function details

◆ contains() [1/2]

bool sofa::type::BoundingBox1D::contains ( const BoundingBox1D other) const

◆ contains() [2/2]

bool sofa::type::BoundingBox1D::contains ( SReal  point) const

◆ getInclude() [1/2]

BoundingBox1D sofa::type::BoundingBox1D::getInclude ( const BoundingBox1D other) const

◆ getInclude() [2/2]

BoundingBox1D sofa::type::BoundingBox1D::getInclude ( SReal  point) const

◆ getInflate()

BoundingBox1D sofa::type::BoundingBox1D::getInflate ( SReal  amount) const

◆ getIntersection()

BoundingBox1D sofa::type::BoundingBox1D::getIntersection ( const BoundingBox1D other) const

◆ include() [1/2]

void sofa::type::BoundingBox1D::include ( const BoundingBox1D other)

◆ include() [2/2]

void sofa::type::BoundingBox1D::include ( SReal  point)

◆ inflate()

void sofa::type::BoundingBox1D::inflate ( SReal  amount)

◆ intersect()

bool sofa::type::BoundingBox1D::intersect ( const BoundingBox1D other) const

◆ intersection()

void sofa::type::BoundingBox1D::intersection ( const BoundingBox1D other)

◆ invalidate()

void sofa::type::BoundingBox1D::invalidate ( )

◆ isFlat()

bool sofa::type::BoundingBox1D::isFlat ( ) const

◆ isNegligeable()

bool sofa::type::BoundingBox1D::isNegligeable ( ) const

◆ isNull()

bool sofa::type::BoundingBox1D::isNull ( ) const

◆ isValid()

bool sofa::type::BoundingBox1D::isValid ( ) const

◆ maxBBox() [1/2]

SReal & sofa::type::BoundingBox1D::maxBBox ( )

◆ maxBBox() [2/2]

const SReal & sofa::type::BoundingBox1D::maxBBox ( ) const

◆ minBBox() [1/2]

SReal & sofa::type::BoundingBox1D::minBBox ( )

◆ minBBox() [2/2]

const SReal & sofa::type::BoundingBox1D::minBBox ( ) const

◆ neutral_bbox()

BoundingBox1D sofa::type::BoundingBox1D::neutral_bbox ( )
static

◆ operator bbox_t()

sofa::type::BoundingBox1D::operator bbox_t ( ) const

Related details

◆ operator<<

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

◆ operator>>

std::istream& operator>> ( std::istream &  in,
BoundingBox1D bbox 
)
friend