libLAS API Reference (svn-trunk)
liblas::Bounds< T > Class Template Reference

#include <bounds.hpp>

Inheritance diagram for liblas::Bounds< T >:
Inheritance graph
Collaboration diagram for liblas::Bounds< T >:
Collaboration graph

Public Types

typedef T value_type
typedef std::vector< Range< T > >::size_type size_type
typedef std::vector< Range< T > > RangeVec

Public Member Functions

 Bounds ()
 Bounds (Bounds const &other)
 Bounds (RangeVec const &rngs)
 Bounds (T minx, T miny, T minz, T maxx, T maxy, T maxz)
 Bounds (T minx, T miny, T maxx, T maxy)
 Bounds (const Point &min, const Point &max)
T min (std::size_t const &index) const
void min (std::size_t const &index, T v)
T max (std::size_t const &index) const
void max (std::size_t const &index, T v)
T minx () const
T miny () const
T minz () const
T maxx () const
T maxy () const
T maxz () const
bool operator== (Bounds< T > const &rhs) const
bool operator!= (Bounds< T > const &rhs) const
Bounds< T > & operator= (Bounds< T > const &rhs)
RangeVec const & dims () const
 The vector of Range<T> for the Bounds.
size_type dimension () const
 The number of dimensions of the Bounds.
void dimension (size_type d)
 Resize the dimensionality of the Bounds to d.
bool equal (Bounds< T > const &other) const
 Is this Bounds equal to other?
bool intersects (Bounds const &other) const
 Does this Bounds intersect other?
bool overlaps (Bounds const &other) const
 Synonym for intersects for now.
bool contains (Bounds const &other) const
 Does this Bounds contain other?
bool contains (Point const &point) const
 Does this Bounds this point other?
void shift (std::vector< T > deltas)
 Shift each dimension by a vector of detlas.
void scale (std::vector< T > deltas)
 Scale each dimension by a vector of deltas.
void clip (Bounds const &r)
 Clip this Bounds to the extent of r.
void grow (Bounds const &r)
 Grow to the union of two liblas::Bounds.
void grow (Point const &p)
 Expand the liblas::Bounds to include this point.
T volume () const
bool empty () const
void verify ()

Member Typedef Documentation

◆ RangeVec

template<typename T>
typedef std::vector< Range<T> > liblas::Bounds< T >::RangeVec

◆ size_type

template<typename T>
typedef std::vector<Range<T>>::size_type liblas::Bounds< T >::size_type

◆ value_type

template<typename T>
typedef T liblas::Bounds< T >::value_type

Constructor & Destructor Documentation

◆ Bounds() [1/6]

template<typename T>
liblas::Bounds< T >::Bounds ( )
inline

Referenced by Bounds(), clip(), contains(), equal(), grow(), intersects(), operator!=(), operator=(), operator==(), and overlaps().

Here is the caller graph for this function:

◆ Bounds() [2/6]

template<typename T>
liblas::Bounds< T >::Bounds ( Bounds< T > const & other)
inline

References Bounds().

Here is the call graph for this function:

◆ Bounds() [3/6]

template<typename T>
liblas::Bounds< T >::Bounds ( RangeVec const & rngs)
inline

◆ Bounds() [4/6]

template<typename T>
liblas::Bounds< T >::Bounds ( T minx,
T miny,
T minz,
T maxx,
T maxy,
T maxz )
inline

References maxx(), maxy(), maxz(), minx(), miny(), minz(), and verify().

Here is the call graph for this function:

◆ Bounds() [5/6]

template<typename T>
liblas::Bounds< T >::Bounds ( T minx,
T miny,
T maxx,
T maxy )
inline

References maxx(), maxy(), minx(), miny(), and verify().

Here is the call graph for this function:

◆ Bounds() [6/6]

template<typename T>
liblas::Bounds< T >::Bounds ( const Point & min,
const Point & max )
inline

References max(), min(), and verify().

Here is the call graph for this function:

Member Function Documentation

◆ clip()

template<typename T>
void liblas::Bounds< T >::clip ( Bounds< T > const & r)
inline

Clip this Bounds to the extent of r.

References Bounds(), dimension(), and dims().

Here is the call graph for this function:

◆ contains() [1/2]

template<typename T>
bool liblas::Bounds< T >::contains ( Bounds< T > const & other) const
inline

Does this Bounds contain other?

References Bounds(), contains(), and dimension().

Referenced by contains(), and contains().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ contains() [2/2]

template<typename T>
bool liblas::Bounds< T >::contains ( Point const & point) const
inline

Does this Bounds this point other?

References contains(), liblas::Point::GetX(), liblas::Point::GetY(), and liblas::Point::GetZ().

Here is the call graph for this function:

◆ dimension() [1/2]

template<typename T>
size_type liblas::Bounds< T >::dimension ( ) const
inline

The number of dimensions of the Bounds.

