![]() |
WhirlyGlobe
1.2
A 3D interactive globe toolkit for iOS
|
#include <VectorData.h>
Public Member Functions | |
virtual bool | isValid ()=0 |
Return false if we failed to load. | |
virtual VectorShapeRef | getNextObject (const StringSet *filter)=0 |
virtual bool | canReadByIndex () |
Return true if this vector reader can seek and read. | |
virtual unsigned int | getNumObjects () |
Return the total number of vectors objects. | |
virtual VectorShapeRef | getObjectByIndex (unsigned int vecIndex, const StringSet *filter) |
Vector Reader Base class for loading a vector data file. Fill this into hand data over to whomever wants it.
virtual VectorShapeRef WhirlyGlobe::VectorReader::getNextObject | ( | const StringSet * | filter | ) | [pure virtual] |
Returns one of the vector types. Keep enough state to figure out what the next one is. You can skip any attributes not named in the filter. Or just ignore it.
Implemented in WhirlyGlobe::ShapeReader.
virtual VectorShapeRef WhirlyGlobe::VectorReader::getObjectByIndex | ( | unsigned int | vecIndex, |
const StringSet * | filter | ||
) | [inline, virtual] |
Return an object that corresponds to the given index. You need to be able to seek in your file format for this. The filter works the same as for getNextObect()
Reimplemented in WhirlyGlobe::ShapeReader.