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

Search Toolkit Book for CCountryExtreme

#include <objects/seqfeat/SubSource.hpp>

Public Member Functions

 CCountryExtreme (const string &country_name, int min_x, int min_y, int max_x, int max_y)
 
 ~CCountryExtreme (void)
 
string GetCountry (void) const
 
string GetLevel0 (void) const
 
string GetLevel1 (void) const
 
int GetMinX (void) const
 
int GetMinY (void) const
 
int GetMaxX (void) const
 
int GetMaxY (void) const
 
int GetArea (void) const
 
void AddLine (const CCountryLine *line)
 
bool SetMinX (int min_x)
 
bool SetMinY (int min_y)
 
bool SetMaxX (int max_x)
 
bool SetMaxY (int max_y)
 
bool DoesOverlap (const CCountryExtreme *other_block) const
 
bool PreferTo (const CCountryExtreme *other_block, const string country, const string province, const bool prefer_new) const
 

Private Attributes

string m_CountryName
 
string m_Level0
 
string m_Level1
 
int m_MinX
 
int m_MinY
 
int m_MaxX
 
int m_MaxY
 
int m_Area
 

Detailed Description

Definition at line 338 of file SubSource.hpp.

Constructor & Destructor Documentation

◆ CCountryExtreme()

CCountryExtreme::CCountryExtreme ( const string country_name,
int  min_x,
int  min_y,
int  max_x,
int  max_y 
)

◆ ~CCountryExtreme()

CCountryExtreme::~CCountryExtreme ( void  )

Definition at line 5386 of file SubSource.cpp.

Member Function Documentation

◆ AddLine()

void CCountryExtreme::AddLine ( const CCountryLine line)

◆ DoesOverlap()

bool CCountryExtreme::DoesOverlap ( const CCountryExtreme other_block) const

Definition at line 5448 of file SubSource.cpp.

References GetMaxX(), GetMaxY(), GetMinX(), GetMinY(), m_MaxX, m_MaxY, m_MinX, and m_MinY.

Referenced by CLatLonMap_Base::DoCountryBoxesOverlap().

◆ GetArea()

int CCountryExtreme::GetArea ( void  ) const
inline

◆ GetCountry()

string CCountryExtreme::GetCountry ( void  ) const
inline

Definition at line 344 of file SubSource.hpp.

References m_CountryName.

Referenced by CSubSource::x_CalculateLatLonId().

◆ GetLevel0()

string CCountryExtreme::GetLevel0 ( void  ) const
inline

Definition at line 345 of file SubSource.hpp.

References m_Level0.

Referenced by PreferTo(), and CSubSource::x_CalculateLatLonId().

◆ GetLevel1()

string CCountryExtreme::GetLevel1 ( void  ) const
inline

◆ GetMaxX()

int CCountryExtreme::GetMaxX ( void  ) const
inline

Definition at line 349 of file SubSource.hpp.

References m_MaxX.

Referenced by DoesOverlap().

◆ GetMaxY()

int CCountryExtreme::GetMaxY ( void  ) const
inline

Definition at line 350 of file SubSource.hpp.

References m_MaxY.

Referenced by DoesOverlap().

◆ GetMinX()

int CCountryExtreme::GetMinX ( void  ) const
inline

Definition at line 347 of file SubSource.hpp.

References m_MinX.

Referenced by DoesOverlap().

◆ GetMinY()

int CCountryExtreme::GetMinY ( void  ) const
inline

Definition at line 348 of file SubSource.hpp.

References m_MinY.

Referenced by DoesOverlap().

◆ PreferTo()

bool CCountryExtreme::PreferTo ( const CCountryExtreme other_block,
const string  country,
const string  province,
const bool  prefer_new 
) const

◆ SetMaxX()

bool CCountryExtreme::SetMaxX ( int  max_x)

Definition at line 5403 of file SubSource.cpp.

References m_MaxX.

Referenced by AddLine().

◆ SetMaxY()

bool CCountryExtreme::SetMaxY ( int  max_y)

Definition at line 5425 of file SubSource.cpp.

References m_MaxY.

Referenced by AddLine().

◆ SetMinX()

bool CCountryExtreme::SetMinX ( int  min_x)

Definition at line 5392 of file SubSource.cpp.

References m_MinX.

Referenced by AddLine().

◆ SetMinY()

bool CCountryExtreme::SetMinY ( int  min_y)

Definition at line 5414 of file SubSource.cpp.

References m_MinY.

Referenced by AddLine().

Member Data Documentation

◆ m_Area

int CCountryExtreme::m_Area
private

Definition at line 368 of file SubSource.hpp.

Referenced by AddLine(), CCountryExtreme(), and GetArea().

◆ m_CountryName

string CCountryExtreme::m_CountryName
private

Definition at line 361 of file SubSource.hpp.

Referenced by GetCountry().

◆ m_Level0

string CCountryExtreme::m_Level0
private

Definition at line 362 of file SubSource.hpp.

Referenced by CCountryExtreme(), GetLevel0(), and PreferTo().

◆ m_Level1

string CCountryExtreme::m_Level1
private

Definition at line 363 of file SubSource.hpp.

Referenced by CCountryExtreme(), GetLevel1(), and PreferTo().

◆ m_MaxX

int CCountryExtreme::m_MaxX
private

Definition at line 366 of file SubSource.hpp.

Referenced by CCountryExtreme(), DoesOverlap(), GetMaxX(), and SetMaxX().

◆ m_MaxY

int CCountryExtreme::m_MaxY
private

Definition at line 367 of file SubSource.hpp.

Referenced by CCountryExtreme(), DoesOverlap(), GetMaxY(), and SetMaxY().

◆ m_MinX

int CCountryExtreme::m_MinX
private

Definition at line 364 of file SubSource.hpp.

Referenced by CCountryExtreme(), DoesOverlap(), GetMinX(), and SetMinX().

◆ m_MinY

int CCountryExtreme::m_MinY
private

Definition at line 365 of file SubSource.hpp.

Referenced by CCountryExtreme(), DoesOverlap(), GetMinY(), and SetMinY().


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