FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
PointSearch.hpp
1#ifndef __FIBER_POINT_SEARCH_HPP
2#define __FIBER_POINT_SEARCH_HPP
3
4#include <grid/Grid.hpp>
5#include <grid/CartesianChart.hpp>
6#include <bundle/Slice.hpp>
7
8
9#include <eagle/PhysicalSpace.hpp>
10#include <aerie/BoundingBox.hpp>
11
12#include "gridopDllApi.h"
13#include "FragmentSkeleton.hpp"
14
15namespace Fiber
16{
17
24{
26 {
27 const char*what() const throw()
28 { return "PointSearch Exception"; }
29 };
31 {
32 const char*what() const throw()
33 { return "PointSearch: No Vertices in Grid object"; }
34 };
35
41static string HelperGridname(const string&Gridname)
42 {
43 return Gridname + ".UniMappers";
44 }
45
52static SkeletonID CellID(const Grid&G)
53 {
54 RefPtr<Skeleton> Vertices = G.findVertices();
55 if (!Vertices)
56 throw NoVertices();
57
58 int VertexDims = Vertices->Dims();
59 return SkeletonID(VertexDims, 1);
60 }
61
62 RefPtr<Field> UniMapperField;
63
70
76 PointSearch(Slice&slice, Grid&TheGrid, const string&Gridname);
77
78 ~PointSearch();
79
85static RefPtr<Field> getHelperField(const RefPtr<Slice>&slice, const RefPtr<Grid>&TheGrid, const string&Gridname);
86
91static bool hasLookupFragment(const RefPtr<Field>&HelperFeld, const RefPtr<FragmentID>&f);
92
93};
94
95} // namespace Fiber
96
97
98#endif // __POINT_SEARCH_HPP
99
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
Information per time slice, mainly a set of Grid objects that are accessed via GridID objects.
Definition Slice.hpp:36
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
Definition PointSearch.hpp:31
Definition PointSearch.hpp:26
Point Search Utility functions for finding points in a grid based on provided coordinate information.
Definition PointSearch.hpp:24
static string HelperGridname(const string &Gridname)
The point search stores lookup information in another Grid object on the same slice.
Definition PointSearch.hpp:41
RefPtr< Field > FragmentBoxes
The cartesian positions of the helper grid, containing the bounding boxes of each fragment in the ori...
Definition PointSearch.hpp:69
static SkeletonID CellID(const Grid &G)
Return the skeleton ID which is used to cell information.
Definition PointSearch.hpp:52