FiberVISH 0.2
Fish - The Fiber Bundle API for the Vish Visualization Shell
Lidar_copy.hpp
1#ifndef LIDAR_COPY_HPP
2#define LIDAR_COPY_HPP
3
4#include "fish/fiber/grid/types/LineSet.hpp"
5
6#pragma warning "Anonymous namespace in header files is unusual, in conjunction with global namespace settings it messes up the namespace elsewhere. Needs to be fixed."
7namespace Fiber
8{
9
22inline void createPointSet (Fiber::Grid& G, MemCore::RefPtr<Fiber::MemArray<1,std::vector<uint32_t> > >& Data )
23{
24using namespace Fiber;
25using namespace std;
26
29
31
33
35
36 pointSetField->setPersistentData(Data);
37}
38
40{
41using namespace Fiber;
42using namespace std;
43
45 if (!vertices)
46 {
47 cout << "getPointSet(): ERROR no vertices skeleton" << endl;
48 return NullPtr();
49 }
50
53 {
54 cout << "getPointSet(): ERROR no pointSetSkeleton" << endl;
55 return NullPtr();
56 }
57
60 {
61 cout << "getPointSet(): ERROR no representation" << endl;
62 return NullPtr();
63 }
64
65RefPtr<Field> pointSetField = (*pointSetAsVertices)(FIBER_POSITIONS);
66 if (!pointSetField)
67 {
68 cout << "getPointSet(): ERROR no pointSetField" << endl;
69 return NullPtr();
70 }
71
73 if (!output)
74 {
75 cout << "getPointSet(): ERROR no MemArray<> of pointSetField" << endl;
76 return NullPtr();
77 }
78
79 return output;
80}
81
82} // namespace
83
84#endif // LIDAR_COPY_HPP
basic_ostream< _CharT, _Traits > & endl(basic_ostream< _CharT, _Traits > &__os)
ostream cout
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
Class for N-dimensional MultiArrays with MemCore memory management.
Definition MemArray.hpp:34
A Representation is a set of Field objects, each of them accessed via some FieldID identifier.
Definition Representation.hpp:101
Identifier for Skeletons within a Grid.
Definition SkeletonID.hpp:24
RefPtr< Skeleton > findVertices(int TotalRefinement=-1) const
Find the Skeleton describing the Vertices on this Grid.
Definition SkeletonMap.cpp:285
A Skeleton is a set of Representation object, each of them accessed by an Representer object.
Definition Skeleton.hpp:102
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
std::nullptr_t NullPtr
STL namespace.