1#ifndef VERTEX_SELECTION_HPP
2#define VERTEX_SELECTION_HPP
6#include "gridopDllApi.h"
8#include "aerie/BoundingBox.hpp"
9#include "aerie/KDTree.hpp"
11#include "ocean/shrimp/PhysicalSpace.hpp"
13#include "bundle/GridSelector.hpp"
14#include "field/OnDemandCreator.hpp"
15#include "grid/types/LineSet.hpp"
16#include "grid/CartesianChart.hpp"
87 return m_ref_to_vertex_index.
empty();
99 for( it = m_ref_to_vertex_index.
begin(); it != m_ref_to_vertex_index.
end(); it++ )
101 std::cout <<
"ref: " << it->first <<
", ";
103 for(
size_t i = 0; i < it->second->Size()[0]; i++ )
104 std::cout << m[i][0] <<
"-" << m[i][1] <<
" ";
109 bool hasRefLevel(
int ref )
111 return ( m_ref_to_vertex_index.find( ref ) != m_ref_to_vertex_index.end() );
116 return m_ref_to_vertex_index.rbegin()->first;
119 static SkeletonID& getID(
int refinement = -1 )
121 m_id.setRefinement( 0,0 );
123 m_id.setRefinement( 0, refinement );
156 : m_representation(
rep )
162 getBoundsHelper( m_representation, selection, bb );
187 int refinement_level = -1 );
212 if( f->Name() == m_name)
215 m_selection =
DC->create();
253extern gridop_API bool addVertexSelection( MemCore::RefPtr<Fiber::Grid>& grid, const std::string& sel_name, const MemCore::RefPtr<Fiber::MemArray<1, size_t> >& sel_indices );
258extern gridop_API MemCore::RefPtr<Fiber::MemArray<1, size_t> > getVertexSelectionOld( MemCore::RefPtr<Fiber::Grid>& grid, const std::string& sel_name );
_Expr< _ValFunClos< _ValArray, _Tp >, _Tp > apply(_Tp __func(_Tp)) const
constexpr _OutputIterator merge(_InputIterator1 __first1, _InputIterator1 __last1, _InputIterator2 __first2, _InputIterator2 __last2, _OutputIterator __result)
constexpr iterator_traits< _InputIterator >::value_type reduce(_InputIterator __first, _InputIterator __last)
basic_string< char > string
basic_ostream< _CharT, _Traits > & endl(basic_ostream< _CharT, _Traits > &__os)
constexpr auto empty(const _Container &__cont) noexcept(noexcept(__cont.empty())) -> decltype(__cont.empty())
bool empty() const noexcept
const_iterator end() const noexcept
const_iterator begin() const noexcept
An iterator with an optional DataCreator, which is just a class to intercept creation of data along a...
Definition CreativeIterator.hpp:34
Base class for iterators over the fragments of a field.
Definition FragmentID.hpp:249
Context information to select a grid from within a bundle.
Definition GridSelector.hpp:26
Identifier for Skeletons within a Grid.
Definition SkeletonID.hpp:24
Class representing a vertex selection.
Definition VertexSelection.hpp:64
Given a fragmented field of curvilinear coordinates, (3D array of coordinates), build a uniform Grid ...
Definition FAQ.dox:2
void fillVertexSelection(RefPtr< Grid > &grid, RefPtr< MemArray< 1, VertexSelection_t > > &selection)
Fill vertex selection by selecting all points inside the convex hull (3D) of the selection.
Definition VertexSelection.cpp:295
Definition VertexSelection.hpp:150
Definition VertexSelection.hpp:32
Definition VertexSelection.hpp:50