FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
Slicer.hpp
1#ifndef __FIBEROPERATIONS_SLICER
2#define __FIBEROPERATIONS_SLICER
3
4
5#include "FragmentSlicer.hpp"
6#include "SlicerBase.hpp"
7
8namespace Fiber
9{
10
30template <class Converter, class InputTypes>
31struct Slicer : public SlicerBase
32{
33 Converter myConverter;
34// RefPtr<FragmentSelector> myFragmentSelector;
35
38 , myConverter( theConverter )
39 {}
40
41// void setFragmentSelector( const RefPtr<FragmentSelector>&theFragmentSelector )
42// {
43// myFragmentSelector = theFragmentSelector;
44// }
45
53 void addSlices(const RefPtr<Field>&InputCoordinates,
54 const RefPtr<Field>&InputData ) override
55 {
57 MFI(*this, myCoordinateValue, InputCoordinates, OutputCoordinates, myConverter);
58
59 InputData -> iterate( MFI, myFragmentSelector );
60
61 OutputData = MFI.OutputField;
62 }
63};
64
65
66} // namespace Fiber
67
68#endif // __FIBEROPERATIONS_SLICER
69
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
Helper class to select a slice from a regular grid.
Definition SlicerBase.hpp:16
RefPtr< Field > OutputCoordinates
The output coordinates of the 2D slice.
Definition SlicerBase.hpp:20
RefPtr< Field > OutputData
The output coordinates of the 2D slice.
Definition SlicerBase.hpp:23
Helper class to select a slice from a regular grid.
Definition Slicer.hpp:32
void addSlices(const RefPtr< Field > &InputCoordinates, const RefPtr< Field > &InputData) override
Expand the coordinate and data fields by slices as retrieved from the input coordinates and input dat...
Definition Slicer.hpp:53