#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... | |
|
|
|
|
|
Copies selected slits in one pos array into another. Small loop to copy selected data into new array. |
|
|
Copies one pos array into another. Small loop to copy data into new array. |
|
|
Enter the global data values. Sets up the global parameters, either at the start, or after a start over. |
|
|
Read input from terminal.
Read the input, allowing |
|
|
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. |
|
|
Find valid objects. Select objects which lie in the relevant magnitude and position ranges. |
|
|
Sorts the slits according to their magnitude. A very basic sorting routine to re-order the slpos array by magnitude. |
|
|
Sorts the slits according to their position. A very basic sorting routine to re-order the slpos array by y position. |
|
|
Sorts the selected slits according to their position. A very basic sorting routine to re-order the output array by y position. |
|
|
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. |
|
|
Process commands interactively. This is the main loop of the programee which handles the cursor commands in the ds9 window. |
|
|
Print a help summary. Prints help to the terminal, don't forget to add new commands here. |
|
|
The size of the finder boxes.
|
|
|
The magnitude limits for finder objects, changed in GetGelobals().
|
|
|
The magnitude limits for finder objects, changed in GetGelobals().
|
|
|
The magnitude limits for objects, changed in GetGlobals().
|
|
|
The magnitude limits for objects, changed in GetGlobals().
|
|
|
The number of objects in the catalouge, determined while reading the file.
|
|
|
The scale in pixels/5 mm on the laser. This should only be altered if the scale in getpin is also changed. |
|
|
The space left between the slits, a fixed value.
|
|
|
The main array which holds the catalouge.
|
|
|
The initial slit length, chamged in GetGlobals().
|
|
|
The number of objects in the output mask, determined by the design process.
|
|
|
The initial slit width, changed in GetGlobals(). Not that wsource is the half width, hence the *2,/2 in GetGlobals(). |
|
|
Temporary value used in the CDL drawing routines.
|
|
|
Temporary value used in the CDL drawing routines.
|
|
|
The centre of the mask, changed in GetGlobals().
|
|
|
Temporary value used in the CDL drawing routines.
|
|
|
The spacial limit for the mask, defined from xcent. Fixed values.
|
|
|
Temporary value used in the CDL drawing routines.
|
|
|
The spacial limit for the mask, defined from xcent. Fixed values.
|
|
|
The centre of the mask, changed in GetGlobals().
|
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001