-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Squashed 'modules/pmi/' changes from a5c6a4c..b927010
b927010 Replace IMP.pmi examples for Travis builds. 02dcf5d Use items(), not iteritems(), to work with Python 3. ca40763 Suppress more 'was not used' warnings. 86d029f Suppress more 'not used' warnings. 4c4b24f Make floating-point comparison more reliable. 0395b69 Use correct PDB atom names. df1a78b Suppress more 'was not used' warnings. 8ad14f5 Suppress more 'was not used' warnings. 4be6e3b Use standard PDB atom naming. 4fdc78f Suppress 'linker_restraints was not used' warnings. 8622238 fixing test_dof.py c120ea6 fixing test_io_crosslink.py dbc2079 making mover disabling faster d1614ea removing useless file 28c7d99 fix Segments test 258c44f adding an InternalCoordinatesConstraint 1f6e165 fix test for Segments 876c3cf fix Segments class 691a4aa adding a self adaptive scheme 401c486 fix draw_component_composition bug 223879e add self_adaptive monte carlo scheme 4d74785 returns copy and state indexes ecd8778 get the number of links per residue f845cf2 fixes when rmfs are in subdirectories 397496d 1 Fixed ReferenceFrame issue for RB clones, 2 added a new RigidBody symmetry constraint git-subtree-dir: modules/pmi git-subtree-split: b92701077ea8e84c55ac65109b5bef6b6dbeb5e2
- Loading branch information
Showing
25 changed files
with
476 additions
and
152 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/** | ||
* \file IMP/pmi/InternalCoordinatesConstraint.h | ||
* \brief A modifier that enforce identical internal coordinates for NonRigidMembers. | ||
* | ||
* Copyright 2007-2016 IMP Inventors. All rights reserved. | ||
*/ | ||
|
||
#ifndef IMPPMI_PMI_SINGLETON_MODIFIER_H | ||
#define IMPPMI_PMI_SINGLETON_MODIFIER_H | ||
|
||
#include <IMP/SingletonModifier.h> | ||
#include <IMP/singleton_macros.h> | ||
|
||
IMPPMI_BEGIN_NAMESPACE | ||
|
||
//! An example singleton modifier | ||
/** A simple singleton modifier which ensures the x,y,z coordinates | ||
stay in a box by wrapping them. | ||
Such a class could be coupled with an IMP::core::SingletonConstraint | ||
or IMP::container::SingletonsConstraint to keep a set of particles | ||
in a box. | ||
\include range_restrictionExampleSingletonModifier.py | ||
The source code is as follows: | ||
\include InternalCoordinatesConstraint.h | ||
\include InternalCoordinatesConstraint.cpp | ||
*/ | ||
class IMPPMIEXPORT InternalCoordinatesConstraint : public SingletonModifier { | ||
|
||
public: | ||
InternalCoordinatesConstraint(); | ||
|
||
// note, Doxygen wants a semicolon at the end of macro lines | ||
virtual void apply_index(Model *m, ParticleIndex p) const | ||
IMP_OVERRIDE; | ||
virtual ModelObjectsTemp do_get_inputs( | ||
Model *m, const ParticleIndexes &pis) const IMP_OVERRIDE; | ||
virtual ModelObjectsTemp do_get_outputs( | ||
Model *m, const ParticleIndexes &pis) const IMP_OVERRIDE; | ||
IMP_SINGLETON_MODIFIER_METHODS(InternalCoordinatesConstraint); | ||
IMP_OBJECT_METHODS(InternalCoordinatesConstraint); | ||
}; | ||
|
||
IMPPMI_END_NAMESPACE | ||
|
||
#endif /* IMPPMI_PMI_SINGLETON_MODIFIER_H */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.