Referenced by clip(), contains(), empty(), equal(), grow(), intersects(), scale(), shift(), verify(), and volume().

Here is the caller graph for this function:

◆ dimension() [2/2]

template<typename T>
void liblas::Bounds< T >::dimension ( size_type d)
inline

Resize the dimensionality of the Bounds to d.

◆ dims()

template<typename T>
RangeVec const & liblas::Bounds< T >::dims ( ) const
inline

The vector of Range<T> for the Bounds.

Referenced by clip(), and grow().

Here is the caller graph for this function:

◆ empty()

template<typename T>
bool liblas::Bounds< T >::empty ( ) const
inline

References dimension(), and empty().

Referenced by empty().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ equal()

template<typename T>
bool liblas::Bounds< T >::equal ( Bounds< T > const & other) const
inline

Is this Bounds equal to other?

References Bounds(), and dimension().

Referenced by operator!=(), and operator==().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ grow() [1/2]

template<typename T>
void liblas::Bounds< T >::grow ( Bounds< T > const & r)
inline

Grow to the union of two liblas::Bounds.

References Bounds(), dimension(), and dims().

Here is the call graph for this function:

◆ grow() [2/2]

template<typename T>
void liblas::Bounds< T >::grow ( Point const & p)
inline

Expand the liblas::Bounds to include this point.

References liblas::Point::GetX(), liblas::Point::GetY(), and liblas::Point::GetZ().

Here is the call graph for this function:

◆ intersects()

template<typename T>
bool liblas::Bounds< T >::intersects ( Bounds< T > const & other) const
inline

Does this Bounds intersect other?

References Bounds(), dimension(), and overlaps().

Referenced by overlaps().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ max() [1/2]

template<typename T>
T liblas::Bounds< T >::max ( std::size_t const & index) const
inline

References max().

Referenced by Bounds(), max(), max(), and verify().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ max() [2/2]

template<typename T>
void liblas::Bounds< T >::max ( std::size_t const & index,
T v )
inline

References max().

Here is the call graph for this function:

◆ maxx()

template<typename T>
T liblas::Bounds< T >::maxx ( ) const
inline

Referenced by Bounds(), and Bounds().

Here is the caller graph for this function:

◆ maxy()

template<typename T>
T liblas::Bounds< T >::maxy ( ) const
inline

Referenced by Bounds(), and Bounds().

Here is the caller graph for this function:

◆ maxz()

template<typename T>
T liblas::Bounds< T >::maxz ( ) const
inline

Referenced by Bounds().

Here is the caller graph for this function:

◆ min() [1/2]

template<typename T>
T liblas::Bounds< T >::min ( std::size_t const & index) const
inline

References min().

Referenced by Bounds(), min(), min(), and verify().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ min() [2/2]

template<typename T>
void liblas::Bounds< T >::min ( std::size_t const & index,
T v )
inline

References min().

Here is the call graph for this function:

◆ minx()

template<typename T>
T liblas::Bounds< T >::minx ( ) const
inline

Referenced by Bounds(), and Bounds().

Here is the caller graph for this function:

◆ miny()

template<typename T>
T liblas::Bounds< T >::miny ( ) const
inline

Referenced by Bounds(), and Bounds().

Here is the caller graph for this function:

◆ minz()

template<typename T>
T liblas::Bounds< T >::minz ( ) const
inline

Referenced by Bounds().

Here is the caller graph for this function:

◆ operator!=()

template<typename T>
bool liblas::Bounds< T >::operator!= ( Bounds< T > const & rhs) const
inline

References Bounds(), and equal().

Here is the call graph for this function:

◆ operator=()

template<typename T>
Bounds< T > & liblas::Bounds< T >::operator= ( Bounds< T > const & rhs)
inline

References Bounds().

Here is the call graph for this function:

◆ operator==()

template<typename T>
bool liblas::Bounds< T >::operator== ( Bounds< T > const & rhs) const
inline

References Bounds(), and equal().

Here is the call graph for this function:

◆ overlaps()

template<typename T>
bool liblas::Bounds< T >::overlaps ( Bounds< T > const & other) const
inline

Synonym for intersects for now.

References Bounds(), and intersects().

Referenced by intersects().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ scale()

template<typename T>
void liblas::Bounds< T >::scale ( std::vector< T > deltas)
inline

Scale each dimension by a vector of deltas.

References dimension().

Here is the call graph for this function:

◆ shift()

template<typename T>
void liblas::Bounds< T >::shift ( std::vector< T > deltas)
inline

Shift each dimension by a vector of detlas.

References dimension().

Here is the call graph for this function:

◆ verify()

template<typename T>
void liblas::Bounds< T >::verify ( )
inline

References dimension(), max(), and min().

Referenced by Bounds(), Bounds(), and Bounds().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ volume()

template<typename T>
T liblas::Bounds< T >::volume ( ) const
inline

References dimension().

Here is the call graph for this function:

The documentation for this class was generated from the following file: