#include <ArMapComponents.h>
Inheritance diagram for ArMapObjects:
ArMapObjects contains a list of objects defined in an Aria map. There are two basic classes of objects: user-defined objects such as goals and forbidden areas; and, special data objects that are usually automatically generated during the scanning process.
Public Member Functions | |
virtual bool | addToFileParser (ArFileParser *fileParser) |
Adds the keyword and handler for the map objects to the given file parser. | |
ArMapObjects (const ArMapObjects &other) | |
Copy constructor. | |
ArMapObjects (const char *keyword="Cairn:") | |
Constructor. | |
virtual void | clear () |
Clears the map objects and deletes them. | |
virtual ArMapObject * | findFirstMapObject (const char *name, const char *type, bool isIncludeWithHeading=false) |
virtual ArMapObject * | findMapObject (const char *name, const char *type=NULL, bool isIncludeWithHeading=false) |
virtual std::list< ArMapObject * > | findMapObjectsOfType (const char *type, bool isIncludeWithHeading=false) |
virtual std::list< ArMapObject * > * | getMapObjects (void) |
virtual ArTime | getTimeChanged () const |
Returns the time at which the map objects were last changed. | |
ArMapObjects & | operator= (const ArMapObjects &other) |
Assignment operator. | |
virtual bool | remFromFileParser (ArFileParser *fileParser) |
Removes the keyword and handler for the map objects from the given file parser. | |
virtual void | setMapObjects (const std::list< ArMapObject * > *mapObjects, bool isSortedObjects=false, ArMapChangeDetails *changeDetails=NULL) |
void | writeObjectListToFunctor (ArFunctor1< const char * > *functor, const char *endOfLineChars) |
virtual | ~ArMapObjects () |
Destructor. | |
Protected Member Functions | |
void | createMultiSet (ArMapFileLineSet *multiSet) |
Writes the map objects to the given ArMapFileLineSet. | |
bool | handleMapObject (ArArgumentBuilder *arg) |
void | logMultiSet (const char *prefix, ArMapFileLineSet *multiSet) |
Writes the given ArMapFileLineSet to the output log with the specified prefix. | |
void | sortMapObjects (std::list< ArMapObject * > *mapObjects) |
Sorts the given list of map objects in order of increasing object pose. | |
Protected Attributes | |
bool | myIsSortedObjects |
Whether the myMapObjects list has been sorted in increasing (pose) order. | |
std::string | myKeyword |
Keyword that prefixes each map object in the map file. | |
ArRetFunctor1C< bool, ArMapObjects, ArArgumentBuilder * > | myMapObjectCB |
Callback to parse the map object from the map file. | |
std::list< ArMapObject * > | myMapObjects |
List of map objects contained in the Aria map. | |
ArTime | myTimeChanged |
Time at which the map objects were last changed. |
ArMapObjects::ArMapObjects | ( | const char * | keyword = "Cairn:" |
) |
Constructor.
keyword | the char * keyword that prefixes each map object line in the map file |