Bridges-C++  3.4.5-dev1-6-g935685a
Bridges(C++ API)
Public Member Functions | List of all members
bridges::dataset::USCounty Class Reference

This object contains US county related information. More...

#include <USCounty.h>

Public Member Functions

 USCounty ()=default
 Constructor. More...
 
 USCounty (string id, string code, string county, string state)
 Constructor. More...
 
string getGeoId () const
 
string getFipsCode () const
 
void setFipsCode (string code)
 
string getStateName () const
 
void setStateName (string n)
 
string getCountyName () const
 
void setCountyName (string n)
 
datastructure::Color getStrokeColor () const
 
void setStrokeColor (datastructure::Color c)
 
datastructure::Color getFillColor () const
 
void setFillColor (datastructure::Color c)
 
float getStrokeWidth () const
 
void setStrokeWidth (float width)
 
bool getHideFlag () const
 
void setHideFlag (bool flag)
 

Detailed Description

This object contains US county related information.

This object is used alongside with the USMap object. Each county has a stroke color and fill color attributes. Each county has a geoid and FIPS code for identification. The geoid is used as the key in the USState object to efficiently access the county information using a hash table

See tutorial at https://bridgesuncc.github.io/tutorials/Map.html

Author
Kalpathi Subramanian, Erik Saule
Date
Last modified Dec 29, 2024

Constructor & Destructor Documentation

◆ USCounty() [1/2]

bridges::dataset::USCounty::USCounty ( )
default

Constructor.

◆ USCounty() [2/2]

bridges::dataset::USCounty::USCounty ( string  id,
string  code,
string  county,
string  state 
)
inline

Constructor.

Parameters
geoidGeoid of county
codeFIPS code of county
countycounty name
statestate containing the county

Member Function Documentation

◆ getCountyName()

string bridges::dataset::USCounty::getCountyName ( ) const
inline

◆ getFillColor()

datastructure::Color bridges::dataset::USCounty::getFillColor ( ) const
inline

◆ getFipsCode()

string bridges::dataset::USCounty::getFipsCode ( ) const
inline

◆ getGeoId()

string bridges::dataset::USCounty::getGeoId ( ) const
inline

◆ getHideFlag()

bool bridges::dataset::USCounty::getHideFlag ( ) const
inline

◆ getStateName()

string bridges::dataset::USCounty::getStateName ( ) const
inline

◆ getStrokeColor()

datastructure::Color bridges::dataset::USCounty::getStrokeColor ( ) const
inline

◆ getStrokeWidth()

float bridges::dataset::USCounty::getStrokeWidth ( ) const
inline

◆ setCountyName()

void bridges::dataset::USCounty::setCountyName ( string  n)
inline

◆ setFillColor()

void bridges::dataset::USCounty::setFillColor ( datastructure::Color  c)
inline

◆ setFipsCode()

void bridges::dataset::USCounty::setFipsCode ( string  code)
inline

◆ setHideFlag()

void bridges::dataset::USCounty::setHideFlag ( bool  flag)
inline

◆ setStateName()

void bridges::dataset::USCounty::setStateName ( string  n)
inline

◆ setStrokeColor()

void bridges::dataset::USCounty::setStrokeColor ( datastructure::Color  c)
inline

◆ setStrokeWidth()

void bridges::dataset::USCounty::setStrokeWidth ( float  width)
inline

The documentation for this class was generated from the following file: