WhirlyGlobe  1.1
A 3D interactive globe toolkit for ios
WhirlyGlobe::VectorReader Class Reference

#include <VectorData.h>

Inheritance diagram for WhirlyGlobe::VectorReader:
WhirlyGlobe::ShapeReader

List of all members.

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)

Detailed Description

Vector Reader Base class for loading a vector data file. Fill this into hand data over to whomever wants it.


Member Function Documentation

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.


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