Main Page   Namespace List   Alphabetical List   Compound List   File List   Compound Members   File Members  

maskdesign.cpp File Reference

#include "maskdesign.h"

Namespaces

namespace  std

Defines

#define SZ_NAME   128

Functions

 main (int argc, char *argv[])
 Load the files and start the loop. More...

void tvmInteractive (CDLPtr cdl)
 Process commands interactively. More...

void tvmPrintHelp ()
 Print a help summary. More...

void NewMask (CDLPtr cdl, float slpos[][7])
 Setup the types of objects in a new mask. More...

void SortSlits (float slpos[][7])
 Sorts the slits according to their magnitude. More...

void SortSlitsX (float slpos[][7])
 Sorts the slits according to their position. More...

void SortUsedSlitsX (float slposd[][7])
 Sorts the selected slits according to their position. More...

void CopySlits (float newpos[][7],float slpos[][7])
 Copies selected slits in one pos array into another. More...

void CopyUsedSlits (float newpos[][7],float slpos[][7])
 Copies one pos array into another. More...

void SelectSlits (float slpos[][7])
 Find valid objects. More...

float GetValue (string text, float curval)
 Read input from terminal. More...

void GetGlobals ()
 Enter the global data values. More...


Variables

float slpos [10000][7]
 The main array which holds the catalouge. More...

float pscale = 41.662
 The scale in pixels/5 mm on the laser. More...

float wsource = 6
 The initial slit width, changed in GetGlobals(). More...

float slsource = 50
 The initial slit length, chamged in GetGlobals(). More...

float sgap = 10
 The space left between the slits, a fixed value. More...

float x1a
 Temporary value used in the CDL drawing routines. More...

float x2a
 Temporary value used in the CDL drawing routines. More...

float y1a
 Temporary value used in the CDL drawing routines. More...

float y2a
 Temporary value used in the CDL drawing routines. More...

float y1mask = -580
 The spacial limit for the mask, defined from xcent. Fixed values. More...

float y2mask = 580
 The spacial limit for the mask, defined from xcent. Fixed values. More...

float ycent = 2048
 The centre of the mask, changed in GetGlobals(). More...

float xcent = 2048
 The centre of the mask, changed in GetGlobals(). More...

float fidbox = 30
 The size of the finder boxes. More...

float minmag = 10
 The magnitude limits for objects, changed in GetGlobals(). More...

float maxmag = 15
 The magnitude limits for objects, changed in GetGlobals(). More...

float fminmag = 10
 The magnitude limits for finder objects, changed in GetGelobals(). More...

float fmaxmag = 12
 The magnitude limits for finder objects, changed in GetGelobals(). More...

int npoints
 The number of objects in the catalouge, determined while reading the file. More...

int upoints
 The number of objects in the output mask, determined by the design process. More...


Define Documentation

#define SZ_NAME   128
 


Function Documentation

void CopySlits ( float newpos[][7],
float slpos[][7] )
 

Copies selected slits in one pos array into another.

Small loop to copy selected data into new array.

void CopyUsedSlits ( float newpos[][7],
float slpos[][7] )
 

Copies one pos array into another.

Small loop to copy data into new array.

void GetGlobals ( )
 

Enter the global data values.

Sets up the global parameters, either at the start, or after a start over.

float GetValue ( string text,
float curval )
 

Read input from terminal.

Read the input, allowing
to default to previous value, unlike cin >>.

void NewMask ( CDLPtr cdl,
float slpos[][7] )
 

Setup the types of objects in a new mask.

The first loop marks all finder objects, the second marks suggested targets and the third marks all other available objects.

void SelectSlits ( float slpos[][7] )
 

Find valid objects.

Select objects which lie in the relevant magnitude and position ranges.

void SortSlits ( float slpos[][7] )
 

Sorts the slits according to their magnitude.

A very basic sorting routine to re-order the slpos array by magnitude.

void SortSlitsX ( float slpos[][7] )
 

Sorts the slits according to their position.

A very basic sorting routine to re-order the slpos array by y position.

void SortUsedSlitsX ( float slposd[][7] )
 

Sorts the selected slits according to their position.

A very basic sorting routine to re-order the output array by y position.

main ( int argc,
char * argv[] )
 

Load the files and start the loop.

The main() function handles the parsing of the command line, the loading of the files and starts the tvmInteractive() loop.

void tvmInteractive ( CDLPtr cdl )
 

Process commands interactively.

This is the main loop of the programee which handles the cursor commands in the ds9 window.

void tvmPrintHelp ( )
 

Print a help summary.

Prints help to the terminal, don't forget to add new commands here.


Variable Documentation

float fidbox = 30
 

The size of the finder boxes.

float fmaxmag = 12
 

The magnitude limits for finder objects, changed in GetGelobals().

float fminmag = 10
 

The magnitude limits for finder objects, changed in GetGelobals().

float maxmag = 15
 

The magnitude limits for objects, changed in GetGlobals().

float minmag = 10
 

The magnitude limits for objects, changed in GetGlobals().

int npoints
 

The number of objects in the catalouge, determined while reading the file.

float pscale = 41.662
 

The scale in pixels/5 mm on the laser.

This should only be altered if the scale in getpin is also changed.

float sgap = 10
 

The space left between the slits, a fixed value.

float slpos
 

The main array which holds the catalouge.

float slsource = 50
 

The initial slit length, chamged in GetGlobals().

int upoints
 

The number of objects in the output mask, determined by the design process.

float wsource = 6
 

The initial slit width, changed in GetGlobals().

Not that wsource is the half width, hence the *2,/2 in GetGlobals().

float x1a
 

Temporary value used in the CDL drawing routines.

float x2a
 

Temporary value used in the CDL drawing routines.

float xcent = 2048
 

The centre of the mask, changed in GetGlobals().

float y1a
 

Temporary value used in the CDL drawing routines.

float y1mask = -580
 

The spacial limit for the mask, defined from xcent. Fixed values.

float y2a
 

Temporary value used in the CDL drawing routines.

float y2mask = 580
 

The spacial limit for the mask, defined from xcent. Fixed values.

float ycent = 2048
 

The centre of the mask, changed in GetGlobals().


Generated at Tue Oct 22 12:41:53 2002 for maskdesign by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001