BIE::SquareTile Class Reference

Defines a rectangular tile. More...

#include <SquareTile.h>

Inheritance diagram for BIE::SquareTile:
Collaboration diagram for BIE::SquareTile:

List of all members.

Public Member Functions

 SquareTile ()
 Construct a tile without setting the coordinates.
 SquareTile (double, double, double, double)
 Construct a tile and set the coordinates.
virtual SquareTileNew ()
 Factory: Return a pointer to a new tile.
void setup (double, double, double, double)
 Set up the boundaries.
void corners (double &, double &, double &, double &)
 Get the corners.
double X (double, double)
 Returns an abscissa given (generally) two metric coordinates.
double Y (double, double)
 Returns an ordinate given (generally) two metric coordinates.
double measure (double, double)
 Integration measure.
bool InTile (double, double)
 True if coordinates lie inside the tile boundaries.
void print (ostream &outputstream)
 Print tile boundaries.
void printforplot (ostream &outputstream)
 Print boundaries for gnuplot.
bool overlapsWith (Tile *)
 Returns true if the passed tile overlaps with this tile.
string toString ()
 Returns a string representation of a Tile.

Protected Attributes

double points [4]
 The boundaries of the tile: min x, max x, min y, max y.
double dx
 delta x
double dy
 delta y

Friends

class boost::serialization::access


Detailed Description

Defines a rectangular tile.

Constructor & Destructor Documentation

BIE::SquareTile::SquareTile (  ) 

Construct a tile without setting the coordinates.

Use this when constructing a tile to use as a factory.

BIE::SquareTile::SquareTile ( double  ,
double  ,
double  ,
double   
)

Construct a tile and set the coordinates.

The order is minx, maxx, miny, maxy


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

Send suggestions, questions, and feedback to WEINBERG at ASTRO dot UMASS dot EDU.
Documentation generated at Fri Mar 26 00:35:13 2010 by doxygen