FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
FieldExporter.hpp
1#ifndef FieldExporter_HPP
2#define FieldExporter_HPP 20220723
3
4#include "BundleNutrition.hpp"
5
6#include <ocean/shrimp/VStringList.hpp>
7#include <ocean/shrimp/VMultipleStringList.hpp>
8
9#include "fishfoodDllApi.h"
10
11namespace Wizt
12{
13
15{
16static RefPtr<LoaderProgress> myCurrentProgress;
17
18 mutable in<VStringList> inSelectedField;
19 mutable in<VMultipleStringList> inSelectedGrids;
20 mutable Fiber::GridList::stringset_t Gridnames;
21
22 FieldExporter(const string&name, const string&Description,
24 const string&FieldSelection, const string&GridSelection)
26 , inSelectedField(this, FieldSelection, {})
27 , inSelectedGrids(this, GridSelection, {} )
28 {}
29
31
33
34 virtual string outputFilename(const string&OutputPath, const string&inputFilename) const = 0;
35
36 int expectedOutput(FileList_t&OutputFiles, const string&OutputPath, const FileList_t&InputFiles) const override;
37
44 virtual string saveFile(const string&DestinationFile,
47 const RefPtr<Fiber::Representation>&Rep, const Grid&g, double t,
48 size_t currentFile, size_t NumberOfFiles,
50
51
52static bool Break;
53
54 html digest(FileList_t&OutputFiles, const string&OutputPath,
55 const std::function<string(const string&)>&OutputFileModifier,
59};
60
61} // end namespace
62
63#endif // FieldExporter_HPP
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
An abstract selection of fields, that is given by names of fields and possible types for each field.
Definition FieldSelection.hpp:23
A Grid is a set of Skeleton objects, each of them accessed via some unique SkeletonID object.
Definition Grid.hpp:60
note: cannot derive from FloatingSkeletonRenderer as long as independent base class TriangleRenderer ...
Definition BundleNutrition.hpp:11
Definition FieldExporter.hpp:15
virtual string saveFile(const string &DestinationFile, const MemCore::RefPtr< MemCore::LoaderProgress > &theProgress, const RefPtr< Fiber::Field > &f, const RefPtr< Fiber::Representation > &Rep, const Grid &g, double t, size_t currentFile, size_t NumberOfFiles, map< string, string > &ActualFilenames)=0
Implement the actual function that saves a field to a file here, with the child class implementing a ...