|
Plugins
|
#include <ls_init.h>
Classes | |
| class | z_ray_tracer_t |
| an auxiliary class for the computation of the relative height More... | |
Public Member Functions | |
| void | interpolate_to (SmartPtr< TGridFunc > spLSF) |
| computes the level-set function | |
| LSFbyRaster (const char *raster_file) | |
| class constructor | |
| void | set_local_top_faces_only (bool localTopFacesOnly) |
| if relative values are used, tells whether the value can be obtained by local top faces only | |
| void | set_rel_default (number default_top_z) |
| sets default position of the top (only used if m_bRelative) | |
| void | set_rel_tolerance (number tolerance) |
| sets the tolerance for getting the position of the top (only used if m_bRelative) | |
| void | set_relative_to (const char *top_ss_names) |
| sets the top subset | |
| void | set_relative_to (const char *top_ss_names, int grid_level) |
| sets the top subset | |
Private Types | |
| typedef TGridFunc::algebra_type | algebra_type |
| type of the algebra | |
| typedef TGridFunc::domain_type | domain_type |
| type of the domain | |
| typedef grid_dim_traits< dim >::element_type | elem_t |
| element type | |
| typedef TGridFunc | grid_func_type |
| grid function type | |
| typedef domain_type::grid_type | grid_type |
| grid type | |
| typedef domain_type::position_accessor_type | position_accessor_type |
| type of the position accessor | |
| typedef domain_type::position_attachment_type | position_attachment_type |
| type of the position accessor | |
| typedef Raster< number, dim - 1 > | raster_t |
| the raster of the heights | |
| typedef grid_dim_traits< dim-1 >::element_type | side_t |
| side type | |
| typedef LSFbyRaster< TGridFunc > | this_type |
| this type | |
| typedef TGridFunc::template traits< Vertex >::const_iterator | VertexConstIterator |
| vertex base iterator | |
Private Attributes | |
| bool | m_bDefaultTop |
| whether the default position of the top is specified | |
| bool | m_bRelative |
| whether relative to the top | |
| bool | m_localTopFacesOnly |
| raster_t | m_raster |
| number | m_rt_default |
| default position of the top (if the ray tracing fails) - used only if m_bRelative | |
| int | m_rt_gl |
| grid level of the top surface (or -1 if the surface) | |
| number | m_rt_tol |
| tolerance for the ray tracing (to the top surfaces) | |
| std::string | m_top_ss_names |
| top subsets (if specified) | |
Static Private Attributes | |
| static const int | dim = TGridFunc::dim |
| world dimension | |
Initialization of a level-set function from a height raster.
The raster specifies the levels (heights, negated depths) of the level-set function possible relatively to a specified top subset.
| TGridFunc | type of the grid function |
|
private |
type of the algebra
|
private |
type of the domain
|
private |
element type
|
private |
grid function type
|
private |
grid type
|
private |
type of the position accessor
|
private |
type of the position accessor
|
private |
the raster of the heights
|
private |
side type
|
private |
this type
|
private |
vertex base iterator
|
inline |
class constructor
| raster_file | ASCII raster file |
References ug::Raster< class T, int TDIM >::load_from_asc(), and ug::LevelSet::LSFbyRaster< TGridFunc >::m_raster.
| void ug::LevelSet::LSFbyRaster< TGridFunc >::interpolate_to | ( | SmartPtr< TGridFunc > | spLSF | ) |
computes the level-set function
Interpolates the raster at the grid points and corrects the values by the level of the top subset (if specified).
| spLSF | the level-set function to compute |
References ug::DoFRef(), ug::PST_CONSISTENT, UG_THROW, and SmartPtr< typename T, template< class TT > class FreePolicy >::valid().
|
inline |
if relative values are used, tells whether the value can be obtained by local top faces only
References ug::LevelSet::LSFbyRaster< TGridFunc >::m_localTopFacesOnly.
|
inline |
sets default position of the top (only used if m_bRelative)
| default_top_z | default value if the ray tracing fails |
References ug::LevelSet::LSFbyRaster< TGridFunc >::m_bDefaultTop, and ug::LevelSet::LSFbyRaster< TGridFunc >::m_rt_default.
|
inline |
sets the tolerance for getting the position of the top (only used if m_bRelative)
| tolerance | tolerance of the ray tracing |
References ug::LevelSet::LSFbyRaster< TGridFunc >::m_rt_tol.
|
inline |
sets the top subset
| top_ss_names | names of the top subsets |
References ug::LevelSet::LSFbyRaster< TGridFunc >::m_bRelative, and ug::LevelSet::LSFbyRaster< TGridFunc >::m_top_ss_names.
|
inline |
sets the top subset
| top_ss_names | names of the top subsets |
| grid_level | grid level of the top subset |
References ug::LevelSet::LSFbyRaster< TGridFunc >::m_bRelative, ug::LevelSet::LSFbyRaster< TGridFunc >::m_rt_gl, and ug::LevelSet::LSFbyRaster< TGridFunc >::m_top_ss_names.
|
staticprivate |
world dimension
Referenced by ug::LevelSet::LSFbyRaster< TGridFunc >::z_ray_tracer_t::get_min_at().
|
private |
whether the default position of the top is specified
Referenced by ug::LevelSet::LSFbyRaster< TGridFunc >::set_rel_default().
|
private |
whether relative to the top
Referenced by ug::LevelSet::LSFbyRaster< TGridFunc >::set_relative_to(), and ug::LevelSet::LSFbyRaster< TGridFunc >::set_relative_to().
|
private |
|
private |
Referenced by ug::LevelSet::LSFbyRaster< TGridFunc >::LSFbyRaster().
|
private |
default position of the top (if the ray tracing fails) - used only if m_bRelative
Referenced by ug::LevelSet::LSFbyRaster< TGridFunc >::set_rel_default().
|
private |
grid level of the top surface (or -1 if the surface)
Referenced by ug::LevelSet::LSFbyRaster< TGridFunc >::set_relative_to().
|
private |
tolerance for the ray tracing (to the top surfaces)
Referenced by ug::LevelSet::LSFbyRaster< TGridFunc >::set_rel_tolerance().
|
private |
top subsets (if specified)
Referenced by ug::LevelSet::LSFbyRaster< TGridFunc >::set_relative_to(), and ug::LevelSet::LSFbyRaster< TGridFunc >::set_relative_to().