IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::em2d::DistanceFilter Class Reference

SubsetFilter for checking overlap between projections and images. More...

#include <IMP/em2d/domino_filters.h>

Inheritance diagram for IMP::em2d::DistanceFilter:

Detailed Description

SubsetFilter for checking overlap between projections and images.

Definition at line 25 of file domino_filters.h.

Public Member Functions

 DistanceFilter (const domino::Subset &subset_to_act_on, const domino::Subset &subset_to_restrain, domino::ParticleStatesTable *ps_table, double max_distance)
virtual bool get_is_ok (const IMP::domino::Assignment &assignment) const override
virtual std::string get_type_name () const override
virtual ::IMP::VersionInfo get_version_info () const override
 Get information about the module and version of the object.
void show (std::ostream &out=std::cout) const
Public Member Functions inherited from IMP::domino::SubsetFilter
 SubsetFilter (std::string name="SubsetFilter%1%")
virtual int get_next_state (int pos, const Assignment &state) const
 Return a next possible acceptable state for the particle in pos.
Public Member Functions inherited from IMP::Object
CheckLevel get_check_level () const
 get_derived_object (self)
 Return this object cast to the most derived subclass.
LogLevel get_log_level () const
void set_check_level (CheckLevel l)
void set_log_level (LogLevel l)
 Set the logging level used in this object.
const std::string & get_name () const
 Get the (not necessarily unique) name of this object.
void set_name (std::string name)
void set_was_used (bool tf) const
void show (std::ostream &out=std::cout) const
virtual void clear_caches ()

Protected Attributes

double max_distance_
Pointer< domino::ParticleStatesTable > ps_table_
domino::Subset subset_acting_on_
domino::Subset subset_restrained_

Additional Inherited Members

Protected Member Functions inherited from IMP::Object
 Object (std::string name)
 Construct an object with the given name.
virtual void do_destroy ()

Constructor & Destructor Documentation

◆ DistanceFilter()

IMP::em2d::DistanceFilter::DistanceFilter ( const domino::Subset & subset_to_act_on,
const domino::Subset & subset_to_restrain,
domino::ParticleStatesTable * ps_table,
double max_distance )

Filter action on the distance between two particles. To be used with DOMINO

Parameters
[in]subset_to_act_onA subset that is going to be filtered.
[in]subset_to_restrainA subset of 2 particles that need to be within a given distance
[in]ps_tabletable containing the states for subset_to_act_on and subset_to_restraint
[in]max_distanceThe maximum distance between the particles in subset_to_restrain

Definition at line 44 of file domino_filters.h.

◆ ~DistanceFilter()

virtual IMP::em2d::DistanceFilter::~DistanceFilter ( )
virtual

Definition at line 60 of file domino_filters.h.

Member Function Documentation

◆ get_is_ok()

virtual bool IMP::em2d::DistanceFilter::get_is_ok ( const IMP::domino::Assignment & state) const
overridevirtual

Return true if the given state passes this filter for the Subset it was created with

Implements IMP::domino::SubsetFilter.

◆ get_type_name()

virtual std::string IMP::em2d::DistanceFilter::get_type_name ( ) const
overridevirtual

Reimplemented from IMP::Object.

Definition at line 60 of file domino_filters.h.

◆ get_version_info()

virtual ::IMP::VersionInfo IMP::em2d::DistanceFilter::get_version_info ( ) const
overridevirtual

Get information about the module and version of the object.

Reimplemented from IMP::Object.

Definition at line 60 of file domino_filters.h.

Here is the call graph for this function:

◆ show()

void IMP::em2d::DistanceFilter::show ( std::ostream & out = std::cout) const

Definition at line 53 of file domino_filters.h.

Member Data Documentation

◆ max_distance_

double IMP::em2d::DistanceFilter::max_distance_
protected

Definition at line 31 of file domino_filters.h.

◆ ps_table_

Pointer<domino::ParticleStatesTable> IMP::em2d::DistanceFilter::ps_table_
protected

Definition at line 30 of file domino_filters.h.

◆ subset_acting_on_

domino::Subset IMP::em2d::DistanceFilter::subset_acting_on_
protected

Definition at line 28 of file domino_filters.h.

◆ subset_restrained_

domino::Subset IMP::em2d::DistanceFilter::subset_restrained_
protected

Definition at line 29 of file domino_filters.h.


The documentation for this class was generated from the following file: