libimage  0.25.4
 All Classes Namespaces Files Functions Variables Enumerations Macros Pages
Public Member Functions | Public Attributes | List of all members
BoundingBox< T > Class Template Reference

Manage a bounding box. More...

#include <BoundingBox.h>

Collaboration diagram for BoundingBox< T >:
Collaboration graph

Public Member Functions

 BoundingBox (T xmin, T ymin, T xmax, T ymax)
 Create a BoundingBox object, from all attributes.
template<typename T2 >
 BoundingBox (const BoundingBox< T2 > &bbox)
 Create a BoundingBox object, copying and converting.
int reproject (std::string from_srs, std::string to_srs, int nbSegment=256)
int reproject (projPJ pj_src, projPJ pj_dst, int nbSegment=256)
void print ()
 Bounding box description output.
std::string toString ()
 Convert bounding box description to string.
bool intersects (BoundingBox< T > bbox)
 Determine if 2 bounding box intersect each other.
bool contains (BoundingBox< T > bbox)
 Determine if a bounding box contains the other.

Public Attributes

xmin
 Bounding box limits.
ymin
xmax
ymax

Detailed Description

template<typename T>
class BoundingBox< T >

Manage a bounding box.

Author
Institut national de l'information géographique et forestière

Constructor & Destructor Documentation

template<typename T>
template<typename T2 >
BoundingBox< T >::BoundingBox ( const BoundingBox< T2 > &  bbox)
inline

Create a BoundingBox object, copying and converting.

Parameters
[in]bboxbounding box to copy and possibly convert

Member Function Documentation

template<typename T>
bool BoundingBox< T >::contains ( BoundingBox< T >  bbox)
inline

Determine if a bounding box contains the other.

Parameters
[in]bboxbounding box : is it contained by the other ?
template<typename T>
bool BoundingBox< T >::intersects ( BoundingBox< T >  bbox)
inline

Determine if 2 bounding box intersect each other.

Parameters
[in]bboxbounding box which whom we have to test intersection
template<typename T>
std::string BoundingBox< T >::toString ( )
inline

Convert bounding box description to string.

Returns
string describing the bounding box

Here is the caller graph for this function:


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