An iterator over field fragments that traverses the fragments in back-to-front order as seen from the given Camera.
More...
#include <SortedFragmentIterator.hpp>
List of all members.
Classes
Public Member Functions
-
SortedFragmentIterator (const VCamera &Cam, const RefPtr< Field > &Crds)
-
int emitFragments ()
- Iterate over all currently stored field fragments.
-
virtual bool apply (const SpatialFragment &VF)=0
- The virtual apply function, which would perform some rendering of the current spatial fragment.
-
void emit (const RefPtr< Field > &theField)
- Emit over the fragments of the field and call the virtual apply() function for each fragment, ordered back to front as seen from the camera.
Public Attributes
Protected Types
Protected Member Functions
-
override bool apply (const RefPtr< FragmentID > &fid, const RefPtr< CreativeArrayBase > &DataCreator)
- The fragment iterator's callback function, used to determine the spatial location of the fragment and collect them in the FragmentMap.
Protected Attributes
-
FragmentMap_t FragmentMap
Detailed Description
An iterator over field fragments that traverses the fragments in back-to-front order as seen from the given Camera.