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

Apply a transformation to a passed particle. More...

#include <IMP/core/Transform.h>

Inheritance diagram for IMP::core::Transform:

Detailed Description

Apply a transformation to a passed particle.

See also
algebra::Transformation3D

Definition at line 23 of file Transform.h.

Public Member Functions

 Transform (const algebra::Transformation3D &t, bool ignore_non_xyz=false)
 Initialize.
virtual void apply_index (Model *m, ParticleIndex p) const override
virtual void apply_indexes (Model *m, const ParticleIndexes &o, unsigned int lower_bound, unsigned int upper_bound) const override final
virtual ModelObjectsTemp do_get_inputs (Model *m, const ParticleIndexes &pis) const override
 Overload this method to specify the inputs.
virtual ModelObjectsTemp do_get_outputs (Model *m, const ParticleIndexes &pis) const override
 Overload this method to specify the outputs.
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.
Public Member Functions inherited from IMP::SingletonModifier
 SingletonModifier (std::string name="SingletonModifier %1%")
virtual void apply_indexes_moved (Model *m, const ParticleIndexes &o, unsigned int lower_bound, unsigned int upper_bound, const ParticleIndexes &moved_pis, const ParticleIndexes &reset_pis) const
Public Member Functions inherited from IMP::ParticleInputs
ModelObjectsTemp get_inputs (Model *m, const ParticleIndexes &pis) const
 Get the ModelObjects read when the given list of particles is used.
Public Member Functions inherited from IMP::ParticleOutputs
ModelObjectsTemp get_outputs (Model *m, const ParticleIndexes &pis) const
 Get the ModelObjects changed when the given list of particles is used.
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 ()

Additional Inherited Members

Public Types inherited from IMP::SingletonModifier
typedef Particle * Argument
typedef ParticleIndex IndexArgument
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

◆ Transform() [1/2]

IMP::core::Transform::Transform ( const algebra::Transformation3D & t,
bool ignore_non_xyz = false )

Initialize.

Parameters
[in]ta 3d transformation to be applied on a particle
[in]ignore_non_xyzif false then applying the transformation on a non XYZ particle will result in an exception.
Here is the call graph for this function:

◆ Transform() [2/2]

IMP::core::Transform::Transform ( )

Definition at line 33 of file Transform.h.

◆ ~Transform()

virtual IMP::core::Transform::~Transform ( )
virtual

Definition at line 42 of file Transform.h.

Member Function Documentation

◆ apply_index()

virtual void IMP::core::Transform::apply_index ( Model * m,
ParticleIndex v ) const
overridevirtual

Apply the function to a single value

Implements IMP::SingletonModifier.

◆ apply_indexes()

virtual void IMP::core::Transform::apply_indexes ( Model * m,
const ParticleIndexes & o,
unsigned int lower_bound,
unsigned int upper_bound ) const
finaloverridevirtual

Apply the function to a collection of ParticlesTemp If bounds are passed, only apply to ones between the upper and lower bounds.

Reimplemented from IMP::SingletonModifier.

Definition at line 41 of file Transform.h.

Here is the call graph for this function:

◆ do_get_inputs()

virtual ModelObjectsTemp IMP::core::Transform::do_get_inputs ( Model * m,
const ParticleIndexes & pis ) const
overridevirtual

Overload this method to specify the inputs.

Implements IMP::ParticleInputs.

◆ do_get_outputs()

virtual ModelObjectsTemp IMP::core::Transform::do_get_outputs ( Model * m,
const ParticleIndexes & pis ) const
overridevirtual

Overload this method to specify the outputs.

Implements IMP::ParticleOutputs.

◆ get_type_name()

virtual std::string IMP::core::Transform::get_type_name ( ) const
overridevirtual

Reimplemented from IMP::Object.

Definition at line 42 of file Transform.h.

◆ get_version_info()

virtual ::IMP::VersionInfo IMP::core::Transform::get_version_info ( ) const
overridevirtual

Get information about the module and version of the object.

Reimplemented from IMP::Object.

Definition at line 42 of file Transform.h.

Here is the call graph for this function:

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