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

maskdesign.h File Reference

#include <iostream>
#include <cstdlib>
#include <unistd.h>
#include <cmath>
#include <fstream>
#include <string>
#include "cdl2.h"

Go to the source code of this file.

Functions

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 CopySlits (float newpos[][7],float slpos[][7])
 Copies selected slits in one pos array into another. 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 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...


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.

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.


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