FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
ExplodeTensor.hpp
1
2//
3// $Id: hpp,v 1.0 2000/01/01 00:00:01 werner Exp $
4//
5// $Log: hpp,v $
6// Created 2012/01/20 11:18:13 marcel
7// Initial version
8//
9//
11#ifndef __EXPLODETENSOR_HPP
12#define __EXPLODETENSOR_HPP
13
14#include <field/MemBase.hpp>
15#include <fiberop/TensorProperties.hpp>
16//#include <eagle/EigenVectors.hpp>
17#include <grid/Representation.hpp>
18#include <eagle/PhysicalSpace.hpp>
19#include "fiberopDllApi.h"
20
21namespace Fiber
22{
23
25{
26 RefPtr<TypedArray<double> > pGxx, pGyy, pGzz, pGxy, pGxz, pGyz;
27
28 ExplodeTensor(Representation&R, const string&Fieldname, const RefPtr<FragmentID>&f);
29
31 const string&Fieldname, const RefPtr<FragmentID>&f,
32 bool TemporaryFields = false);
33
34 bool HasExplosion() const
35 {
36 if (pGxx && pGyy && pGzz && pGxy && pGxz && pGyz)
37 return true;
38 else
39 return false;
40 }
41
42 operator bool() const
43 {
44 return HasExplosion();
45 }
46
47bool compute( const Iterator<Eagle::metric33>&M, const RefPtr<MemBase>& Data );
48
49 void setFields(Representation&R, const string&Fieldname, const RefPtr<FragmentID>&f,
50 const RefPtr<MemBase>&pGxx,
51 bool Discardable = true);
52
53};
54
55}
56
57#endif
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
A Representation is a set of Field objects, each of them accessed via some FieldID identifier.
Definition Representation.hpp:101
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
Definition ExplodeTensor.hpp:25