Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell
Wizt::SortedFragmentIterator Struct Referenceabstract

An iterator over field fragments that traverses the fragments in back-to-front order as seen from the given Camera. More...

#include <SortedFragmentIterator.hpp>

Inheritance diagram for Wizt::SortedFragmentIterator:
Fiber::FragmentIterator Wizt::Vitreous::FragmentRenderer

Classes

struct  SpatialFragment

Public Member Functions

RefPtr< FieldCoords () const
 SortedFragmentIterator (const VCamera &Cam, const RefPtr< Representation > &theRepresentation)
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)
 Iterate 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 Member Functions inherited from Fiber::FragmentIterator
virtual ~FragmentIterator ()
 Destructor (virtual).

Public Attributes

const VCameramyCamera
RefPtr< RepresentationmyRepresentation

Protected Types

typedef multimap< double, SpatialFragmentFragmentMap_t

Protected Member Functions

bool apply (const RefPtr< FragmentID > &fid, const RefPtr< CreativeArrayBase > &DataCreator) override
 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.

Member Function Documentation

◆ apply() [1/2]

bool Wizt::SortedFragmentIterator::apply ( const RefPtr< FragmentID > & fid,
const RefPtr< CreativeArrayBase > & DataCreator )
overrideprotectedvirtual

The fragment iterator's callback function, used to determine the spatial location of the fragment and collect them in the FragmentMap.

Implements Fiber::FragmentIterator.

Referenced by emitFragments().

◆ apply() [2/2]

virtual bool Wizt::SortedFragmentIterator::apply ( const SpatialFragment & VF)
pure virtual

The virtual apply function, which would perform some rendering of the current spatial fragment.

Implemented in Wizt::Vitreous::FragmentRenderer.