IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
TransformationSymmetry.h
Go to the documentation of this file.
1/**
2 * \file IMP/spb/TransformationSymmetry.h
3 * \brief Implement various types of symmetry
4 *
5 * Copyright 2007-2022 IMP Inventors. All rights reserved.
6 *
7 */
8
9#ifndef IMPSPB_TRANSFORMATION_SYMMETRY_H
10#define IMPSPB_TRANSFORMATION_SYMMETRY_H
11
16#include "IMP/core/XYZ.h"
18#include <IMP/spb/spb_config.h>
19
20IMPSPB_BEGIN_NAMESPACE
21
22//! Set the coordinates of a particle to be a transformed version of a reference
23/** The passed particles must be Reference particles and XYZ particles and
24 can be RigidBody particles iff the reference particle is a rigid body.
25 \see TransformationAndReflectionSymmetry
26 */
27class IMPSPBEXPORT TransformationSymmetry : public SingletonModifier {
32
33 algebra::Vector3D get_vector(algebra::Vector3D center) const;
34 algebra::Transformation3D get_transformation() const;
35
36 public:
37 //! Create with both reflection and translation
39 Particle *py, Particle *pz);
40
41 virtual void apply_index(IMP::Model *m,
42 IMP::ParticleIndex p) const override;
44 IMP::Model *m, const IMP::ParticleIndexes &pis) const override;
46 IMP::Model *m, const IMP::ParticleIndexes &pis) const override;
47
49
52};
53
54IMPSPB_END_NAMESPACE
55
56#endif /* IMPSPB_TRANSFORMATION_SYMMETRY_H */
Reflect about a plane in 3D.
A Modifier on ParticlesTemp.
Simple 3D transformation class.
Simple XYZ decorator.
Class for storing model, its restraints, constraints, and particles.
Definition Model.h:111
Class to handle individual particles of a Model object.
Definition Particle.h:45
Simple 3D transformation class.
virtual IMP::ModelObjectsTemp do_get_inputs(IMP::Model *m, const IMP::ParticleIndexes &pis) const override
Overload this method to specify the inputs.
TransformationSymmetry(algebra::Transformation3D t, Particle *px, Particle *py, Particle *pz)
Create with both reflection and translation.
virtual IMP::ModelObjectsTemp do_get_outputs(IMP::Model *m, const IMP::ParticleIndexes &pis) const override
Overload this method to specify the outputs.
virtual void apply_index(IMP::Model *m, IMP::ParticleIndex p) const override
Index< ParticleIndexTag > ParticleIndex
Definition base_types.h:196
Vector< ParticleIndex, std::allocator< ParticleIndex > > ParticleIndexes
A list of particles, each identified by its ParticleIndex.
Definition base_types.h:199
VectorD< 3 > Vector3D
Definition VectorD.h:407
IMP::Vector< IMP::WeakPointer< ModelObject > > ModelObjectsTemp
Definition base_types.h:122
#define IMP_OBJECT_METHODS(Name)
Define the basic things needed by any Object.
functionality for defining rigid bodies
#define IMP_SHOWABLE(Name)
Macros for various classes.
#define IMP_SINGLETON_MODIFIER_METHODS(Name)
A smart pointer to a ref-counted Object that is a class member.
Definition Pointer.h:144