| TerraLib 4.1

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files
- Examples

- File List
- File Members

Classes | Functions
E:/Projetos_Primeiro_Semestre_2012/TerraView/terralib/src/terralib/kernel/TeBox.h File Reference

This file contains structures and definitions to deal with a box. More...

`#include "TeDefines.h"`
`#include "TeCoord2D.h"`
`#include "float.h"`

Go to the source code of this file.

## Classes

struct | TeBox
| Provides support for dealing with a rectangular a box. Used by all geometrical representations. More...

## Functions

TL_DLL void | updateBox (TeBox &box, const TeCoord2D &pt)
| update a box to include a coordinate
TL_DLL void | updateBox (TeBox &box, const TeBox &other)
| update a box to include another box
TL_DLL void | updateBox (TeBox &box, const TeGeometry &geo)
| update a box to include a geometry
TL_DLL void | zoomIn (TeBox &box, double t=.8)
| increases the box by a factor t
TL_DLL void | zoomOut (TeBox &box, double t=.8)
| decreases box by a factor of t
TL_DLL TeBox | makeBox (double x1, double y1, double x2, double y2, const double &tol=0.0)
| builds a box
TL_DLL TeBox | adjustToCut (TeBox &box, double bWidth, double bHeight)
| finds the correspondent smallest box that allows a box to be cut in blocks of a given size
TL_DLL TePolygon | polygonFromBox (const TeBox &bb)
TL_DLL int | adjustBox (TeBox &bb)

## Detailed Description

This file contains structures and definitions to deal with a box.

## Function Documentation

TL_DLL int adjustBox | ( | TeBox & | bb | ) |

TL_DLL TeBox adjustToCut | ( | TeBox & | box,
|  | double | bWidth,
|  | double | bHeight
| ) |  |

finds the correspondent smallest box that allows a box to be cut in blocks of a given size

TL_DLL TeBox makeBox | ( | double | x1,
|  | double | y1,
|  | double | x2,
|  | double | y2,
|  | const double & | tol = `0.0`
| ) |  |

builds a box

TL_DLL TePolygon polygonFromBox | ( | const TeBox & | bb | ) |

TL_DLL void updateBox | ( | TeBox & | box,
|  | const TeCoord2D & | pt
| ) |  |

update a box to include a coordinate

TL_DLL void updateBox | ( | TeBox & | box,
|  | const TeBox & | other
| ) |  |

update a box to include another box

TL_DLL void updateBox | ( | TeBox & | box,
|  | const TeGeometry & | geo
| ) |  |

update a box to include a geometry

TL_DLL void zoomIn | ( | TeBox & | box,
|  | double | t = `.8`
| ) |  |

increases the box by a factor t

TL_DLL void zoomOut | ( | TeBox & | box,
|  | double | t = `.8`
| ) |  |

decreases box by a factor of t

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines