|
Aimsun Next Scripting
24.0
|
Public Member Functions | |
| GKRealDataSetFilter () | |
| ~GKRealDataSetFilter () | |
| bool | filterByTime () const |
| void | setTimes (const QDateTime &afrom, const QDateTime &ato) |
| const QDateTime & | getFromTime () const |
| const QDateTime & | getToTime () const |
| bool | filterByArea () const |
| void | setPolygon (GKPolygon *pol) |
| GKPolygon * | getPolygon () const |
| bool | isValid (const QDateTime &atime) const |
| bool | isValid (const GKObject *aObject) const |
| bool | apply (const QDateTime &aDateTime, const GKObject *aObject) const |
This class is used to filter the data available in a real data set to load in memory the relevant information.
A filter can be set by time and/or geographical area.
| GKRealDataSetFilter::GKRealDataSetFilter | ( | ) |
| GKRealDataSetFilter::~GKRealDataSetFilter | ( | ) |
| bool GKRealDataSetFilter::apply | ( | const QDateTime & | aDateTime, |
| const GKObject * | aObject | ||
| ) | const |
isValid methods collection
| bool GKRealDataSetFilter::filterByArea | ( | ) | const |
Returns true if the data is filtered by area.
| bool GKRealDataSetFilter::filterByTime | ( | ) | const |
Returns true if the data is filtered by date.
| const QDateTime & GKRealDataSetFilter::getFromTime | ( | ) | const |
Get the filter from time.
| GKPolygon * GKRealDataSetFilter::getPolygon | ( | ) | const |
The filter polygon.
| const QDateTime & GKRealDataSetFilter::getToTime | ( | ) | const |
Get the filter to time.
| bool GKRealDataSetFilter::isValid | ( | const GKObject * | aObject | ) | const |
Returns true if the obj is inside the filtered area. It returns true if we are not filtering by area (any location is OK then).
| bool GKRealDataSetFilter::isValid | ( | const QDateTime & | atime | ) | const |
Returns true if the data is between the from a to times. It returns true is we are not filtering by data (any date is OK then).
| void GKRealDataSetFilter::setPolygon | ( | GKPolygon * | pol | ) |
The filter polygon.
| void GKRealDataSetFilter::setTimes | ( | const QDateTime & | afrom, |
| const QDateTime & | ato | ||
| ) |
Set the filter times.
1.9.4