13.07.2015 Views

CashFlow, A Visualization Framework for 3D Flow - Studierstube ...

CashFlow, A Visualization Framework for 3D Flow - Studierstube ...

CashFlow, A Visualization Framework for 3D Flow - Studierstube ...

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Implementation4.4. SoDataAccessNode4.4.2 Virtual Array Iterator using SoDataAccessNodeTo simplify the use of SoDataAccessNode an iterator enclosures theSoDataAccessNode. The iterator calculates the real index in the array based on theindex of the virtual array. The iterator provides the following methods <strong>for</strong> easy use.• void begin()Resets the iterator to the first element in the virtual array.• void end()Resets the iterator to the last accessible element in the virtual array.• bool isOngoing()Returns TRUE as long as the end or the begin of the virtual array is not reached.• void copy( Iterator )Duplicates all values of the passed iterator (see Table 4.1).• int getVirtualIndex()Returns the current virtual index.• void setVirtualIndex(int virtualIndex)Set the current virtual index and <strong>for</strong>ces to recomputed the real index.• int idx()Returns the current index in the real array based on the current virtual index.• ++ operatorIncreases the current virtual index.Table 4.1 shows which combinations of virtual arrays can be handled by thevoid copy ( Iterator ).from SINGLE MULTI RANDOM√ √to SINGLE√ √to MULTI*)√to RANDOMTable 4.1: <strong>Cash<strong>Flow</strong></strong> Virtual Array Iterator: possible mapping of Iterator’s. *) SINGLE to MULTI shouldbe avoided because of low per<strong>for</strong>mance.80

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!