public class MultiModeWifsipGeometry extends PropertyContainer implements MomentsGeometric, MultiMode
| Modifier and Type | Field and Description |
|---|---|
private static String |
DEFMODENAMES
The names of all supported modes.
|
private static Dimension |
DEFMOMENTSBOX
Default size of the moments ccd readout.
|
private static Dimension |
DEFMOMENTSINSET
Default size of the moments ccd readout.
|
private static String |
DEFSTARTUPMODE
The mode that is selected after startup.
|
private static int |
DEFVIABLE
Default minimum distance to edge.
|
private Rectangle |
focbox
The focus frame.
|
private int |
focext
The extension the focus frame is in.
|
static String |
KEY_MODENAMES
The name of the supported modes.
|
static String |
KEY_MOMENTSBOX
The size of the focus readout box.
|
static String |
KEY_MOMENTSINSET
The insets of the focus readout box to get to the moments frame.
|
static String |
KEY_STARTUPMODE
We start with this mode per default.
|
static String |
KEY_VIABLE
The minimum distance to a quadrant edge to be viable.
|
private String |
lastmode
The last mode set.
|
private static int |
XSIZE
x dimension.
|
private static int |
YSIZE
y dimesnion.
|
KEY_LISTSEPARATOR, KEY_MAPKEYVALUECHAR, KEY_MAPSEPARATORCONFIG, KEY_CLASS| Constructor and Description |
|---|
MultiModeWifsipGeometry(Map<String,String> prop) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
calc(int xc,
int yc) |
private boolean |
calcTrue(int xc,
int yc) |
String |
getActiveMode()
The last mode successfully set.
|
Rectangle |
getBox(int xpix,
int ypix)
Returns the rectangle that defines the readout-area on a ccd from the
focus star position for the Wifsip geometry.
|
int |
getExtension(int xpix,
int ypix)
Returns the extension the moment focusser should use.
|
List<String> |
getModes()
Returns all modes supported.
|
Rectangle |
getMomentsFrame(int xpix,
int ypix)
Returns the moment frame, which is always the size of the focbox minus
the insets.
|
boolean |
selectMode(String mode)
Select this mode, if supported.
|
boolean |
supportMode(String mode)
Return true if this mode is supported.
|
boolean |
withinBounds(int xpix,
int ypix)
Returns true, if the requested position appears feasible for placing a
read-out window around it.
|
augment, augment, augment, augment, augment, clone, defaultBoolean, defaultChar, defaultDouble, defaultFloat, defaultInt, defaultLong, defaultObject, defaultObject, defaultProperties, defaultProperty, getAsBoolean, getAsChar, getAsDouble, getAsEnums, getAsFloat, getAsInt, getAsList, getAsLong, getAsMap, getAsMap, getAsObject, getAsObject, getProperties, getProperty, has, initProperties, isNew, parseObject, parseObject, reload, reload, removeProperty, requires, rescanned, setObject, setProperties, setProperty, stringProperties, toStringpublic static final String KEY_MOMENTSBOX
public static final String KEY_MOMENTSINSET
public static final String KEY_MODENAMES
public static final String KEY_STARTUPMODE
public static final String KEY_VIABLE
private static final String DEFMODENAMES
private static final String DEFSTARTUPMODE
private static final Dimension DEFMOMENTSBOX
private static final Dimension DEFMOMENTSINSET
private static final int DEFVIABLE
private static final int XSIZE
private static final int YSIZE
private Rectangle focbox
private int focext
private String lastmode
public boolean supportMode(String mode)
supportMode in interface MultiModepublic String getActiveMode()
getActiveMode in interface MultiModepublic boolean selectMode(String mode)
selectMode in interface MultiModepublic boolean withinBounds(int xpix,
int ypix)
MomentsGeometricwithinBounds in interface MomentsGeometricpublic Rectangle getBox(int xpix, int ypix)
getBox in interface MomentsGeometricpublic int getExtension(int xpix,
int ypix)
getExtension in interface MomentsGeometricpublic Rectangle getMomentsFrame(int xpix, int ypix)
getMomentsFrame in interface MomentsGeometricprivate boolean calc(int xc,
int yc)
private boolean calcTrue(int xc,
int yc)