FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
CellSearch.hpp
1#ifndef __FIBER_BASEOP_CELLSEARCH_HPP
2#define __FIBER_BASEOP_CELLSEARCH_HPP
3
4
5#include "gridopDllApi.h"
6
7#include <field/UniformCartesianArray.hpp>
8#include <field/Field.hpp>
9
10#include <aerie/BoundingBox.hpp>
11
12namespace Fiber
13{
14
16{
17 RefPtr<UniformCartesianArray> UniGridCoords;
18
22 typedef uint16_t idx_t;
23
25
36
43
50
54
55
57 const Eagle::BoundingBox&BBox,
60
61
62 bool addToUniCell(FragmentLookup_t&FL, CellLookup_t&CL,
63 const MultiIndex<3>&UniCell, int FragmentIndex, const MultiIndex<3>&CellIndex);
64
65
66 struct Location
67 {
68 int FragmentID;
69 CellIndex_t CellIndex;
70 FixedArray<double,3> VertexIndex;
71
74 {
75 CellIndex[0] = CellIndex[1] = CellIndex[2] = -1;
76 VertexIndex[0] = VertexIndex[1] = VertexIndex[2] = 0.0;
77 }
78
82 , CellIndex( theCellIndex )
83 , VertexIndex( theVertexIndex )
84 {}
85 };
86
87 Location findLocation(const Eagle::PhysicalSpace::point&P, const Field&Coordinates) const;
88};
89
90
91} // namespace Fiber
92
93
94#endif // __FIBER_BASEOP_CELLSEARCH_HPP
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
A Field is a collection of CreativeArrayBase reference pointers which are accessed via FragmentID obj...
Definition Field.hpp:245
Identification information about a field's fragment.
Definition FragmentID.hpp:42
Definition MultiArray.hpp:371
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
IndexTypeConfig< sizeof(void *)>::index_t index_t
Define the index type as according to the size of a pointer, i.e.
Definition Index.hpp:22
std::nullptr_t NullPtr
Definition CellSearch.hpp:67
Definition CellSearch.hpp:16
RefPtr< MemArray< 4, index_t > > LinearCellLookup
List of linear cell indices.
Definition CellSearch.hpp:49
RefPtr< MemArray< 4, CellIndex_t > > CellLookup
List of multidimensional cell indices.
Definition CellSearch.hpp:42
RefPtr< MemArray< 4, idx_t > > FragmentLookup
List of fragment indices, one integer per candidate cell.
Definition CellSearch.hpp:35
uint16_t idx_t
The type representing an short index in memory.
Definition CellSearch.hpp:22
Definition fs/init.hpp:20