Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82262786
filter_threshold.hh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Sep 10, 11:19
Size
2 KB
Mime Type
text/x-c++
Expires
Thu, Sep 12, 11:19 (2 d)
Engine
blob
Format
Raw Data
Handle
20670365
Attached To
rLIBMULTISCALE LibMultiScale
filter_threshold.hh
View Options
/**
* @file filter_threshold.hh
*
* @author Guillaume Anciaux <guillaume.anciaux@epfl.ch>
* @author Till Junge <till.junge@epfl.ch>
*
* @date Fri Nov 08 12:27:05 2013
*
* @brief This filter allows to select DOFs based on a threhold criterion
*
* @section LICENSE
*
* Copyright (©) 2010-2011 EPFL (Ecole Polytechnique Fédérale de Lausanne)
* Laboratory (LSMS - Laboratoire de Simulation en Mécanique des Solides)
*
* LibMultiScale is free software: you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free
* Software Foundation, either version 3 of the License, or (at your option) any
* later version.
*
* LibMultiScale is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
* A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with LibMultiScale. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef __LIBMULTISCALE_FILTER_THRESHOLD_HH__
#define __LIBMULTISCALE_FILTER_THRESHOLD_HH__
/* -------------------------------------------------------------------------- */
#include "domain_interface.hh"
#include "filter.hh"
#include "compute_compatibility.hh"
/* -------------------------------------------------------------------------- */
__BEGIN_LIBMULTISCALE__
template
<
typename
_Input
>
class
FilterThreshold
:
public
Filter
<
_Input
>
{
/* ------------------------------------------------------------------------ */
/* Constructors/Destructors */
/* ------------------------------------------------------------------------ */
public
:
FilterThreshold
(
const
FilterID
name
,
FilterInterface
&
f
);
FilterThreshold
(
const
FilterID
name
,
DomainInterface
&
d
);
FilterThreshold
(
const
FilterID
name
,
UInt
dim
);
virtual
~
FilterThreshold
(){};
/* ------------------------------------------------------------------------ */
/* Methods */
/* ------------------------------------------------------------------------ */
public
:
void
init
();
template
<
bool
has_min
,
bool
has_max
>
void
buildMinMax
(
_Input
&
cont
);
void
build
(
_Input
&
cont
);
void
declareParams
();
/* ------------------------------------------------------------------------ */
/* Class Members */
/* ------------------------------------------------------------------------ */
private
:
//! thresholds
Real
min
;
Real
max
;
//! unfiltered computed information
FilterID
compute
;
//! filtered computed information
ComputeCompatibility
<>
out_compute
;
};
__END_LIBMULTISCALE__
#endif
/* __LIBMULTISCALE_FILTER_THRESHOLD_HH__ */
Event Timeline
Log In to Comment