|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--net.aerith.misao.util.OperationObservable | +--net.aerith.misao.util.Operation | +--net.aerith.misao.pixy.image_loading.XmlImageLoader
The XmlImageLoader
is a class to load an image file
recorded in the specified XML document.
It transforms the image properly as described int the XML document. It puts the FITS image data in proper order, reverses the image upside down, and rescales the SBIG ST-4/6 image.
Filters to be applied before transformation can be set.
Field Summary | |
protected java.io.File |
file
The image file to load. |
protected FileManager |
file_manager
The file manager. |
protected java.util.Vector |
filter_list
The list of filters to be applied before transformation. |
protected Format |
format
The format of the image file. |
protected MonoImage |
image
The loaded image. |
protected XmlInformation |
information
The XML information document. |
protected XmlInstruction |
instruction
The XML instruction document. |
protected boolean |
reversed_image
|
protected boolean |
sbig_image
True in the case of the ST-4/6 image. |
protected XmlImage |
xml_image
The image file to load. |
Fields inherited from class net.aerith.misao.util.Operation |
monitor_set,
stopped |
Fields inherited from class net.aerith.misao.util.OperationObservable |
observer_list |
Constructor Summary | |
XmlImageLoader(XmlInformation info,
FileManager file_manager)
Constructs an XmlImageLoader with an
XmlInformation . |
|
XmlImageLoader(XmlInstruction instruction,
FileManager file_manager)
Constructs an XmlImageLoader with an
XmlInstruction . |
Method Summary | |
void |
addFilter(Filter filter)
Adds a filter to be applied before transformation. |
MonoImage |
getMonoImage()
Gets the loaded image. |
void |
operate()
Operates. |
boolean |
ready()
Returns true if the operation is ready to start. |
void |
setFile(java.io.File file,
Format format)
Sets the file and format to read. |
Methods inherited from class net.aerith.misao.util.Operation |
addMonitor,
isStopped,
perform,
run,
stop |
Methods inherited from class net.aerith.misao.util.OperationObservable |
addObserver,
deleteObserver,
notifyEnd,
notifyFailed,
notifyStart,
notifySucceeded,
notifyWarned |
Methods inherited from class java.lang.Object |
|
Field Detail |
protected XmlImage xml_image
protected boolean reversed_image
protected boolean sbig_image
protected java.io.File file
protected Format format
protected XmlInstruction instruction
protected XmlInformation information
protected java.util.Vector filter_list
protected FileManager file_manager
protected MonoImage image
Constructor Detail |
public XmlImageLoader(XmlInstruction instruction, FileManager file_manager)
XmlImageLoader
with an
XmlInstruction
.instruction
- the XML instruction document.file_manager
- the file manager.public XmlImageLoader(XmlInformation info, FileManager file_manager)
XmlImageLoader
with an
XmlInformation
.info
- the XML information document.file_manager
- the file manager.Method Detail |
public void setFile(java.io.File file, Format format)
file
- the image file.format
- the image format.public void addFilter(Filter filter)
filter
- the filter to be applied before transformation.public MonoImage getMonoImage()
public boolean ready()
public void operate() throws java.lang.Exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |