9#ifndef IMPNPC_SLAB_WITH_PORE_H
10#define IMPNPC_SLAB_WITH_PORE_H
12#include "npc_config.h"
23class IMPNPCEXPORT SlabWithPore
106 bool get_pore_radius_is_optimized()
const {
107 return get_particle()->get_is_optimized(get_pore_radius_key());
The base class for decorators.
Interface to specialized Particle types (e.g. atoms).
Particle * get_particle() const
Returns the particle decorated by this decorator.
Class for adding derivatives from restraints to the model.
Class for storing model, its restraints, constraints, and particles.
void set_pore_radius(double r) const
set cylindrical pore radius
Float get_thickness() const
static FloatKey get_pore_radius_key()
Get the key for the pore radius.
static FloatKey get_thickness_key()
Get the key for the pore thickness.
static bool get_is_setup(Model *m, ParticleIndex pi)
Return true if the particle is an instance of SlabWithPore.
void set_pore_radius_is_optimized(bool tf) const
Set whether the pore radius is optimized.
void add_to_pore_radius_derivative(double v, DerivativeAccumulator &d)
Float get_pore_radius() const
get cylindrical pore radius
void set_thickness(double thickness)
sets slab thickness
Helper macros for implementing Decorators.
#define IMP_DECORATORS(Name, PluralName, Parent)
Define the types for storing sets of decorators.
#define IMP_DECORATOR_SETUP_2(Name, FirstArgumentType, first_argument_name, SecondArgumentType, second_argument_name)
#define IMP_DECORATOR_METHODS(Name, Parent)
Index< ParticleIndexTag > ParticleIndex
double Float
Basic floating-point value (could be float, double...).
Key< 0 > FloatKey
The type used to identify float attributes in the Particles.