8#ifndef IMPNPCTRANSPORT_RMF_LINKS_H
9#define IMPNPCTRANSPORT_RMF_LINKS_H
11#include "npctransport_config.h"
15#include <boost/unordered_map.hpp>
18IMPNPCTRANSPORT_BEGIN_NAMESPACE
21class IMPNPCTRANSPORTEXPORT HierarchyWithSitesLoadLink
24 RMF::decorator::BallConstFactory bf_;
26 RMF::IntKey is_last_entry_from_top_key_;
27 RMF::IntKey n_entries_bottom_key_;
28 RMF::IntKey n_entries_top_key_;
30 RMF::IntKey coordinates_are_optimized_key_;
32 RMF::FloatKey pore_radius_key_;
33 RMF::IntKey pore_radius_is_optimized_key_;
35 RMF::FloatKey rest_length_key_;
37 boost::unordered_map<ParticleIndex, ParticleIndexes> particles_;
50 RMF::NodeConstHandle node)
override;
54 RMF::NodeConstHandle node)
override {
70 HierarchyWithSitesLoadLink(RMF::FileConstHandle fh);
71 static const char *get_name() {
return "npctransport load";}
75class IMPNPCTRANSPORTEXPORT HierarchyWithSitesSaveLink
78 RMF::decorator::BallFactory bf_;
79 RMF::decorator::ColoredFactory cf_;
81 RMF::IntKey is_last_entry_from_top_key_;
82 RMF::IntKey n_entries_bottom_key_;
83 RMF::IntKey n_entries_top_key_;
85 RMF::IntKey coordinates_are_optimized_key_;
87 RMF::FloatKey pore_radius_key_;
88 RMF::IntKey pore_radius_is_optimized_key_;
90 RMF::FloatKey rest_length_key_;
92 boost::unordered_map<ParticleIndex, ParticleIndexes> particles_;
107 RMF::NodeHandle cur_node)
override;
112 RMF::NodeHandle root_node)
override;
115 HierarchyWithSitesSaveLink(RMF::FileHandle fh);
120 test_sites_[t] = sites;
123 static const char *get_name() {
return "npctransport save";}
152 hierarchy_with_sites, hierarchies_with_sites,
154 (RMF::FileConstHandle fh,
Model *m),
156 The only difference is the addition of particle sites
160IMPNPCTRANSPORT_END_NAMESPACE
A weak pointer to an Object or RefCountedObject.
Manage links between an RMF file and an atom::Hierarchy. This file is only a wrapper for HierarchyLoa...
#define IMP_NOT_IMPLEMENTED
Use this to mark that the method is not implemented yet.
Class for storing model, its restraints, constraints, and particles.
The standard decorator for manipulating molecular structures.
virtual void do_link_particle(Model *m, ParticleIndex root, ParticleIndex cur, RMF::NodeConstHandle node) override
virtual void do_setup_particle(Model *m, ParticleIndex root, ParticleIndex cur, RMF::NodeConstHandle node) override
virtual void do_load_hierarchy(RMF::NodeConstHandle root_node, Model *m, ParticleIndex pi) override
virtual void do_setup_node(Model *m, ParticleIndex root, ParticleIndex cur, RMF::NodeHandle cur_node) override
virtual void do_save_hierarchy(Model *m, ParticleIndex root, RMF::NodeHandle root_node) override
macros for display classes
#define IMP_DECLARE_LINKERS(Name, name, names, Type, Types, cargs, link_custom_documentation)
IMP::Vector< Sphere3D > Sphere3Ds
Key< 34897493 > ParticleType
An IMP::Key object for identifying types of particles by strings.
void add_test_sites(RMF::FileHandle fh, core::ParticleType t, double display_radius, algebra::Vector3Ds sites)
void link_hierarchies(RMF::FileConstHandle fh, const atom::Hierarchies &hs)
Index< ParticleIndexTag > ParticleIndex
Vector< VectorD< 3 > > Vector3Ds
Smart pointer to Object-derived classes that does not refcount.
#define IMP_UNUSED(variable)