#include <USState.h>
◆ USState() [1/2]
bridges::dataset::USState::USState |
( |
| ) |
|
|
default |
◆ USState() [2/2]
bridges::dataset::USState::USState |
( |
string |
st | ) |
|
|
inline |
◆ accessCounties()
unordered_map<string, USCounty>& bridges::dataset::USState::accessCounties |
( |
| ) |
|
|
inline |
obtain reference to the county data for that state
This is mostly useful to get direct access to the county data inside of the state for manipulation. For instance
for (
auto& c:
s.accessCounties()) {
c.second.setStrokeColor(Color(50,250,50));
c.second.setFillColor(Color(0,0,25));
}
{c}
◆ getCounties()
unordered_map<string, USCounty> bridges::dataset::USState::getCounties |
( |
| ) |
const |
|
inline |
◆ getFillColor()
◆ getStateName()
string bridges::dataset::USState::getStateName |
( |
| ) |
const |
|
inline |
◆ getStrokeColor()
◆ getStrokeWidth()
float bridges::dataset::USState::getStrokeWidth |
( |
| ) |
const |
|
inline |
◆ getViewCountiesFlag()
bool bridges::dataset::USState::getViewCountiesFlag |
( |
| ) |
const |
|
inline |
this flag lets you turn on/off counties as needed
◆ setCounties()
void bridges::dataset::USState::setCounties |
( |
unordered_map< string, USCounty > & |
c | ) |
|
|
inline |
sets the counties for this state
- Parameters
-
c | list o counties of this state |
◆ setFillColor()
◆ setStateName()
void bridges::dataset::USState::setStateName |
( |
string |
n | ) |
|
|
inline |
◆ setStrokeColor()
◆ setStrokeWidth()
void bridges::dataset::USState::setStrokeWidth |
( |
float |
width | ) |
|
|
inline |
◆ setViewCountiesFlag()
void bridges::dataset::USState::setViewCountiesFlag |
( |
bool |
flag | ) |
|
|
inline |
The documentation for this class was generated from the following file: