Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Compound Members | File Members

clConvPic Class Reference

Conversion of .tif + .tif.inf to image containing information in the .inf file. More...

#include <ConvPic.hh>

Collaboration diagram for clConvPic:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 clConvPic ()
 ~clConvPic ()
int Main (int *, char ***)

Private Member Functions

bool Initialize ()
bool LoadLOFARInfo (const char *)
bool LoadDEMONInfo (const char *)
bool LoadSGramInfo (const char *)
bool LoadTBearInfo (const char *)
bool LoadAndCreate (const char *)
bool CopySource ()
bool DrawLOFARInfo ()
bool DrawDEMONInfo ()
bool DrawSGramInfo ()
bool DrawTBearInfo ()
bool ConvertColors ()
bool SaveResult (const char *)
void Clean ()
void SplitLine (const char *, string &, string &)
time_t ParseTime (const char *)
double RadToDeg (double)
void GetTextSize (const char *, int *, int *, int *=NULL)

Private Attributes

bool bTwoColor
int iType
int iSrcWidth
int iSrcHeight
int iDstWidth
int iDstHeight
char * cpPageSize
utPicInfo uPicInfo
Image * ImgSrc
Image * ImgDst

Detailed Description

Conversion of .tif + .tif.inf to image containing information in the .inf file.

Definition at line 122 of file ConvPic.hh.


Constructor & Destructor Documentation

clConvPic::clConvPic  ) 
 

Definition at line 950 of file ConvPic.cc.

References bTwoColor, cpPageSize, and iType.

clConvPic::~clConvPic  ) 
 

Definition at line 958 of file ConvPic.cc.


Member Function Documentation

bool clConvPic::Initialize  )  [private]
 

Definition at line 43 of file ConvPic.cc.

Referenced by Main().

bool clConvPic::LoadLOFARInfo const char *   )  [private]
 

Definition at line 49 of file ConvPic.cc.

References _stLOFARInfo::dHighFreq, _stLOFARInfo::dLineTime, _stLOFARInfo::dLowFreq, ParseTime(), _uPicInfo::sLOFAR, SplitLine(), _stLOFARInfo::ttTime, and uPicInfo.

Referenced by Main().

bool clConvPic::LoadDEMONInfo const char *   )  [private]
 

Definition at line 85 of file ConvPic.cc.

References _stDEMONInfo::dDEMONBand, _stDEMONInfo::dHighFreq, _stDEMONInfo::dLineTime, _stDEMONInfo::dLowFreq, ParseTime(), _uPicInfo::sDEMON, SplitLine(), _stDEMONInfo::ttTime, and uPicInfo.

Referenced by Main().

bool clConvPic::LoadSGramInfo const char *   )  [private]
 

Definition at line 123 of file ConvPic.cc.

References _stSGramInfo::dHighFreq, _stSGramInfo::dLineTime, _stSGramInfo::dLowFreq, ParseTime(), SplitLine(), _uPicInfo::sSGram, _stSGramInfo::ttTime, and uPicInfo.

Referenced by Main().

bool clConvPic::LoadTBearInfo const char *   )  [private]
 

Definition at line 159 of file ConvPic.cc.

References _stTBearInfo::dHighFreq, _stTBearInfo::dIntTime, _stTBearInfo::dLeftDir, _stTBearInfo::dRightDir, _stTBearInfo::iSectors, ParseTime(), SplitLine(), _uPicInfo::sTBear, _stTBearInfo::ttTime, and uPicInfo.

Referenced by Main().

bool clConvPic::LoadAndCreate const char *   )  [private]
 

Definition at line 199 of file ConvPic.cc.

References bTwoColor, CP_FONT_NAME, CP_MARGIN_B, CP_MARGIN_L, CP_MARGIN_R, CP_MARGIN_T, CP_PAGE_SPEC, cpPageSize, iDstHeight, iDstWidth, ImgDst, ImgSrc, iSrcHeight, and iSrcWidth.

Referenced by Main().

bool clConvPic::CopySource  )  [private]
 

Definition at line 270 of file ConvPic.cc.

References CP_MARGIN_L, CP_MARGIN_T, ImgDst, ImgSrc, iSrcHeight, and iSrcWidth.

Referenced by Main().

bool clConvPic::DrawLOFARInfo  )  [private]
 

Definition at line 291 of file ConvPic.cc.

References CP_FONT_LARGE, CP_FONT_NORMAL, CP_FONT_SMALL, CP_MARGIN_L, CP_MARGIN_T, CP_TICKL_LEN, CP_TICKS_LEN, _stLOFARInfo::dHighFreq, _stLOFARInfo::dLineTime, _stLOFARInfo::dLowFreq, GetTextSize(), ImgDst, iSrcHeight, iSrcWidth, _uPicInfo::sLOFAR, _stLOFARInfo::ttTime, and uPicInfo.

Referenced by Main().

bool clConvPic::DrawDEMONInfo  )  [private]
 

Definition at line 417 of file ConvPic.cc.

References CP_FONT_LARGE, CP_FONT_NORMAL, CP_FONT_SMALL, CP_MARGIN_L, CP_MARGIN_T, CP_TICKL_LEN, CP_TICKS_LEN, _stDEMONInfo::dDEMONBand, _stDEMONInfo::dHighFreq, _stDEMONInfo::dLineTime, _stDEMONInfo::dLowFreq, GetTextSize(), ImgDst, iSrcHeight, iSrcWidth, _uPicInfo::sDEMON, _stDEMONInfo::ttTime, and uPicInfo.

Referenced by Main().

bool clConvPic::DrawSGramInfo  )  [private]
 

Definition at line 543 of file ConvPic.cc.

