NCBI C++ ToolKit
Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
CCountryLine Class Reference

Search Toolkit Book for CCountryLine

#include <objects/seqfeat/SubSource.hpp>

+ Collaboration diagram for CCountryLine:

Public Member Functions

 CCountryLine (const string &country_name, double y, double min_x, double max_x, double scale)
 
 ~CCountryLine (void)
 
const stringGetCountry (void) const
 
double GetLat (void) const
 
double GetMinLon (void) const
 
double GetMaxLon (void) const
 
int GetY (void) const
 
int GetMinX (void) const
 
int GetMaxX (void) const
 
void SetBlock (CCountryExtreme *block)
 
CCountryExtremeGetBlock (void) const
 

Static Public Member Functions

static int ConvertLat (double y, double scale)
 
static int ConvertLon (double x, double scale)
 

Private Member Functions

int x_ConvertLat (double y)
 
int x_ConvertLon (double x)
 

Private Attributes

CCountryExtremem_Block
 
string m_CountryName
 
int m_Y
 
int m_MinX
 
int m_MaxX
 
double m_Scale
 

Detailed Description

Definition at line 372 of file SubSource.hpp.

Constructor & Destructor Documentation

◆ CCountryLine()

CCountryLine::CCountryLine ( const string country_name,
double  y,
double  min_x,
double  max_x,
double  scale 
)

Definition at line 5294 of file SubSource.cpp.

References m_MaxX, m_MinX, m_Y, x_ConvertLat(), and x_ConvertLon().

◆ ~CCountryLine()

CCountryLine::~CCountryLine ( void  )

Definition at line 5306 of file SubSource.cpp.

Member Function Documentation

◆ ConvertLat()

int CCountryLine::ConvertLat ( double  y,
double  scale 
)
static

Definition at line 5313 of file SubSource.cpp.

References EPSILON, int, and val.

Referenced by CLatLonMap_Base::IsCountryInLatLon(), CLatLonMap_Base::IsNearLatLon(), and x_ConvertLat().

◆ ConvertLon()

int CCountryLine::ConvertLon ( double  x,
double  scale 
)
static

◆ GetBlock()

CCountryExtreme* CCountryLine::GetBlock ( void  ) const
inline

Definition at line 390 of file SubSource.hpp.

References m_Block.

◆ GetCountry()

const string& CCountryLine::GetCountry ( void  ) const
inline

Definition at line 378 of file SubSource.hpp.

References m_CountryName.

◆ GetLat()

double CCountryLine::GetLat ( void  ) const
inline

Definition at line 379 of file SubSource.hpp.

References m_Scale, and m_Y.

◆ GetMaxLon()

double CCountryLine::GetMaxLon ( void  ) const
inline

Definition at line 381 of file SubSource.hpp.

References m_MaxX, and m_Scale.

◆ GetMaxX()

int CCountryLine::GetMaxX ( void  ) const
inline

Definition at line 384 of file SubSource.hpp.

References m_MaxX.

Referenced by CCountryExtreme::AddLine().

◆ GetMinLon()

double CCountryLine::GetMinLon ( void  ) const
inline

Definition at line 380 of file SubSource.hpp.

References m_MinX, and m_Scale.

◆ GetMinX()

int CCountryLine::GetMinX ( void  ) const
inline

Definition at line 383 of file SubSource.hpp.

References m_MinX.

Referenced by CCountryExtreme::AddLine().

◆ GetY()

int CCountryLine::GetY ( void  ) const
inline

Definition at line 382 of file SubSource.hpp.

References m_Y.

Referenced by CCountryExtreme::AddLine().

◆ SetBlock()

void CCountryLine::SetBlock ( CCountryExtreme block)
inline

Definition at line 389 of file SubSource.hpp.

References m_Block.

◆ x_ConvertLat()

int CCountryLine::x_ConvertLat ( double  y)
private

Definition at line 5335 of file SubSource.cpp.

References ConvertLat(), and m_Scale.

Referenced by CCountryLine().

◆ x_ConvertLon()

int CCountryLine::x_ConvertLon ( double  x)
private

Definition at line 5362 of file SubSource.cpp.

References ConvertLon(), and m_Scale.

Referenced by CCountryLine().

Member Data Documentation

◆ m_Block

CCountryExtreme* CCountryLine::m_Block
private

Definition at line 396 of file SubSource.hpp.

Referenced by GetBlock(), and SetBlock().

◆ m_CountryName

string CCountryLine::m_CountryName
private

Definition at line 397 of file SubSource.hpp.

Referenced by GetCountry().

◆ m_MaxX

int CCountryLine::m_MaxX
private

Definition at line 400 of file SubSource.hpp.

Referenced by CCountryLine(), GetMaxLon(), and GetMaxX().

◆ m_MinX

int CCountryLine::m_MinX
private

Definition at line 399 of file SubSource.hpp.

Referenced by CCountryLine(), GetMinLon(), and GetMinX().

◆ m_Scale

double CCountryLine::m_Scale
private

Definition at line 401 of file SubSource.hpp.

Referenced by GetLat(), GetMaxLon(), GetMinLon(), x_ConvertLat(), and x_ConvertLon().

◆ m_Y

int CCountryLine::m_Y
private

Definition at line 398 of file SubSource.hpp.

Referenced by CCountryLine(), GetLat(), and GetY().


The documentation for this class was generated from the following files:
Modified on Fri Sep 20 14:58:14 2024 by modify_doxy.py rev. 669887