DAS
3.1.6 - 18/09/2017
|
2DPlot window Creation and callbacks for the 2DPlot window that plot the parameters in the DAS LOG files. More...
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <malloc.h>
#include <math.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 | |
void | D2D_AreaInputTemp (MOBJECT obj, MEvent *pe, void *a_data) |
void | D2D_AssignOrigin (MOBJECT obj) |
int | D2D_findmaxmin (float plotmat[], int xinf, int xsup, int yinf, int ysup) |
void | D2D_PlotAxis (MOBJECT ob, int sx, int sy, int ex, int ey, MTColor col) |
void | D2D_PlotGrid (MOBJECT ob, MIMAGE mim, int sx, int sy, int ex, int ey, int nx, int ny) |
void | D2D_PlotSpectrum (MOBJECT obj, float plotmat[], int idx, int idy, unsigned long pe[], double costx, double costy, int min, int max, int ox, int oy) |
void | D2D_PoslblX (MOBJECT lbl, int xs, int xe, int xc) |
void | D2D_PoslblY (float l, float h) |
int | D2D_X2Counts (int x) |
double | D2D_Y2Counts (int y) |
int | DrawAreaTempCB (MOBJECT obj, MEvent *pexp, void *a_data) |
MOBJECT | MDCreate_2DPlot (char *title) |
2DPlot Panel. Procedure that build the shell for the plotting of the LOG files. More... | |
int | RefreshDrArea (MOBJECT obj) |
Redraw the draw arwa in a 2D Plot window. More... | |
void | ToggleButtCB (MOBJECT p, MVALUE od, void *ad) |
Variables | |
bil | BIL |
dil | DIL |
palette | DPAL |
mtcl | MTCL |
omutemp | OMUTEMP |
2DPlot window Creation and callbacks for the 2DPlot window that plot the parameters in the DAS LOG files.
Definition in file 2DPlot.c.
Definition at line 66 of file 2DPlot.c.
References D2D_X2Counts(), D2D_Y2Counts(), E_BUTTON_PRESS, E_BUTTON_RELEASE, E_MOTION, E_SELECT, E_WINDOW_ENTER, E_WINDOW_EXIT, omutemp::LBL_X, omutemp::LBL_Y, omutemp::locx, omutemp::locy, MDrawXorBox(), MDrawXorLine(), MObjectGetHeight(), MObjectGetWidth(), MObjectSetText(), MObjectShell(), MEvent::mouse, p, MMouseEvent::state, MEvent::type, MMouseEvent::x, and MMouseEvent::y.
Referenced by MDCreate_2DPlot().
void D2D_AssignOrigin | ( | MOBJECT | obj | ) |
Definition at line 161 of file 2DPlot.c.
References omutemp::eX, omutemp::eY, omutemp::hsize, MObjectGetHeight(), MObjectGetWidth(), omutemp::oX, omutemp::oY, and omutemp::wsize.
Referenced by RefreshDrArea().
int D2D_findmaxmin | ( | float | plotmat[], |
int | xinf, | ||
int | xsup, | ||
int | yinf, | ||
int | ysup | ||
) |
Definition at line 245 of file 2DPlot.c.
References MTButtonGetActivationStatus(), omutemp::tgb, omutemp::tmax, and omutemp::tmin.
Referenced by RefreshDrArea().
Definition at line 177 of file 2DPlot.c.
References MDrawLine().
Referenced by RefreshDrArea().
Definition at line 207 of file 2DPlot.c.
References mtcl::green, MDrawLine(), and mtcl::white.
Referenced by RefreshDrArea().
void D2D_PlotSpectrum | ( | MOBJECT | obj, |
float | plotmat[], | ||
int | idx, | ||
int | idy, | ||
unsigned long | pe[], | ||
double | costx, | ||
double | costy, | ||
int | min, | ||
int | max, | ||
int | ox, | ||
int | oy | ||
) |
Definition at line 392 of file 2DPlot.c.
References MDrawLine(), MTButtonGetActivationStatus(), and omutemp::tgb.
Referenced by RefreshDrArea().
void D2D_PoslblX | ( | MOBJECT | lbl, |
int | xs, | ||
int | xe, | ||
int | xc | ||
) |
Definition at line 307 of file 2DPlot.c.
References omutemp::lblx, MObjectMap(), and MObjectSetText().
Referenced by RefreshDrArea().
void D2D_PoslblY | ( | float | l, |
float | h | ||
) |
Definition at line 371 of file 2DPlot.c.
References omutemp::lbly, and MObjectSetText().
Referenced by RefreshDrArea().
int D2D_X2Counts | ( | int | x | ) |
Definition at line 41 of file 2DPlot.c.
References omutemp::COSTX, omutemp::dimx, omutemp::oX, omutemp::ptimeMat, and dtime::ti_hour.
Referenced by D2D_AreaInputTemp().
double D2D_Y2Counts | ( | int | y | ) |
Definition at line 53 of file 2DPlot.c.
References omutemp::COSTY, omutemp::oY, and omutemp::tmin.
Referenced by D2D_AreaInputTemp().
Definition at line 462 of file 2DPlot.c.
References RefreshDrArea().
Referenced by MDCreate_2DPlot().
MOBJECT MDCreate_2DPlot | ( | char * | title | ) |
2DPlot Panel. Procedure that build the shell for the plotting of the LOG files.
Definition at line 473 of file 2DPlot.c.
References _shell000, CENTER_ALIGN, D2D_AreaInputTemp(), palette::DB_BG, palette::DB_BG_Albl, palette::DB_BG_lblUP, palette::DB_BG_Plbl, palette::DB_BG_RButt, palette::DB_FG_Albl, palette::DB_FG_lblUP, palette::DB_FG_Plbl, palette::DB_FG_RButt, omutemp::drawarea000, DrawAreaTempCB(), F_ATT_FORM, False, HELV_SMALL, lbl, omutemp::LBL_X, omutemp::LBL_Y, omutemp::lblx, omutemp::lbly, LEFT_ALIGN, MCreateColForm(), MCreateDrawArea(), MCreateLabel(), MCreateRowForm(), MCreateScrollBar(), MCreateShell(), MCreateTableForm(), MCreateTButton(), MDrawAreaSetExposeCallback(), MDrawAreaSetInputCallback(), MFormSetSpacing(), MObjectAlign(), MObjectSetBackgroundRGB(), MObjectSetFGColorFromParent(), MObjectSetForegroundRGB(), MObjectSetResize(), MObjectSetShadow(), MObjectSetTransparency(), MObjectUnmap(), MScrollBarSetSliderColorShift(), MTableFormSetColAlign(), MTButtonSetCallback(), MTopAttach(), SBT_HOR, SBT_VERT, omutemp::tgb, ToggleButtCB(), TOP_ALIGN, True, WS_SHADOW_IN, and WS_SHADOW_OUT.
Referenced by MDCreate2DPlot().
int RefreshDrArea | ( | MOBJECT | obj | ) |
Redraw the draw arwa in a 2D Plot window.
Definition at line 428 of file 2DPlot.c.
References mtcl::black, bil::BLENS, omutemp::COSTX, omutemp::COSTY, D2D_AssignOrigin(), D2D_findmaxmin(), D2D_PlotAxis(), D2D_PlotGrid(), D2D_PlotSpectrum(), D2D_PoslblX(), D2D_PoslblY(), omutemp::dimx, omutemp::dimy, omutemp::eX, omutemp::eY, blens::Imim, omutemp::lblx, maxploth, maxplotw, MObjectGetHeight(), MObjectGetWidth(), omutemp::oX, omutemp::oY, mtcl::PLColor, omutemp::pTempMat, omutemp::ptimeMat, dtime::ti_hour, omutemp::tmax, and omutemp::tmin.
Referenced by DrawAreaTempCB(), and ToggleButtCB().
Definition at line 420 of file 2DPlot.c.
References omutemp::drawarea000, MObjectRedraw(), and RefreshDrArea().
Referenced by MDCreate_2DPlot().
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().
dil DIL |
Definition at line 26 of file 2DPlot.c.
Referenced by AutoR_No_Shutt(), AutoR_TestMeas(), AutoR_With_Shutt(), D_Average(), D_AverageTFix(), D_BuildH(), D_Calibra(), D_save_asc(), D_save_bif(), D_save_bin(), DB_GetCCD(), DB_InitCamera(), DB_MirrorX(), DB_Save(), DB_ScanMaxMin(), E_Dark(), MaskCol(), MaskPix(), MaskRow(), MDCreateExpo(), and RemoveBlindPixels().
palette DPAL |
Definition at line 27 of file 2DPlot.c.
Referenced by AboutCB(), AMS_Error(), CCD_Error(), ComErrors(), DAS_Message(), DSCAD_Error(), Master_Error(), MDCreateFM_Shell(), MDCreatesh_vitesa(), and Message().
mtcl MTCL |
Definition at line 30 of file 2DPlot.c.
Referenced by D_DoLens(), D_pbr_CB(), D_PlotGrid(), D_PlotOneLine(), DrawAreaPlotCB(), DrawImg(), LoadIo(), LoadTestPalette(), LoadTruePalette(), MD_CreateBRowShell(), PlotSpectrum(), and ViewPlot().