Main Page | Modules | Data Structures | File List | Data Fields | Globals

massspec/rectangle.h File Reference

More...

Go to the source code of this file.

Data Structures

struct  Rectangle4i
struct  Dimensions2i

Typedefs

typedef Rectangle4i Rectangle4i
typedef Rectangle4i Insets4i

Enumerations

enum  { RECTANGLE_GLOBAL_TO_LOCAL, RECTANGLE_LOCAL_TO_GLOBAL }

Functions

int Rectangle4i_cmp (Rectangle4i *RECT1, Rectangle4i *RECT2)
void Rectangle4i_init (Rectangle4i *rRect, int x1, int x2, int y1, int y2)
Rectangle4i newRectangle4i (int x1, int x2, int y1, int y2)
Dimensions2i newDimensions2i (int x, int y)
Dimensions2i calcDimensions2i (Rectangle4i rect)
Insets4f Rectangle4i_convert (Rectangle4i rect)
Dimensions2i Rectangle4i_getDimensions2i (Rectangle4i *rect)
void Rectangle4i_fprint (FILE *fp, Rectangle4i *R)
void Rectangle4i_fprintln (FILE *fp, Rectangle4i *R)
void Rectangle4i_fprintf (FILE *fp, Rectangle4i *R, const char *format)
void Rectangle4i_fprintAsHeader (FILE *fp, Rectangle4i *R)
Rectangle4iRectangle4iArray_create (int size, int start_index)
void Rectangle4iArray_fprint (FILE *fp, Rectangle4i *R, int nstart, int nstop)
void Rectangle4iArray_fprintf (FILE *fp, Rectangle4i *R, int nstart, int nstop, const char *format)
int Rectangle4i_isPointInside (Rectangle4i rect, int x, int y)
Rectangle4i Rectangle4i_mergeRectangles (Rectangle4i RECT1, Rectangle4i RECT2)
int Rectangle4i_correctSubRect (Rectangle4i *subrect, Rectangle4i *rect)
void Rectangle4i_transform (Rectangle4i *target, Rectangle4i *reference, int type)
int Rectangle4i_calcArea (Rectangle4i *rect)
int isPointWithinRect (Dimensions2i dim, int x, int y)
int isPointWithinRect2 (Rectangle4i rect, int x, int y)
int isRectWithinRect (Rectangle4i rect1, Rectangle4i rect2)
Rectangle4i transformRectangle4i (int type, Rectangle4i parent, Rectangle4i child)
void transformRectangle4i_2 (int type, Rectangle4i reference, Rectangle4i *target)


Detailed Description

Author:
Kyriacos C. Leptos
Date:
2004-05-04
A file that has the definitions of Rectangle4i

Function Documentation

void Rectangle4i_fprint FILE *  fp,
Rectangle4i rRect
 

Prints the rectangle in the form of "N N N N" without any new-line character at the end

Parameters:
fp input stream
rRect pointer to a Rectangle4i

void Rectangle4i_fprintf FILE *  fp,
Rectangle4i R,
const char *  format
 

Prints the rectangle in the form of "N N N N" without any new-line character at the end and accoring to the specified format

Parameters:
fp input stream
rRect pointer to a Rectangle4i
format format of how to print the integers

void Rectangle4i_fprintln FILE *  fp,
Rectangle4i rRect
 

Same as in Rectangle4i_fprint but with a new-line character at the end

Parameters:
fp input stream
rRect pointer to a Rectangle4i

void Rectangle4i_init Rectangle4i rRect,
int  x1,
int  x2,
int  y1,
int  y2
 

Initializing the rectangle

Parameters:
rRect pointer to the rectangle to be initialized
x1 the scan-start
x2 the scan-stop
y1 the bin-start
y2 the bin-stop


Generated on Sun Feb 13 01:06:02 2005 for MapQuant by doxygen 1.3.7