DAS
3.1.6 - 18/09/2017
|
GUI and Callbacks for Plotting spectra. More...
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <math.h>
#include <io.h>
#include <direct.h>
#include <fcntl.h>
#include <sys/stat.h>
#include "mgui.h"
#include "DAS_Spatram.h"
#include "dcl.h"
#include "dil.h"
#include "bil.h"
#include "DOAS.h"
Go to the source code of this file.
Functions | |
float * | AllocFloatMat (int hp, int vp) |
long * | AllocLongMat (int hp, int vp) |
void | AllocMat () |
unsigned short * | AllocUSMat (int hp, int vp) |
void | AssZeroMat (int hp, int vp) |
void | CloseFile (FILE *fd, int hp, int vp) |
void | CloseFile_BIN (int fd, int hp, int vp) |
void | ClosePlotCB (MOBJECT p, void *od, void *ad) |
void | D_AssignLabelPlot (void) |
void | D_AssignOrigin (MOBJECT obj) |
int | D_findmaxmin (unsigned short plotmat[], int xinf, int xsup, int yinf, int ysup, int bp) |
void | D_pbr_CB (MOBJECT p, void *od, void *ad) |
void | D_PButt_CB (MOBJECT p, void *od, void *ad) |
void | D_PlotAxis (MOBJECT ob, MIMAGE mim, int sx, int sy, int ex, int ey, MTColor col) |
void | D_PlotGrid (MOBJECT ob, MIMAGE mim, int sx, int sy, int ex, int ey) |
void | D_PlotOneLine (int n, int sel, MOBJECT obj, MOBJECT pb[], MIMAGE mim, unsigned short plotmat[], int idx, int idy, unsigned long pe[], double costx, double costy, int min, int max, int ox, int oy, int bp) |
void | D_PlotTools (void) |
void | DB_AreaInput (MOBJECT obj, MEvent *pe, void *a_data) |
int | DB_CloseImage (int s) |
void | DB_DisplayCB (MOBJECT p, void *od, void *ad) |
void | DB_EqTypePlotCB (MOBJECT o, void *a, void *v) |
void | DB_FilterCB (MOBJECT p, void *od, void *ad) |
Filter positioning callback. More... | |
double | DB_FindMaxMin (int idx, int idy, unsigned int *mx, unsigned int *mi, int bp) |
void | DB_SpikesCB (MOBJECT p, void *od, void *ad) |
void | DB_XUnitsCB (MOBJECT o, void *id, void *a_data) |
void | deallocamat () |
float * | DeallocFloatMat (float *mat) |
unsigned short * | DeallocUSMat (unsigned short *mat) |
void | DestroyArrayObj (MOBJECT obj[], int n) |
int | DrawAreaPlotCB (MOBJECT obj, MEvent *pexp, void *a_data) |
void | DrawButtons (int nhidlbef, int nhidlaft, int nr) |
void | DrawImg (MIMAGE img, int a, int c, int x, int y) |
void | DrawXLine (MIMAGE img, int yfix, int xs, int xe, int r, int g, int b) |
void | DrawYLine (MIMAGE img, int xfix, int ys, int ye, int r, int g, int b) |
void | GrafoIMG (int mode) |
int | HeaderInPlot (void) |
Shows the measurements parameters . More... | |
void | ImatGrafInImat (void) |
void | ImatInImatGraf (void) |
void | InitImage (MIMAGE img, int xd, int yd, int rb, int gb, int bb) |
void | LoadIo (int mod, char *fname) |
void | LogRatioSpectrum (void) |
void | MakeItemSensitiveCB (MOBJECT obj, void *item, void *udata) |
void | MakeItemUnsensitiveCB (MOBJECT obj, void *item, void *udata) |
int | MD_CreateBRowShell (int nrows) |
Create windows of buttons. During the plotting of the measurements, create a shell of buttons if the raws of the CCD are more than 16. More... | |
void | MenuFileOLP_CB (MOBJECT o, void *id, void *a_data) |
void | MenuToolsOLP_CB (MOBJECT o, void *id, void *a_data) |
void | PButtSelAll_CB (MOBJECT p, void *od, void *ad) |
void | PBYScale_CB (MOBJECT p, void *od, void *ad) |
void | PlotSpectrum (MOBJECT obj, MOBJECT pb[], MIMAGE mim, unsigned short plotmat[], int idx, int idy, unsigned long pe[], double costx, double costy, int min, int max, int ox, int oy, int bp, int hlb, int hla) |
void | PlotToolsPBs (MOBJECT o, void *id, void *a_data) |
void | PopUp_CB (MOBJECT obj, void *item, void *data) |
void | PopupMenuCB (MOBJECT obj, MEvent *pe, void *pdown) |
void | PoslblX (MOBJECT lbl, int xs, int xe, int xc) |
void | PoslblY (unsigned int l, unsigned int h) |
int | ReadHeader_ASCII (int mod, FILE *fd) |
Read ASCII Header of the measurement. . More... | |
int | ReadHeader_BIN (int fd) |
read the BINARY header of the stored spectrum More... | |
void | ReadIMG (FILE *file, unsigned short *mat, int hp, int vp) |
Read ASCII Image (Spectral Data only) . More... | |
void | ReadIMG_BIN (int fd, unsigned short *mat, int hp, int vp) |
read the BINARY stored spectrum More... | |
void | ReadIMG_old (FILE *file, int hp, int vp) |
NOT Used . More... | |
int | SaveImage (int fmt, int imgw, int imgh, int np) |
int | SaveIo (char *buff) |
int | SaveSpectrum (char *buff) |
int | SetAsIo (void) |
void | SwapMatrix (unsigned short *source, unsigned short *dest, int hp, int vp) |
Copy the source matrix in the Destination one . More... | |
int | ViewNext (FILE *nf) |
int | ViewNext_BIN (int nf) |
int | ViewPlot (int mod) |
Create the plot shell. Procedure that build the plot shell for the data visualization. More... | |
int | ViewPre (FILE *nf, long position) |
int | ViewPre_BIN (int nf, long position) |
int | Visualizza (int mod, char *nomefile) |
void | WriteIMG (FILE *file, unsigned short *mat, int hp, int vp) |
void | WriteIMG_BIN (int fd, unsigned short *mat, int hp, int vp) |
int | X2Counts (int x) |
unsigned int | Y2Counts (int y) |
Variables | |
MTFont | alfont |
bil | BIL |
config | Cfg |
das | DAS |
DAS structure. More... | |
ccd | DC_CCD |
ptf | DC_HP |
dil | DIL |
doas | DOAS |
palette | DPAL |
char * | ffilenames [] |
MENU_ITEM | Fitem [6] |
int | flagclear = 0 |
MOBJECT | Fmenu |
MENU_ITEM | item_pd |
unsigned int * | mattempbuff |
int | maxploth |
int | maxplotw |
MTFont | newfont |
char | NFileNameF [32] |
MOBJECT | Optmenu |
MTFont | plfont |
MOBJECT | popup_pd |
MENU_ITEM | Titem [4] |
MOBJECT | Tmenu |
GUI and Callbacks for Plotting spectra.
Definition in file Spat_Plot.c.
float* AllocFloatMat | ( | int | hp, |
int | vp | ||
) |
Definition at line 2009 of file Spat_Plot.c.
Referenced by BrowseLog(), BuildLogRatio(), InitTempAD(), RunLogMode(), and WriteSelColandSmoothed().
long* AllocLongMat | ( | int | hp, |
int | vp | ||
) |
Definition at line 2024 of file Spat_Plot.c.
void AllocMat | ( | ) |
Definition at line 124 of file Spat_Plot.c.
References spectrumheader::ccdnr, spectrumheader::ccdwx, bil::DPLOT, IDX, IDY, d_view::ImatGraf, d_view::ImatOrig, and bil::SPH.
unsigned short* AllocUSMat | ( | int | hp, |
int | vp | ||
) |
Definition at line 1994 of file Spat_Plot.c.
Referenced by DatOrBinFormat(), DB_CalcFluxI(), DB_Column(), DB_InitCamera(), DrawAreaPlotCB(), DT_CorrFileEvora(), DT_CorrHeader(), LoadIo(), SaveIo(), and Visualizza().
void AssZeroMat | ( | int | hp, |
int | vp | ||
) |
void CloseFile | ( | FILE * | fd, |
int | hp, | ||
int | vp | ||
) |
Definition at line 1304 of file Spat_Plot.c.
References spectrumheader::ccdnr, viewformobj::cmdpb, ContFP, DB_CloseImage(), DeallocUSMat(), DOASMODE, das::DOption, bil::DPLOT, flag::exemode, Fitem, das::Flag, optionini::hlineafter, optionini::hlinebefore, d_view::ImatGraf, d_view::ImatOrig, MMenuItemSetSensitive(), MMenuItemSetUnsensitive(), MObjectSetSensitive(), MObjectSetText(), MObjectSetUnsensitive(), MObjectUnmap(), MShellDestroy(), MShellSetTitle(), MShellUnrealize(), OFFLINEPLOT, d_view::pbr, d_view::RowShell, viewformobj::selallpb, Server, bil::SPH, bil::VFO, viewformobj::View_Sh, and viewformobj::YScalePB.
Referenced by D_PButt_CB(), MenuFileOLP_CB(), and ViewNext().
void CloseFile_BIN | ( | int | fd, |
int | hp, | ||
int | vp | ||
) |
Definition at line 1382 of file Spat_Plot.c.
References spectrumheader::ccdnr, viewformobj::cmdpb, ContFP, DB_CloseImage(), DeallocUSMat(), DOASMODE, das::DOption, bil::DPLOT, flag::exemode, Fitem, das::Flag, optionini::hlineafter, optionini::hlinebefore, d_view::ImatGraf, d_view::ImatOrig, MMenuItemSetSensitive(), MMenuItemSetUnsensitive(), MObjectSetSensitive(), MObjectSetText(), MObjectSetUnsensitive(), MObjectUnmap(), MShellDestroy(), MShellSetTitle(), MShellUnrealize(), OFFLINEPLOT, d_view::pbr, d_view::RowShell, viewformobj::selallpb, Server, bil::SPH, bil::VFO, viewformobj::View_Sh, and viewformobj::YScalePB.
Referenced by D_PButt_CB(), MenuFileOLP_CB(), and ViewNext_BIN().
void ClosePlotCB | ( | MOBJECT | p, |
void * | od, | ||
void * | ad | ||
) |
Definition at line 2514 of file Spat_Plot.c.
References bil::BLENS, ContFP, DeallocUSMat(), bil::DPLOT, flag::exemode, das::Flag, d_view::ImatGraf, d_view::ImatOrig, blens::Imim, MFreeImage(), MGUITerm(), MShellDestroy(), MShellUnrealize(), OFFLINEPLOT, and d_view::RowShell.
Referenced by D_PButt_CB(), MenuFileOLP_CB(), and ViewPlot().
void D_AssignLabelPlot | ( | void | ) |
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!ATTENZIONE|||
Definition at line 1661 of file Spat_Plot.c.
References spectrumheader::altitude, BlindPix, spectrumheader::ccdex, spectrumheader::ccdey, spectrumheader::ccdmax, spectrumheader::ccdmin, spectrumheader::ccdnr, spectrumheader::ccdsx, spectrumheader::ccdsy, spectrumheader::ccdtemp, spectrumheader::ccdtexp, spectrumheader::ccdvb, spectrumheader::ccdwx, spectrumheader::ccdwy, ddate::da_day, ddate::da_mon, ddate::da_year, spectrumheader::DATE, das::DOption, spectrumheader::dummy1, spectrumheader::dummy2, spectrumheader::dummy3, spectrumheader::dummy4, spectrumheader::filpos, optionini::filtertype, IDX, IDY, spectrumheader::latitude, viewformobj::lblalt, viewformobj::lblAzimuth, viewformobj::lblccdex, viewformobj::lblccdey, viewformobj::lblccdsx, viewformobj::lblccdsy, viewformobj::lblccdtemp, viewformobj::lblccdtexp, viewformobj::lblccdwx, viewformobj::lblccdwy, viewformobj::lbldate, viewformobj::lblfilter, viewformobj::lbllat, viewformobj::lblloc, viewformobj::lbllong, viewformobj::lblmax, viewformobj::lblmin, viewformobj::lblmirpos, viewformobj::lblndfilter, viewformobj::lblnr, viewformobj::lblnummeas, viewformobj::lblsza, viewformobj::lbltime, viewformobj::lblvb, viewformobj::lblwaveleng, viewformobj::lblZenith, spectrumheader::location, spectrumheader::longitude, spectrumheader::mirpos, MObjectSetText(), NDFil_Code, bil::SPH, spectrumheader::sza, dtime::ti_hour, dtime::ti_min, dtime::ti_sec, spectrumheader::TIME, bil::VFO, and spectrumheader::wavelen.
Referenced by ReadHeader_ASCII(), ViewNext_BIN(), and Visualizza().
void D_AssignOrigin | ( | MOBJECT | obj | ) |
Definition at line 432 of file Spat_Plot.c.
References bil::DPLOT, d_view::eX, d_view::eY, d_view::hsize, MObjectGetHeight(), MObjectGetWidth(), d_view::oX, d_view::oY, and d_view::wsize.
Referenced by D_pbr_CB(), DrawAreaPlotCB(), and LoadIo().
int D_findmaxmin | ( | unsigned short | plotmat[], |
int | xinf, | ||
int | xsup, | ||
int | yinf, | ||
int | ysup, | ||
int | bp | ||
) |
Definition at line 635 of file Spat_Plot.c.
References bil::DPLOT, d_view::Imax, and d_view::Imin.
Referenced by D_pbr_CB(), and DrawAreaPlotCB().
void D_pbr_CB | ( | MOBJECT | p, |
void * | od, | ||
void * | ad | ||
) |
Definition at line 717 of file Spat_Plot.c.
References d_view::actimg, mtcl::black, bil::BLENS, BlindPix, paramini::ccdWx, paramini::ccdXoff, d_view::COSTX, d_view::COSTY, D_AssignOrigin(), D_findmaxmin(), D_PlotAxis(), D_PlotGrid(), D_PlotOneLine(), das::DOption, bil::DPLOT, d_view::drawapl, d_view::eX, d_view::eY, FLAG, tools::FlagFilter, optionini::hlineafter, optionini::hlinebefore, IDX, IDY, d_view::ImatGraf, d_view::ImatOrig, d_view::Imax, blens::Imim, d_view::Imin, doas::lambda, viewformobj::lblX, MTCL, d_view::oX, d_view::oY, das::Paramini, d_view::pbr, Pix2Wl(), mtcl::PLColor, flag::plotYRange, PoslblX(), PoslblY(), bil::SPH, TOOLS, bil::VFO, spectrumheader::wavelen, and flag::Wl.
Referenced by MD_CreateBRowShell(), PButtSelAll_CB(), and ViewPlot().
void D_PButt_CB | ( | MOBJECT | p, |
void * | od, | ||
void * | ad | ||
) |
Definition at line 3320 of file Spat_Plot.c.
References _MAX_PATH, FB_PREFS::allow_dir_create, FB_PREFS::allow_dir_delete, FB_PREFS::allow_dir_rename, FB_PREFS::bg_image_file, FB_PREFS::button_font, FB_PREFS::change_cwd, CloseFile(), CloseFile_BIN(), ClosePlotCB(), ContFP, D_Lens(), D_PlotTools(), d_fileman::DATADIRECTORY, DB_Column(), DB_Save(), d_fileman::DBFILENAME, bil::DFILEM, DI_FileExist(), DI_FindExtName(), das::DOption, bil::DPLOT, d_view::drawapl, False, FBIF, FDAT, optionini::filename, d_fileman::FKIND, FB_PREFS::font, HELV_SMALL, d_fileman::HOMEDIRECTORY, IDX, IDY, MDCreateDASConfig(), MFileBrowseExt(), MMessageDialog(), MObjectGetText(), MObjectSetBackgroundRGB(), NFDATI, NFileNameF, NUMFDATI, PrintObject(), REL_FILE_POS, optionini::savingmode, SetAsIo(), SetupPrinter(), FB_PREFS::transparent_tree, True, bil::VFO, viewformobj::View_Sh, ViewNext(), ViewNext_BIN(), ViewPre(), ViewPre_BIN(), and Visualizza().
Referenced by ViewPlot().
Definition at line 448 of file Spat_Plot.c.
References DrawXLine(), DrawYLine(), and MDrawLine().
Referenced by D_pbr_CB(), DrawAreaPlotCB(), and LoadIo().
Definition at line 476 of file Spat_Plot.c.
References DrawXLine(), DrawYLine(), mtcl::green, MDrawLine(), MTCL, and mtcl::white.
Referenced by D_pbr_CB(), DrawAreaPlotCB(), and LoadIo().
void D_PlotOneLine | ( | int | n, |
int | sel, | ||
MOBJECT | obj, | ||
MOBJECT | pb[], | ||
MIMAGE | mim, | ||
unsigned short | plotmat[], | ||
int | idx, | ||
int | idy, | ||
unsigned long | pe[], | ||
double | costx, | ||
double | costy, | ||
int | min, | ||
int | max, | ||
int | ox, | ||
int | oy, | ||
int | bp | ||
) |
Definition at line 669 of file Spat_Plot.c.
References mtcl::black, DrawImg(), MIMAGE_DESCR::img_h, MDrawLine(), MObjectSetColor(), MTCL, mtcl::white, and mtcl::yellow.
Referenced by D_pbr_CB().
void D_PlotTools | ( | void | ) |
Definition at line 2818 of file Spat_Plot.c.
References ActEditCB(), palette::DB_BG, DB_DisplayCB(), DB_FilterCB(), DB_SpikesCB(), False, doas::FFTFilter, FIXED_SMALL, tools::FlagDisplay, tools::FlagFilter, tools::FlagSpikes, lbl, LEFT_ALIGN, MCreateClippedEdit(), MCreateLabel(), MCreatePButton(), MCreateRButton(), MCreateRowForm(), MCreateShell(), MCreateTableForm(), MEditSetActCallback(), MEditSetValCallback(), MFormSetSpacing(), MLabelSetAlignment(), MObjectAlign(), MObjectSetBackgroundRGB(), MObjectSetCompositeWidth(), MObjectSetForegroundRGB(), MObjectSetResize(), MObjectSetTransparency(), MPButtonSetCallback(), MRButtonActivate(), MShellRealizeXY(), p, PlotToolsPBs(), tools::Sh_PlotTools, TOOLS, TOP_ALIGN, True, and ValidateCB().
Referenced by D_PButt_CB(), and MenuToolsOLP_CB().
Definition at line 203 of file Spat_Plot.c.
References bil::BLENS, d_view::COSTX, d_view::COSTY, D_DoLens(), DOASMODE, bil::DPLOT, E_BUTTON_PRESS, E_BUTTON_RELEASE, E_MOTION, E_SELECT, E_WINDOW_ENTER, E_WINDOW_EXIT, flag::exemode, FLAG, das::Flag, d_view::ImatGraf, doas::lambda, blens::LensDraw, blens::LensLbl, blens::LensLblX, blens::LensLblY, blens::LensMim, blens::LensON, blens::LensPix, blens::LensWx, blens::LensWy, blens::LocX, blens::LocY, MDrawXorBox(), MDrawXorLine(), MObjectGetHeight(), MObjectGetWidth(), MObjectSetText(), MObjectShell(), MEvent::mouse, OFFLINEPLOT, p, blens::Pix, blens::S_LocX, blens::S_LocY, MMouseEvent::state, MEvent::type, bil::VFO, flag::Wl, MMouseEvent::x, X2Counts(), viewformobj::xincr, viewformobj::xloc, MMouseEvent::y, Y2Counts(), viewformobj::yincr, and viewformobj::yloc.
Referenced by ViewPlot().
int DB_CloseImage | ( | int | s | ) |
Definition at line 1257 of file Spat_Plot.c.
References img::Bmat, image::BPAL, img::col, image::DimX, image::DimY, FLTIMG, img::Fmat, img::Gmat, image::GPAL, image::H, histogram::Histo, histogram::HistoShell, image::Iacc, img::Imat, dil::Img, image::Imim, INTIMG, image::iPAL, image::Isrv, image::LshX, image::LshY, image::Mat, MFreeColor(), MFreeImage(), MObjectGetHeight(), MObjectGetWidth(), MObjectGetX(), MObjectGetY(), MShellDestroy(), MShellUnrealize(), img::Rmat, image::RPAL, and img::type.
Referenced by CloseFile(), CloseFile_BIN(), ViewNext(), and ViewNext_BIN().
void DB_DisplayCB | ( | MOBJECT | p, |
void * | od, | ||
void * | ad | ||
) |
Definition at line 2646 of file Spat_Plot.c.
References tools::FlagDisplay, GrafoIMG(), MRButtonGetActivationStatus(), ON_OFFLINEPLOT, and TOOLS.
Referenced by D_PlotTools().
void DB_EqTypePlotCB | ( | MOBJECT | o, |
void * | a, | ||
void * | v | ||
) |
Definition at line 3704 of file Spat_Plot.c.
References d_fileman::CONFIGDIRCOMMON, d_fileman::CONFIGDIREQUIPMENT, bil::DFILEM, paramini::EqType, GrafoIMG(), LoadDB_DispCoeff(), MRButtonGetActivationStatus(), ON_OFFLINEPLOT, das::Paramini, and WriteEquipini().
Referenced by ViewPlot().
void DB_FilterCB | ( | MOBJECT | p, |
void * | od, | ||
void * | ad | ||
) |
Filter positioning callback.
Definition at line 2593 of file Spat_Plot.c.
References tools::FlagFilter, GrafoIMG(), MRButtonGetActivationStatus(), ON_OFFLINEPLOT, and TOOLS.
Referenced by D_PlotTools().
double DB_FindMaxMin | ( | int | idx, |
int | idy, | ||
unsigned int * | mx, | ||
unsigned int * | mi, | ||
int | bp | ||
) |
void DB_SpikesCB | ( | MOBJECT | p, |
void * | od, | ||
void * | ad | ||
) |
Definition at line 2620 of file Spat_Plot.c.
References tools::FlagSpikes, GrafoIMG(), MRButtonGetActivationStatus(), ON_OFFLINEPLOT, and TOOLS.
Referenced by D_PlotTools().
void DB_XUnitsCB | ( | MOBJECT | o, |
void * | id, | ||
void * | a_data | ||
) |
Definition at line 3547 of file Spat_Plot.c.
References bil::DPLOT, FLAG, GrafoIMG(), d_view::ImatGraf, ON_OFFLINEPLOT, and flag::Wl.
Referenced by ViewPlot().
void deallocamat | ( | ) |
Definition at line 161 of file Spat_Plot.c.
References bil::DPLOT, d_view::ImatGraf, and d_view::ImatOrig.
float* DeallocFloatMat | ( | float * | mat | ) |
Definition at line 153 of file Spat_Plot.c.
Referenced by WriteSelColandSmoothed().
unsigned short* DeallocUSMat | ( | unsigned short * | mat | ) |
Definition at line 145 of file Spat_Plot.c.
Referenced by CloseFile(), CloseFile_BIN(), ClosePlotCB(), DatOrBinFormat(), DT_CorrFileEvora(), and DT_CorrHeader().
void DestroyArrayObj | ( | MOBJECT | obj[], |
int | n | ||
) |
Definition at line 1463 of file Spat_Plot.c.
References MObjectDestroy().
Definition at line 876 of file Spat_Plot.c.
References d_view::actimg, AllocUSMat(), mtcl::black, bil::BLENS, BlindPix, CalcSpectrumLimits(), spectrumheader::ccdex, spectrumheader::ccdwx, paramini::ccdWx, paramini::ccdXoff, viewformobj::cmdpb, d_view::COSTX, d_view::COSTY, D_AssignOrigin(), D_findmaxmin(), D_PlotAxis(), D_PlotGrid(), DBDEMO, flag::DispBlindPix, das::DOption, bil::DPLOT, ccd::dx, d_view::eX, flag::exemode, d_view::eY, doas::FFTFilter, FilterData(), FLAG, das::Flag, tools::FlagDisplay, tools::FlagFilter, tools::FlagSpikes, HeaderInPlot(), optionini::hlineafter, optionini::hlinebefore, IDX, IDY, img::Imat, d_view::ImatGraf, d_view::ImatOrig, d_view::Imax, dil::Img, blens::Imim, d_view::Imin, InitImage(), doas::lambda, viewformobj::lblX, MAllocImage(), image::Mat, maxploth, maxplotw, MFreeImage(), MMessageDialog(), MObjectGetHeight(), MObjectGetWidth(), MObjectSetSensitive(), MObjectSetText(), MTCL, ON_OFFLINEPLOT, d_view::oX, d_view::oY, das::Paramini, d_view::pbr, Pix2Wl(), mtcl::PLColor, PlotSpectrum(), flag::plotYRange, PoslblX(), PoslblY(), RemoveSpikes(), Server, bil::SPH, SwapMatrix(), TOOLS, bil::VFO, spectrumheader::wavelen, and flag::Wl.
Referenced by GrafoIMG(), and ViewPlot().
void DrawButtons | ( | int | nhidlbef, |
int | nhidlaft, | ||
int | nr | ||
) |
Definition at line 56 of file Spat_Plot.c.
References bil::DPLOT, MD_CreateBRowShell(), MObjectMap(), MObjectUnmap(), MShellDestroy(), MShellUnrealize(), d_view::OLDnR, d_view::pbr, and d_view::RowShell.
Referenced by ViewNext(), ViewNext_BIN(), and Visualizza().
void DrawImg | ( | MIMAGE | img, |
int | a, | ||
int | c, | ||
int | x, | ||
int | y | ||
) |
Definition at line 370 of file Spat_Plot.c.
References mtcl::db, mtcl::dg, mtcl::dr, MImageSetPixelRGB(), and MTCL.
Referenced by D_PlotOneLine(), and PlotSpectrum().
void DrawXLine | ( | MIMAGE | img, |
int | yfix, | ||
int | xs, | ||
int | xe, | ||
int | r, | ||
int | g, | ||
int | b | ||
) |
Definition at line 423 of file Spat_Plot.c.
References MImageSetPixelRGB().
Referenced by D_PlotAxis(), and D_PlotGrid().
void DrawYLine | ( | MIMAGE | img, |
int | xfix, | ||
int | ys, | ||
int | ye, | ||
int | r, | ||
int | g, | ||
int | b | ||
) |
Definition at line 404 of file Spat_Plot.c.
References MImageSetPixelRGB().
Referenced by D_PlotAxis(), and D_PlotGrid().
void GrafoIMG | ( | int | mode | ) |
Definition at line 1242 of file Spat_Plot.c.
References bil::DPLOT, d_view::drawapl, DrawAreaPlotCB(), MDrawAreaSetExposeCallback(), and MObjectRedraw().
Referenced by ActEditCB(), BuildLogRatio(), DB_DisplayCB(), DB_EqTypePlotCB(), DB_FilterCB(), DB_SpikesCB(), DB_XUnitsCB(), PBYScale_CB(), ViewNext(), ViewNext_BIN(), and Visualizza().
int HeaderInPlot | ( | void | ) |
Shows the measurements parameters
.
Definition at line 1475 of file Spat_Plot.c.
References d_geo::alititude, optionini::avgmode, spectrumheader::ccdex, spectrumheader::ccdey, spectrumheader::ccdnr, spectrumheader::ccdsx, spectrumheader::ccdsy, marconi::CCDTemp, spectrumheader::ccdvb, spectrumheader::ccdwx, paramini::ccdWx, spectrumheader::ccdwy, paramini::ccdWy, paramini::ccdXoff, paramini::ccdYoff, viewformobj::cmdpb, date::da_day, date::da_mon, date::da_year, img::DATE, das::DGeo, das::DOption, spectrumheader::dummy3, ccd::dx, ccd::dy, paramini::EqType, Fil_Code, Fil_Code8H, Fil_CodeNG, Fil_CodeNG1, Fil_CodeTropo, optionini::filtertype, FWS, GASCODNG1, GASCODNG2, GASCODNG3, GASCODNG4, GRS, img::High, dil::Img, d_geo::latitude, viewformobj::lblalt, viewformobj::lblccdex, viewformobj::lblccdey, viewformobj::lblccdsx, viewformobj::lblccdsy, viewformobj::lblccdtemp, viewformobj::lblccdtexp, viewformobj::lblccdwx, viewformobj::lblccdwy, viewformobj::lbldate, viewformobj::lblfilter, viewformobj::lbllat, viewformobj::lblloc, viewformobj::lbllong, viewformobj::lblmax, viewformobj::lblmin, viewformobj::lblmirpos, viewformobj::lblndfilter, viewformobj::lblnr, viewformobj::lblnummeas, viewformobj::lblsza, viewformobj::lbltime, viewformobj::lblvb, viewformobj::lblwaveleng, LIS_, d_geo::longitude, img::Low, das::Marconi, image::Mat, optionini::measmode, Mir_Code, Mir_CodeTropo, MIS, MObjectSetSensitive(), MObjectSetText(), N_AVG, N_RM, NDFil_Code, das::Paramini, FilterWheelSt::Pos, MirrorSt::Pos, d_geo::s_name, S_zenetr, Server, SPATRAM3, bil::SPH, TExp, time::ti_hour, time::ti_min, time::ti_sec, img::TIME, TROPOGAS, paramini::VBin, bil::VFO, spectrumheader::wavelen, wl, and GratingSt::Wl.
Referenced by DrawAreaPlotCB().
void ImatGrafInImat | ( | void | ) |
Definition at line 861 of file Spat_Plot.c.
References bil::DPLOT, IDX, IDY, img::Imat, d_view::ImatGraf, dil::Img, image::Mat, and Server.
void ImatInImatGraf | ( | void | ) |
Definition at line 847 of file Spat_Plot.c.
References bil::DPLOT, IDX, IDY, img::Imat, d_view::ImatGraf, dil::Img, image::Mat, and Server.
void InitImage | ( | MIMAGE | img, |
int | xd, | ||
int | yd, | ||
int | rb, | ||
int | gb, | ||
int | bb | ||
) |
Definition at line 354 of file Spat_Plot.c.
References MImageSetPixelRGB().
Referenced by DrawAreaPlotCB(), LoadIo(), ViewNext(), ViewNext_BIN(), and ViewPlot().
void LoadIo | ( | int | mod, |
char * | fname | ||
) |
Definition at line 2678 of file Spat_Plot.c.
References AllocUSMat(), mtcl::black, bil::BLENS, spectrumheader::ccdnr, spectrumheader::ccdwx, D_AssignOrigin(), D_PlotAxis(), D_PlotGrid(), bil::DPLOT, doas::drwa, d_view::eX, d_view::eY, IDX, IDY, blens::Imim, InitImage(), doas::IoMat, MAllocImage(), maxploth, maxplotw, MFreeImage(), MObjectGetHeight(), MObjectGetWidth(), MTCL, d_view::oX, d_view::oY, ReadHeader_ASCII(), ReadIMG(), and bil::SPH.
Referenced by LoadIoCB(), and PlotToolsPBs().
void LogRatioSpectrum | ( | void | ) |
Definition at line 2764 of file Spat_Plot.c.
void MakeItemSensitiveCB | ( | MOBJECT | obj, |
void * | item, | ||
void * | udata | ||
) |
Definition at line 2054 of file Spat_Plot.c.
References MMenuItemSetSensitive().
Referenced by Visualizza().
void MakeItemUnsensitiveCB | ( | MOBJECT | obj, |
void * | item, | ||
void * | udata | ||
) |
Definition at line 2044 of file Spat_Plot.c.
References MMenuItemSetUnsensitive().
Referenced by ViewPlot(), and Visualizza().
int MD_CreateBRowShell | ( | int | nrows | ) |
Create windows of buttons.
During the plotting of the measurements, create a shell of buttons if the raws of the CCD are more than 16.
nrows | number of raws of the CCD sensor (CCDVPix/CCDVBin) |
Definition at line 1625 of file Spat_Plot.c.
References D_pbr_CB(), das::DOption, bil::DPLOT, HELV_SMALL, optionini::hlineafter, optionini::hlinebefore, MCreatePButton(), MCreateShell(), MCreateTableForm(), MObjectAlign(), MObjectSetBackgroundRGB(), MObjectSetColor(), MObjectSetResize(), MObjectSetShadow(), MObjectSetTransparency(), MPButtonSetCallback(), MShellRealizeXY(), MTCL, d_view::pbr, mtcl::PLColor, d_view::RowShell, TOP_ALIGN, True, UNDEF_ALIGN, mtcl::white, and WS_ETCHED_IN.
Referenced by DrawButtons(), LoadTestPalette(), and ViewPlot().
void MenuFileOLP_CB | ( | MOBJECT | o, |
void * | id, | ||
void * | a_data | ||
) |
Definition at line 3209 of file Spat_Plot.c.
References _MAX_PATH, FB_PREFS::allow_dir_create, FB_PREFS::allow_dir_delete, FB_PREFS::allow_dir_rename, FB_PREFS::bg_image_file, FB_PREFS::button_font, FB_PREFS::change_cwd, CloseFile(), CloseFile_BIN(), ClosePlotCB(), ContFP, d_fileman::DBFILENAME, bil::DFILEM, das::DOption, bil::DPLOT, d_view::drawapl, False, FBIF, FDAT, d_fileman::FKIND, FB_PREFS::font, FSAVE, HELV_SMALL, d_fileman::HOMEDIRECTORY, IDX, IDY, d_view::ImatGraf, MDCreateFM_Shell(), MFileBrowseExt(), MGetCurrentDirectory(), MMessageDialog(), MObjectSetBackgroundRGB(), NFDATI, NUMFDATI, REL_FILE_POS, SaveSpectrum(), optionini::savingmode, FB_PREFS::transparent_tree, True, bil::VFO, viewformobj::View_Sh, ViewNext(), ViewNext_BIN(), ViewPre(), ViewPre_BIN(), and Visualizza().
Referenced by ViewPlot().
void MenuToolsOLP_CB | ( | MOBJECT | o, |
void * | id, | ||
void * | a_data | ||
) |
Definition at line 3179 of file Spat_Plot.c.
References D_Lens(), D_PlotTools(), D_SunCalc(), MMessageDialog(), PrintObject(), SetupPrinter(), bil::VFO, and viewformobj::View_Sh.
Referenced by ViewPlot().
void PButtSelAll_CB | ( | MOBJECT | p, |
void * | od, | ||
void * | ad | ||
) |
Definition at line 2476 of file Spat_Plot.c.
References D_pbr_CB(), das::DOption, bil::DPLOT, optionini::hlineafter, optionini::hlinebefore, IDY, and d_view::pbr.
Referenced by ViewPlot().
void PBYScale_CB | ( | MOBJECT | p, |
void * | od, | ||
void * | ad | ||
) |
Definition at line 2441 of file Spat_Plot.c.
References bil::DPLOT, FLAG, GrafoIMG(), d_view::ImatGraf, ON_OFFLINEPLOT, and flag::plotYRange.
Referenced by ViewPlot().
void PlotSpectrum | ( | MOBJECT | obj, |
MOBJECT | pb[], | ||
MIMAGE | mim, | ||
unsigned short | plotmat[], | ||
int | idx, | ||
int | idy, | ||
unsigned long | pe[], | ||
double | costx, | ||
double | costy, | ||
int | min, | ||
int | max, | ||
int | ox, | ||
int | oy, | ||
int | bp, | ||
int | hlb, | ||
int | hla | ||
) |
Definition at line 796 of file Spat_Plot.c.
References DrawImg(), MIMAGE_DESCR::img_h, MDrawLine(), MObjectBackgroundColor(), MObjectSetColor(), MTCL, mtcl::white, and mtcl::yellow.
Referenced by DrawAreaPlotCB().
void PlotToolsPBs | ( | MOBJECT | o, |
void * | id, | ||
void * | a_data | ||
) |
Definition at line 2772 of file Spat_Plot.c.
References _MAX_PATH, FB_PREFS::allow_dir_create, FB_PREFS::allow_dir_delete, FB_PREFS::allow_dir_rename, FB_PREFS::bg_image_file, BuildLogRatio(), FB_PREFS::button_font, FB_PREFS::change_cwd, d_fileman::DBFILENAME, bil::DFILEM, False, FB_PREFS::font, HELV_SMALL, d_fileman::HOMEDIRECTORY, LoadIo(), MFileBrowseExt(), MGetCurrentDirectory(), FB_PREFS::transparent_tree, and True.
Referenced by D_PlotTools().
void PopUp_CB | ( | MOBJECT | obj, |
void * | item, | ||
void * | data | ||
) |
Definition at line 3584 of file Spat_Plot.c.
References _MAX_PATH, d_fileman::DATADIRECTORY, DB_Save(), d_fileman::DBFILENAME, bil::DFILEM, DI_FindExtName(), das::DOption, flagclear, MInputPrompt(), MMenuItemGetText(), MMenuItemSetText(), MMessageDialog(), MObjectMap(), MObjectRedraw(), MObjectUnmap(), NFileNameF, and optionini::savingmode.
Referenced by ViewPlot().
Definition at line 3688 of file Spat_Plot.c.
References MMouseEvent::button, MObjectGetText(), MEvent::mouse, MPopupMenu(), MMouseEvent::x_root, and MMouseEvent::y_root.
Referenced by ViewPlot().
void PoslblX | ( | MOBJECT | lbl, |
int | xs, | ||
int | xe, | ||
int | xc | ||
) |
Definition at line 516 of file Spat_Plot.c.
References viewformobj::lblX, MObjectSetText(), and bil::VFO.
Referenced by D_pbr_CB(), and DrawAreaPlotCB().
void PoslblY | ( | unsigned int | l, |
unsigned int | h | ||
) |
Definition at line 575 of file Spat_Plot.c.
References viewformobj::lblY, MObjectSetText(), and bil::VFO.
Referenced by D_pbr_CB(), and DrawAreaPlotCB().
int ReadHeader_ASCII | ( | int | mod, |
FILE * | fd | ||
) |
Read ASCII Header of the measurement.
.
mod |
|
Definition at line 1877 of file Spat_Plot.c.
References spectrumheader::altitude, BlindPix, spectrumheader::ccdex, spectrumheader::ccdey, spectrumheader::ccdmax, spectrumheader::ccdmin, spectrumheader::ccdnr, spectrumheader::ccdsx, spectrumheader::ccdsy, spectrumheader::ccdtemp, spectrumheader::ccdtexp, spectrumheader::ccdvb, spectrumheader::ccdwx, spectrumheader::ccdwy, ch, spectrumheader::comment, D_AssignLabelPlot(), ddate::da_day, ddate::da_mon, ddate::da_year, spectrumheader::DATE, spectrumheader::dummy1, spectrumheader::dummy2, spectrumheader::dummy3, spectrumheader::dummy4, spectrumheader::filpos, IDX, IDY, spectrumheader::imgtype, spectrumheader::latitude, spectrumheader::location, spectrumheader::longitude, spectrumheader::mirpos, bil::SPH, spectrumheader::StrDate, spectrumheader::StrTime, spectrumheader::sza, dtime::ti_hour, dtime::ti_min, dtime::ti_sec, spectrumheader::TIME, and spectrumheader::wavelen.
Referenced by DatOrBinFormat(), DB_Column(), LoadIo(), ViewNext(), and Visualizza().
int ReadHeader_BIN | ( | int | fd | ) |
read the BINARY header of the stored spectrum
fd | number of source file |
Definition at line 1798 of file Spat_Plot.c.
References spectrumheader::altitude, BlindPix, spectrumheader::ccdex, spectrumheader::ccdey, spectrumheader::ccdmax, spectrumheader::ccdnr, spectrumheader::ccdsx, spectrumheader::ccdsy, spectrumheader::ccdtemp, spectrumheader::ccdtexp, spectrumheader::ccdvb, spectrumheader::ccdwx, spectrumheader::ccdwy, spectrumheader::comment, spectrumheader::DATE, spectrumheader::dummy1, spectrumheader::dummy2, spectrumheader::dummy3, spectrumheader::dummy4, spectrumheader::filpos, IDX, IDY, spectrumheader::imgtype, spectrumheader::latitude, spectrumheader::location, spectrumheader::longitude, spectrumheader::mirpos, bil::SPH, spectrumheader::sza, spectrumheader::TIME, and spectrumheader::wavelen.
Referenced by DatOrBinFormat(), DB_CalcFluxI(), DB_Column(), ViewNext_BIN(), and Visualizza().
void ReadIMG | ( | FILE * | file, |
unsigned short * | mat, | ||
int | hp, | ||
int | vp | ||
) |
Read ASCII Image (Spectral Data only)
.
*file | = ASCII file number |
*mat | = image buffer |
hp | = horizontal pixels |
vp | = vertical pixels |
Definition at line 1206 of file Spat_Plot.c.
Referenced by DatOrBinFormat(), DB_Column(), DT_CorrFileEvora(), DT_CorrHeader(), LoadIo(), ViewNext(), and Visualizza().
void ReadIMG_BIN | ( | int | fd, |
unsigned short * | mat, | ||
int | hp, | ||
int | vp | ||
) |
read the BINARY stored spectrum
fd | number of source file |
*mat | destination buffer |
hp | horizontal pixels |
vp | vertical pixels |
Definition at line 1166 of file Spat_Plot.c.
Referenced by DatOrBinFormat(), DB_CalcFluxI(), DB_Column(), ViewNext_BIN(), and Visualizza().
void ReadIMG_old | ( | FILE * | file, |
int | hp, | ||
int | vp | ||
) |
NOT Used
.
Definition at line 1136 of file Spat_Plot.c.
References bil::DPLOT, and d_view::ImatGraf.
int SaveImage | ( | int | fmt, |
int | imgw, | ||
int | imgh, | ||
int | np | ||
) |
Definition at line 2485 of file Spat_Plot.c.
int SaveIo | ( | char * | buff | ) |
Definition at line 3069 of file Spat_Plot.c.
References AllocUSMat(), D_Print_BIL_H_ASCII(), bil::DPLOT, IDX, IDY, d_view::ImatGraf, doas::IoMat, and SwapMatrix().
Referenced by SetAsIo().
int SaveSpectrum | ( | char * | buff | ) |
Definition at line 3162 of file Spat_Plot.c.
References FLAG, IDY, MMessageDialog(), flag::Wl, and WriteSelColandSmoothed().
Referenced by MenuFileOLP_CB().
int SetAsIo | ( | void | ) |
Definition at line 3126 of file Spat_Plot.c.
References d_fileman::DBFILENAME, bil::DFILEM, FDAT, FSAVE, d_fileman::HOMEDIRECTORY, doas::IoFileNeme, MDCreateFM_Shell(), MMessageDialog(), SaveIo(), bil::SPH, and spectrumheader::wavelen.
Referenced by D_PButt_CB().
void SwapMatrix | ( | unsigned short * | source, |
unsigned short * | dest, | ||
int | hp, | ||
int | vp | ||
) |
Copy the source matrix in the Destination one
.
*source | = source matrix (buffer) |
*dest | = destination matrix (buffer) |
hp | = horizontal pixels |
vp | = vertical pixels |
Definition at line 1979 of file Spat_Plot.c.
Referenced by DrawAreaPlotCB(), SaveIo(), ViewNext(), ViewNext_BIN(), and Visualizza().
int ViewNext | ( | FILE * | nf | ) |
Definition at line 2365 of file Spat_Plot.c.
References AbsFilePos, bil::BLENS, CloseFile(), viewformobj::cmdpb, ContFP, DB_CloseImage(), DB_InitDil(), bil::DFILEM, DI_ImageProperties(), DI_Regen(), DI_ScanMaxMin(), DOASMODE, das::DOption, bil::DPLOT, d_view::drawapl, DrawButtons(), flag::exemode, Fitem, das::Flag, GrafoIMG(), img::High, optionini::hlineafter, optionini::hlinebefore, d_fileman::HOMEDIRECTORY, IDX, IDY, img::IHigh, img::ILow, img::Imat, d_view::ImatGraf, d_view::ImatOrig, dil::Img, blens::Imim, InitImage(), img::Low, image::Mat, maxploth, maxplotw, MMenuItemSetSensitive(), MMessageDialog(), MObjectSetBackgroundRGB(), MObjectSetSensitive(), MShellRaise(), OFFLINEPLOT, ON_OFFLINEPLOT, ReadHeader_ASCII(), ReadIMG(), REL_FILE_POS, Server, SwapMatrix(), bil::VFO, viewformobj::View_Sh, and d_fileman::WORKDIRECTORY.
Referenced by D_PButt_CB(), MenuFileOLP_CB(), and ViewPre().
int ViewNext_BIN | ( | int | nf | ) |
Definition at line 2284 of file Spat_Plot.c.
References AbsFilePos, bil::BLENS, CloseFile_BIN(), viewformobj::cmdpb, ContFP, D_AssignLabelPlot(), DB_CloseImage(), DB_InitDil(), bil::DFILEM, DI_ImageProperties(), DI_Regen(), DI_ScanMaxMin(), DOASMODE, das::DOption, bil::DPLOT, d_view::drawapl, DrawButtons(), flag::exemode, Fitem, das::Flag, GrafoIMG(), img::High, optionini::hlineafter, optionini::hlinebefore, d_fileman::HOMEDIRECTORY, IDX, IDY, img::IHigh, img::ILow, img::Imat, d_view::ImatGraf, d_view::ImatOrig, dil::Img, blens::Imim, d_view::Imin, InitImage(), viewformobj::lblmin, img::Low, image::Mat, maxploth, maxplotw, MMenuItemSetSensitive(), MMessageDialog(), MObjectSetBackgroundRGB(), MObjectSetSensitive(), MObjectSetText(), MShellRaise(), OFFLINEPLOT, ON_OFFLINEPLOT, ReadHeader_BIN(), ReadIMG_BIN(), REL_FILE_POS, Server, SwapMatrix(), bil::VFO, viewformobj::View_Sh, and d_fileman::WORKDIRECTORY.
Referenced by D_PButt_CB(), MenuFileOLP_CB(), and ViewPre_BIN().
int ViewPlot | ( | int | mod | ) |
Create the plot shell. Procedure that build the plot shell for the data visualization.
mod |
|
Definition at line 3775 of file Spat_Plot.c.
References _MAX_PATH, alfont, bil::BLENS, BOTTOM_ALIGN, CENTER_ALIGN, ClosePlotCB(), viewformobj::cmdpb, D_pbr_CB(), D_PButt_CB(), DB_AreaInput(), palette::DB_BG, palette::DB_BG_Albl, palette::DB_BG_Plbl, DB_EqTypePlotCB(), palette::DB_FG_Albl, palette::DB_FG_Plbl, palette::DB_UnSel, DB_XUnitsCB(), delay(), dmenu, DOASMODE, das::DOption, bil::DPLOT, d_view::drawapl, DrawAreaPlotCB(), EM_BUTTON_PRESS, paramini::EqType, flag::exec, flag::exemode, F10, False, ffilenames, Fitem, FIXED_SMALL, FLAG, das::Flag, Fmenu, viewformobj::formbutt, HELV_SMALL, optionini::hlineafter, optionini::hlinebefore, IDY, blens::Imim, InitImage(), item_pd, lbl, viewformobj::lblalt, viewformobj::lblAzimuth, viewformobj::lblccdex, viewformobj::lblccdey, viewformobj::lblccdsx, viewformobj::lblccdsy, viewformobj::lblccdtemp, viewformobj::lblccdtexp, viewformobj::lblccdwx, viewformobj::lblccdwy, viewformobj::lbldate, viewformobj::lblfilter, viewformobj::lbllat, viewformobj::lblloc, viewformobj::lbllong, viewformobj::lblmax, viewformobj::lblmin, viewformobj::lblmirpos, viewformobj::lblndfilter, viewformobj::lblnr, viewformobj::lblnummeas, viewformobj::lblsza, viewformobj::lbltime, viewformobj::lblvb, viewformobj::lblwaveleng, viewformobj::lblX, viewformobj::lblY, viewformobj::lblZenith, LEFT_ALIGN, MakeItemUnsensitiveCB(), MAllocImage(), Master, maxploth, maxplotw, MButtonSetOnMouseOverForegroundRGB(), MCreateColForm(), MCreateDrawArea(), MCreateLabel(), MCreateMenu(), MCreateMenuBar(), MCreatePButton(), MCreatePopupMenu(), MCreateRButton(), MCreateRowForm(), MCreateShell(), MCreateSubMenu(), MCreateTableForm(), MD_CreateBRowShell(), MDrawAreaSetExposeCallback(), MDrawAreaSetInputCallback(), menu, MenuFileOLP_CB(), MenuToolsOLP_CB(), MFormSetSpacing(), MGetScreenWidth(), MLabelSetAlignment(), MLabelSetMargin(), MMenuAddItem(), MMenuAddItemObsolete(), MMenuAddRadioItem(), MMenuBarSetAcc(), MMenuItemSetCheckStatus(), MObjectAddEventNotifyCallback(), MObjectAlign(), MObjectGetHeight(), MObjectGetWidth(), MObjectSetBackgroundRGB(), MObjectSetColor(), MObjectSetCompositeWidth(), MObjectSetFont(), MObjectSetForegroundRGB(), MObjectSetResize(), MObjectSetSensitive(), MObjectSetShadow(), MObjectSetTransparency(), MObjectSetUnsensitive(), MObjectUnmap(), MPButtonSetCallback(), MRButtonActivate(), MShellRealizeXY(), MTableFormSetColAlign(), MTableFormSetRowAlign(), MTCL, OFFLINEPLOT, d_view::OLDnR, ON_OFFLINEPLOT, Optmenu, das::Paramini, d_view::pbr, PButtSelAll_CB(), PBYScale_CB(), mtcl::PLColor, plfont, flag::plotYRange, PopUp_CB(), popup_pd, PopupMenuCB(), PrgFile, RIGHT_ALIGN, viewformobj::selallpb, submenu, Titem, Tmenu, TOP_ALIGN, True, UNDEF_ALIGN, bil::VFO, viewformobj::View_Sh, mtcl::white, flag::Wl, WS_ETCHED_IN, WS_NONE, WS_SHADOW_IN, viewformobj::XAxisU, viewformobj::xincr, viewformobj::xloc, viewformobj::yincr, viewformobj::yloc, and viewformobj::YScalePB.
Referenced by D_Plot(), DB_HorComm_CB(), DB_KeyB_CB(), E_Plot(), RunOLP(), and ViewCB().
int ViewPre | ( | FILE * | nf, |
long | position | ||
) |
Definition at line 2241 of file Spat_Plot.c.
References ContFP, MMessageDialog(), and ViewNext().
Referenced by D_PButt_CB(), and MenuFileOLP_CB().
int ViewPre_BIN | ( | int | nf, |
long | position | ||
) |
Definition at line 2263 of file Spat_Plot.c.
References ContFP, MMessageDialog(), and ViewNext_BIN().
Referenced by D_PButt_CB(), and MenuFileOLP_CB().
int Visualizza | ( | int | mod, |
char * | nomefile | ||
) |
Definition at line 2069 of file Spat_Plot.c.
References AllocUSMat(), CCD_INFO, config::CCDType, viewformobj::cmdpb, D_AssignLabelPlot(), DB_InitDil(), DC_LoadCameraConfig(), DC_OpenPar(), DC_RWData(), bil::DFILEM, DI_ImageProperties(), DI_Regen(), DI_ScanMaxMin(), DOASMODE, das::DOption, bil::DPLOT, DrawButtons(), flag::exemode, FBIF, FDAT, Fitem, das::Flag, Fmenu, GrafoIMG(), img::High, optionini::hlineafter, optionini::hlinebefore, d_fileman::HOMEDIRECTORY, IDX, IDY, img::IHigh, img::ILow, img::Imat, d_view::ImatGraf, d_view::ImatOrig, dil::Img, d_view::Imin, viewformobj::lblmin, img::Low, MakeItemSensitiveCB(), MakeItemUnsensitiveCB(), image::Mat, MMenuItemSetSensitive(), MMenuItemSetUnsensitive(), MMessageDialog(), MObjectSetSensitive(), MObjectSetText(), MObjectSetUnsensitive(), MShellRaise(), MShellSetTitle(), NFDATI, NUMFDATI, O_BINARY, OFFLINEPLOT, ON_OFFLINEPLOT, config::Platform, PTF_INFO, READ_DATA, ReadHeader_ASCII(), ReadHeader_BIN(), ReadIMG(), ReadIMG_BIN(), REL_FILE_POS, viewformobj::selallpb, Server, SwapMatrix(), bil::VFO, viewformobj::View_Sh, d_fileman::WORKDIRECTORY, and viewformobj::YScalePB.
Referenced by D_PButt_CB(), MenuFileOLP_CB(), and RunOLP().
void WriteIMG | ( | FILE * | file, |
unsigned short * | mat, | ||
int | hp, | ||
int | vp | ||
) |
Definition at line 1178 of file Spat_Plot.c.
Referenced by SaveDataOffLine().
void WriteIMG_BIN | ( | int | fd, |
unsigned short * | mat, | ||
int | hp, | ||
int | vp | ||
) |
Definition at line 1153 of file Spat_Plot.c.
Referenced by SaveDataOffLine().
int X2Counts | ( | int | x | ) |
Definition at line 178 of file Spat_Plot.c.
References d_view::COSTX, bil::DPLOT, and d_view::oX.
Referenced by DB_AreaInput().
unsigned int Y2Counts | ( | int | y | ) |
Definition at line 190 of file Spat_Plot.c.
References d_view::COSTY, bil::DPLOT, d_view::Imin, and d_view::oY.
Referenced by DB_AreaInput().
MTFont alfont |
Definition at line 41 of file Spat_Plot.c.
Referenced by ViewPlot().
bil BIL |
Definition at line 35 of file Spat_Plot.c.
config Cfg |
Definition at line 27 of file Spat_Plot.c.
das DAS |
DAS structure.
Definition at line 39 of file Spat_Plot.c.
ccd DC_CCD |
Definition at line 25 of file Spat_Plot.c.
ptf DC_HP |
Definition at line 26 of file Spat_Plot.c.
dil DIL |
Definition at line 28 of file Spat_Plot.c.
doas DOAS |
Definition at line 37 of file Spat_Plot.c.
palette DPAL |
Definition at line 29 of file Spat_Plot.c.
char* ffilenames[] |
Definition at line 3572 of file Spat_Plot.c.
Referenced by ViewPlot().
MENU_ITEM Fitem[6] |
Definition at line 46 of file Spat_Plot.c.
Referenced by CloseFile(), CloseFile_BIN(), ViewNext(), ViewNext_BIN(), ViewPlot(), and Visualizza().
int flagclear = 0 |
Definition at line 3581 of file Spat_Plot.c.
Referenced by PopUp_CB().
MOBJECT Fmenu |
Definition at line 47 of file Spat_Plot.c.
Referenced by ViewPlot(), and Visualizza().
MENU_ITEM item_pd |
Definition at line 3571 of file Spat_Plot.c.
Referenced by ViewPlot().
unsigned int* mattempbuff |
Definition at line 2064 of file Spat_Plot.c.
int maxploth |
Definition at line 51 of file Spat_Plot.c.
Referenced by D_DoLens(), DrawAreaPlotCB(), LoadIo(), RefreshDrArea(), ViewNext(), ViewNext_BIN(), and ViewPlot().
int maxplotw |
Definition at line 51 of file Spat_Plot.c.
Referenced by DrawAreaPlotCB(), LoadIo(), RefreshDrArea(), ViewNext(), ViewNext_BIN(), and ViewPlot().
MTFont newfont |
Definition at line 41 of file Spat_Plot.c.
char NFileNameF[32] |
Definition at line 71 of file CreateForms.c.
Referenced by D_PButt_CB(), DB_HorComm_CB(), DB_KeyB_CB(), and PopUp_CB().
MOBJECT Optmenu |
Definition at line 47 of file Spat_Plot.c.
Referenced by ViewPlot().
MTFont plfont |
Definition at line 41 of file Spat_Plot.c.
Referenced by ViewPlot().
MOBJECT popup_pd |
Definition at line 3570 of file Spat_Plot.c.
Referenced by ViewPlot().
MENU_ITEM Titem[4] |
Definition at line 46 of file Spat_Plot.c.
Referenced by ViewPlot().
MOBJECT Tmenu |
Definition at line 47 of file Spat_Plot.c.
Referenced by ViewPlot().