ToolMap
Loading...
Searching...
No Matches
tmRealRect Class Reference

Class representing real rectangle. More...

#include <tmgisscale.h>

Public Member Functions

 tmRealRect (double xmin, double ymin, double xmax, double ymax)
 
bool Clip (const tmRealRect &src, tmRealRect &result)
 Clip rectangle with another.
 
bool operator== (const tmRealRect &pt) const
 
bool operator!= (const tmRealRect &pt) const
 
double GetWidth ()
 
double GetHeight ()
 
OGRGeometry * GetPolygonGeometry ()
 

Public Attributes

double x_min
 
double y_min
 
double x_max
 
double y_max
 

Detailed Description

Class representing real rectangle.

Used for storing bounding box values

Author
Lucien Schreiber (c) CREALP 2008
Date
14 July 2008

Member Function Documentation

◆ Clip()

bool tmRealRect::Clip ( const tmRealRect src,
tmRealRect result 
)

Clip rectangle with another.

This function clip the rectangle with a src one and return the result.

Parameters
srcRectangle used for clipping (bigger)
resultResult of a clipping area, in case of no clipping, value of result isn't changed
Returns
true if we can clip (image visible), false if we are outside the cliping area
Author
Lucien Schreiber (c) CREALP 2008
Date
24 September 2008

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