References CP_FONT_LARGE, CP_FONT_NORMAL, CP_FONT_SMALL, CP_MARGIN_L, CP_MARGIN_T, CP_TICKL_LEN, CP_TICKS_LEN, _stSGramInfo::dHighFreq, _stSGramInfo::dLineTime, _stSGramInfo::dLowFreq, GetTextSize(), ImgDst, iSrcHeight, iSrcWidth, _uPicInfo::sSGram, _stSGramInfo::ttTime, and uPicInfo.

Referenced by Main().

bool clConvPic::DrawTBearInfo  )  [private]
 

Definition at line 683 of file ConvPic.cc.

References CP_FONT_LARGE, CP_FONT_NORMAL, CP_FONT_SMALL, CP_MARGIN_L, CP_MARGIN_T, CP_TICKL_LEN, CP_TICKS_LEN, _stTBearInfo::dIntTime, _stTBearInfo::dLeftDir, _stTBearInfo::dRightDir, GetTextSize(), ImgDst, _stTBearInfo::iSectors, iSrcHeight, iSrcWidth, RadToDeg(), _uPicInfo::sTBear, _stTBearInfo::ttTime, and uPicInfo.

Referenced by Main().

bool clConvPic::ConvertColors  )  [private]
 

Definition at line 804 of file ConvPic.cc.

References ImgDst.

Referenced by Main().

bool clConvPic::SaveResult const char *   )  [private]
 

Definition at line 841 of file ConvPic.cc.

References cpPageSize, and ImgDst.

Referenced by Main().

void clConvPic::Clean  )  [private]
 

Definition at line 864 of file ConvPic.cc.

References ImgDst, and ImgSrc.

Referenced by Main().

void clConvPic::SplitLine const char *  ,
string &  ,
string & 
[private]
 

Definition at line 878 of file ConvPic.cc.

Referenced by LoadDEMONInfo(), LoadLOFARInfo(), LoadSGramInfo(), and LoadTBearInfo().

time_t clConvPic::ParseTime const char *   )  [private]
 

Definition at line 895 of file ConvPic.cc.

Referenced by LoadDEMONInfo(), LoadLOFARInfo(), LoadSGramInfo(), and LoadTBearInfo().

double clConvPic::RadToDeg double   )  [inline, private]
 

Definition at line 923 of file ConvPic.cc.

Referenced by DrawTBearInfo().

void clConvPic::GetTextSize const char *  ,
int *  ,
int *  ,
int *  = NULL
[private]
 

Definition at line 929 of file ConvPic.cc.

References ImgDst.

Referenced by DrawDEMONInfo(), DrawLOFARInfo(), DrawSGramInfo(), and DrawTBearInfo().

int clConvPic::Main int *  ,
char *** 
 

Definition at line 963 of file ConvPic.cc.

References bTwoColor, Clean(), ConvertColors(), CopySource(), CP_TYPE_DEMON, CP_TYPE_LOFAR, CP_TYPE_SGRAM, CP_TYPE_TBEAR, cpPageSize, DrawDEMONInfo(), DrawLOFARInfo(), DrawSGramInfo(), DrawTBearInfo(), Initialize(), iType, LoadAndCreate(), LoadDEMONInfo(), LoadLOFARInfo(), LoadSGramInfo(), LoadTBearInfo(), and SaveResult().

Referenced by main().


Member Data Documentation

bool clConvPic::bTwoColor [private]
 

Definition at line 124 of file ConvPic.hh.

Referenced by clConvPic(), LoadAndCreate(), and Main().

int clConvPic::iType [private]
 

Definition at line 125 of file ConvPic.hh.

Referenced by clConvPic(), and Main().

int clConvPic::iSrcWidth [private]
 

Definition at line 126 of file ConvPic.hh.

Referenced by CopySource(), DrawDEMONInfo(), DrawLOFARInfo(), DrawSGramInfo(), DrawTBearInfo(), and LoadAndCreate().

int clConvPic::iSrcHeight [private]
 

Definition at line 127 of file ConvPic.hh.

Referenced by CopySource(), DrawDEMONInfo(), DrawLOFARInfo(), DrawSGramInfo(), DrawTBearInfo(), and LoadAndCreate().

int clConvPic::iDstWidth [private]
 

Definition at line 128 of file ConvPic.hh.

Referenced by LoadAndCreate().

int clConvPic::iDstHeight [private]
 

Definition at line 129 of file ConvPic.hh.

Referenced by LoadAndCreate().

char* clConvPic::cpPageSize [private]
 

Definition at line 130 of file ConvPic.hh.

Referenced by clConvPic(), LoadAndCreate(), Main(), and SaveResult().

utPicInfo clConvPic::uPicInfo [private]
 

Definition at line 131 of file ConvPic.hh.

Referenced by DrawDEMONInfo(), DrawLOFARInfo(), DrawSGramInfo(), DrawTBearInfo(), LoadDEMONInfo(), LoadLOFARInfo(), LoadSGramInfo(), and LoadTBearInfo().

Image* clConvPic::ImgSrc [private]
 

Definition at line 132 of file ConvPic.hh.

Referenced by Clean(), CopySource(), and LoadAndCreate().

Image* clConvPic::ImgDst [private]
 

Definition at line 133 of file ConvPic.hh.

Referenced by Clean(), ConvertColors(), CopySource(), DrawDEMONInfo(), DrawLOFARInfo(), DrawSGramInfo(), DrawTBearInfo(), GetTextSize(), LoadAndCreate(), and SaveResult().


The documentation for this class was generated from the following files:
Generated on Sun Oct 26 19:12:15 2003 for HASAS by doxygen 1.3.3