DAS
3.1.6 - 18/09/2017
|
#include "bildef.h"
Go to the source code of this file.
Functions | |
float * | AllocFloatMat (int hp, int vp) |
unsigned short * | AllocUSMat (int hp, int vp) |
void | CloseFile (FILE *fd, int hp, int vp) |
void | D_DoLens (MIMAGE lensmim, MOBJECT lensdraw, int lenswx, int lenswy, int lenspix, int sx, int sy) |
void | D_Lens (void) |
void | D_pbr_CB (MOBJECT p, void *od, void *ad) |
void | D_VRange (char *str, int val, int, int g, int b) |
Create and display the status bar. More... | |
void | DB_AreaInput (MOBJECT obj, MEvent *pe, void *a_data) |
float * | DeallocFloatMat (float *mat) |
unsigned short * | DeallocUSMat (unsigned short *mat) |
int | DrawAreaExposeCB (MOBJECT obj, MEvent *pexp, void *a_data) |
int | FilterData (unsigned short *mat, int horpix, int verpix, int filw, int bp) |
void | GrafoIMG (int mode) |
void | InitImage (MIMAGE img, int xd, int yd, int rb, int gb, int bb) |
MOBJECT | MDCreateFM_Shell (int mod, int fmt) |
int | PrintObject (MOBJECT obj, int mode, int x, int y) |
void | SetupPrinter (void) |
int | ViewNext (FILE *nf) |
int | ViewNext_BIN (int nf) |
int | Visualizza (int mod, char *nomefile) |
int | WhoSys (void) |
Variables | |
bil | BIL |
int | maxploth |
int | maxplotw |
double | NColors |
MTFont | newfont |
int | NFDATI |
FILE * | NUMFDATI |
omutemp | OMUTEMP |
structure for OMU temperatures More... | |
viewformobj | VFO |
float* AllocFloatMat | ( | int | hp, |
int | vp | ||
) |
Definition at line 2009 of file Spat_Plot.c.
Referenced by BrowseLog(), BuildLogRatio(), InitTempAD(), RunLogMode(), and WriteSelColandSmoothed().
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 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 D_DoLens | ( | MIMAGE | lensmim, |
MOBJECT | lensdraw, | ||
int | lenswx, | ||
int | lenswy, | ||
int | lenspix, | ||
int | sx, | ||
int | sy | ||
) |
Definition at line 29 of file D_Zoom.c.
References BIL, bil::BLENS, mtcl::blue, bil::DPLOT, d_view::Imax, blens::Imim, d_view::Imin, maxploth, MDrawBox(), MDrawImage(), MDrawLine(), MImageGetPixelRGB(), MImageSetPixelRGB(), MInstallImage(), MTCL, MUninstallImage(), and p.
Referenced by D_LensResizeCB(), D_LensZoom(), D_To_DoLens(), and DB_AreaInput().
void D_Lens | ( | void | ) |
Definition at line 138 of file D_Zoom.c.
References BIL, bil::BLENS, D_LensCloseCB(), D_LensResizeCB(), D_LensZoom(), D_To_DoLens(), False, HELV_SMALL, lbl, blens::LensDraw, blens::LensLbl, blens::LensLblX, blens::LensLblY, blens::LensMim, blens::LensON, blens::LensPix, LensShell, blens::LensWx, blens::LensWy, MAllocImage(), Maxx, MAXZOOM, MCreateColForm(), MCreateDrawArea(), MCreateLabel(), MCreateRowForm(), MCreateScrollBar(), MCreateShell(), MDrawAreaSetExposeCallback(), MDrawAreaSetResizeCallback(), MGetScreenWidth(), MObjectSetBackgroundRGB(), MObjectSetResize(), MObjectSetShadow(), MScrollBarSetPos(), MScrollBarSetPosCallback(), MShellRaise(), MShellRealize(), MShellSetWMCloseCallback(), newfont, SBT_HOR, SF_NO_MAXIMIZE, SF_NO_MINIMIZE, True, and WS_NONE.
Referenced by D_PButt_CB(), and MenuToolsOLP_CB().
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_VRange | ( | char * | str, |
int | val, | ||
int | r, | ||
int | g, | ||
int | b | ||
) |
Create and display the status bar.
*str | string as title of the status bar |
val | value of the progressive index |
r | red color id (0-255) |
g | green color id (0-255) |
b | blu color id (0-255) |
Definition at line 206 of file Utils.c.
Referenced by AMS_DoPos(), D_Homing(), D_Positioning(), DB_Column(), DB_MirrorX(), DB_ScanMaxMin(), DemoInitMotor(), EleDatOrBinFormat(), HomeAzimFast(), HomeFiltersFast(), HomeNDFiltersFast(), and HomeTrack().
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().
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().
int FilterData | ( | unsigned short * | mat, |
int | horpix, | ||
int | verpix, | ||
int | filw, | ||
int | bp | ||
) |
Definition at line 250 of file FFT.c.
References IDX, and SmoothingF().
Referenced by BuildLogRatio(), DB_Column(), and DrawAreaPlotCB().
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().
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().
MOBJECT MDCreateFM_Shell | ( | int | mod, |
int | fmt | ||
) |
Definition at line 407 of file DFileMan.c.
References _MAX_PATH, CENTER_ALIGN, ChDriveCB(), D_FInpFDCB(), D_FMDoneCB(), palette::DB_BG, palette::DB_BG_Albl, palette::DB_FG_Plbl, palette::DB_UnSel, bil::DFILEM, DFileType(), DFMSelListCB(), DFMT, DPAL, DRV, False, FList, FMDONE, fmfont, FMINIT, lbl, LEFT_ALIGN, MCreateClippedEdit(), MCreateColForm(), MCreateLabel(), MCreatePButton(), MCreateRButton(), MCreateRowForm(), MCreateShell(), MCreateSList(), MCreateTableForm(), MEditSetActCallback(), MFormSetSpacing(), MLabelSetAlignment(), MLoopWhileFlag(), MObjectAlign(), MObjectSetBackgroundRGB(), MObjectSetForegroundRGB(), MObjectSetResize(), MObjectSetText(), MObjectSetUnsensitive(), MPButtonSetCallback(), MRButtonActivate(), MRButtonSetCallback(), MShellDestroy(), MShellRealizeXY(), MShellUnrealize(), MSListSetSelectionCallback(), MSListSetSortCallback(), MTableFormSetColAlign(), MTableFormSetRowAlign(), Row1, Row2, SELDRV, SF_MODAL, ShowFileDrive(), tb1, TOP_ALIGN, True, txtfile, txtpath, WhoSys(), and d_fileman::WORKDIRECTORY.
Referenced by DT_CorrFileEvora(), DT_CorrHeader(), DT_FluxIndex(), DT_LinkSpectra(), MenuFileOLP_CB(), and SetAsIo().
int PrintObject | ( | MOBJECT | obj, |
int | mode, | ||
int | x, | ||
int | y | ||
) |
Definition at line 37 of file D_print.c.
References False, MMessageDialog(), MObjectGetHeight(), MObjectGetWidth(), MObjectRedraw(), and MShellRaise().
Referenced by D_PButt_CB(), and MenuToolsOLP_CB().
void SetupPrinter | ( | void | ) |
Definition at line 14 of file D_print.c.
References MMessageDialog().
Referenced by D_PButt_CB(), and MenuToolsOLP_CB().
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 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().
int WhoSys | ( | void | ) |
Definition at line 306 of file DFileMan.c.
Referenced by DB_InitCamera(), and MDCreateFM_Shell().
bil BIL |
Definition at line 28 of file 2DPlot.c.
Referenced by BuildLogRatio(), D_DoLens(), D_Lens(), D_LensCloseCB(), D_LensResizeCB(), D_LensZoom(), D_To_DoLens(), DB_InitCamera(), DB_InitDil(), LoadDasSysCol(), LoadDB_DispCoeff(), LoadDB_Options(), LoadEquipment(), LoadFTPSetting(), LoadGeoCoord(), LoadGeoDB(), LoadHardware(), LoadParam(), LoadTestPalette(), and LoadTruePalette().
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().
double NColors |
MTFont newfont |
Definition at line 95 of file CreateForms.c.
Referenced by D_Lens(), and DB_TestF().
int NFDATI |
Definition at line 27 of file Bil.h.
Referenced by D_PButt_CB(), MenuFileOLP_CB(), and Visualizza().
FILE* NUMFDATI |
Definition at line 26 of file Bil.h.
Referenced by D_PButt_CB(), MenuFileOLP_CB(), and Visualizza().
viewformobj VFO |