9#ifndef IMPNPC_SLAB_WITH_SPHERICAL_INDENT_H
10#define IMPNPC_SLAB_WITH_SPHERICAL_INDENT_H
12#include <IMP/npc/npc_config.h>
25class IMPNPCEXPORT SlabWithSphericalIndent :
public Decorator {
38 static void do_setup_particle(
Model *m,
50 void set_sphere_radius(
double R) {
51 get_particle()->set_value(get_sphere_radius_key(), R);
55 void set_sphere_depth(
double h) {
56 get_particle()->set_value(get_sphere_depth_key(), h);
The base class for decorators.
Storage of a model, its restraints, constraints and particles.
Classes to handle individual model particles. (Note that implementation of inline functions is in int...
#define IMP_USAGE_CHECK(expr, message)
A runtime test for incorrect usage of a class or method.
Interface to specialized Particle types (e.g. atoms).
Particle * get_particle() const
Returns the particle decorated by this decorator.
Class for storing model, its restraints, constraints, and particles.
A decorator for a particle that represents a slab containing a spherical cap indent.
void set_decorator_name(std::string nm)
Set the name added to the particle.
Float get_sphere_radius() const
return the sphere radius
static bool get_is_setup(Model *m, ParticleIndex pi)
return true if the particle has a R and h defined
static FloatKey get_sphere_radius_key()
get the decorator key for sphere radius
std::string get_decorator_name() const
Get the name added to the particle (Ensures decorator_name to be the same as the name_key).
static FloatKey get_sphere_depth_key()
get the decorator key for the sphere depth
Float get_sphere_depth() const
return the sphere depth
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)
Exception definitions and assertions.
Index< ParticleIndexTag > ParticleIndex
Key< 2 > StringKey
The type used to identify string attributes in the Particles.
double Float
Basic floating-point value (could be float, double...).
Key< 0 > FloatKey
The type used to identify float attributes in the Particles.