Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell
Functions
066-StorageTransformationWithPositions.cpp File Reference

[← Previous Example] [Next Example → 070-RegularResample.cpp ]. More...

#include <unistd.h>
#include <fiber/bundle/Bundle.hpp>
#include <fiber/bundle/StorageTransformations.hpp>
#include <fiber/finit/FinitAPI.h>
#include <memcore/Console.hpp>

Functions

int main (int argc, const char **argv)
 

Detailed Description

[← Previous Example] [Next Example → 070-RegularResample.cpp ].

In FiberLib Tutorial

#include <unistd.h>
#include <fiber/bundle/Bundle.hpp>
#include <fiber/bundle/StorageTransformations.hpp>
#include <fiber/finit/FinitAPI.h>
#include <memcore/Console.hpp>
using namespace Fiber;
using namespace Eagle::PhysicalSpace;
int main(int argc, const char**argv)
{
Finit();
{
std::pair<string,string> getExternalLocation( double time, const string&gridname,
const SkeletonID&Sid,
const string&RepresenterName,
const string&FieldName ) const override
{
FieldName + ".f5",
std::to_string(time) + "/" + gridname + "/" + Sid.Name()
+ "/" + RepresenterName );
}
};
string InFile = "InputFile.f5";
BundlePtr BP = new Bundle ;
BP->bindToNew("066_F5StorageTransformationWithPositions.f5", new MyStorage() );
Grid&myGrid = BP[0.0]["TestGrid"];
RefPtr<Field> PositionsF = myGrid[FIBER_POSITIONS];
Console() << "Mem size: " << Mem->nElements();
PositionsF->setPersistentData(Mem);
return 0;
}
Convenience class that implements a pointer to a Bundle object but adds some useful member funtions t...
Definition Bundle.hpp:779
The main entity holding all information.
Definition Bundle.hpp:173
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
A Grid is a set of Skeleton objects, each of them accessed via some unique SkeletonID object.
Definition Grid.hpp:60
Identifier for Skeletons within a Grid.
Definition SkeletonID.hpp:24
std::string Name() const
Create a textual representation of the inherent parameters of the Skeleton ID.
Definition SkeletonID.cpp:138
Definition StorageTransformations.hpp:18
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
string to_string(const Eagle::FixedArray< ElementType, N > &A, const char *OpenBrace="{", const char *CloseBrace="}", const char *Separator=",")