IMP logo
IMP Reference Guide  develop.7482b7c7af, 2026/12/05
The Integrative Modeling Platform
IMP::npc::SlabWithSphericalIndent Class Reference

A decorator for a particle that represents a slab containing a spherical cap indent. More...

#include <IMP/npc/SlabWithSphericalIndent.h>

Inheritance diagram for IMP::npc::SlabWithSphericalIndent:

Detailed Description

A decorator for a particle that represents a slab containing a spherical cap indent.

Definition at line 25 of file SlabWithSphericalIndent.h.

Public Member Functions

 SlabWithSphericalIndent (::IMP::Model *m, ::IMP::ParticleIndex id)
 SlabWithSphericalIndent (const IMP::ParticleAdaptor &d)
std::string get_decorator_name () const
 Get the name added to the particle (Ensures decorator_name to be the same as the name_key).
Float get_sphere_depth () const
 return the sphere depth
Float get_sphere_radius () const
 return the sphere radius
void set_decorator_name (std::string nm)
 Set the name added to the particle.
void set_sphere_depth (double h)
void set_sphere_radius (double R)
void show (std::ostream &out=std::cout) const
Public Member Functions inherited from IMP::Decorator
bool get_is_valid () const
 Returns true if constructed with a non-default constructor.
Model * get_model () const
 Returns the Model containing the particle.
Particle * get_particle () const
 Returns the particle decorated by this decorator.
ParticleIndex get_particle_index () const
 Returns the particle index decorated by this decorator.
 operator Particle * () const
 operator ParticleIndex () const
Particle * operator-> () const

Static Public Member Functions

static bool get_is_setup (const IMP::ParticleAdaptor &p)
static bool get_is_setup (Model *m, ParticleIndex pi)
 return true if the particle has a R and h defined
static FloatKey get_sphere_depth_key ()
 get the decorator key for the sphere depth
static FloatKey get_sphere_radius_key ()
 get the decorator key for sphere radius
static SlabWithSphericalIndent setup_particle (IMP::ParticleAdaptor pa, double R, double h)
static SlabWithSphericalIndent setup_particle (Model *m, ParticleIndex pi, double R, double h)

Additional Inherited Members

Protected Member Functions inherited from IMP::Decorator
 Decorator (Model *m, ParticleIndex pi)
 Decorator (ParticleAdaptor p)

Constructor & Destructor Documentation

◆ SlabWithSphericalIndent() [1/3]

IMP::npc::SlabWithSphericalIndent::SlabWithSphericalIndent ( )

Definition at line 93 of file SlabWithSphericalIndent.h.

◆ SlabWithSphericalIndent() [2/3]

IMP::npc::SlabWithSphericalIndent::SlabWithSphericalIndent ( ::IMP::Model * m,
::IMP::ParticleIndex id )

Definition at line 93 of file SlabWithSphericalIndent.h.

◆ SlabWithSphericalIndent() [3/3]

IMP::npc::SlabWithSphericalIndent::SlabWithSphericalIndent ( const IMP::ParticleAdaptor & d)
explicit

Definition at line 93 of file SlabWithSphericalIndent.h.

Member Function Documentation

◆ get_decorator_name()

std::string IMP::npc::SlabWithSphericalIndent::get_decorator_name ( ) const

Get the name added to the particle (Ensures decorator_name to be the same as the name_key).

Definition at line 81 of file SlabWithSphericalIndent.h.

Here is the call graph for this function:

◆ get_is_setup() [1/2]

bool IMP::npc::SlabWithSphericalIndent::get_is_setup ( const IMP::ParticleAdaptor & p)
static

Definition at line 93 of file SlabWithSphericalIndent.h.

◆ get_is_setup() [2/2]

bool IMP::npc::SlabWithSphericalIndent::get_is_setup ( Model * m,
ParticleIndex pi )
static

return true if the particle has a R and h defined

Definition at line 45 of file SlabWithSphericalIndent.h.

Here is the call graph for this function:

◆ get_sphere_depth()

Float IMP::npc::SlabWithSphericalIndent::get_sphere_depth ( ) const

return the sphere depth

Definition at line 65 of file SlabWithSphericalIndent.h.

Here is the call graph for this function:

◆ get_sphere_depth_key()

FloatKey IMP::npc::SlabWithSphericalIndent::get_sphere_depth_key ( )
static

get the decorator key for the sphere depth

◆ get_sphere_radius()

Float IMP::npc::SlabWithSphericalIndent::get_sphere_radius ( ) const

return the sphere radius

Definition at line 60 of file SlabWithSphericalIndent.h.

Here is the call graph for this function:

◆ get_sphere_radius_key()

FloatKey IMP::npc::SlabWithSphericalIndent::get_sphere_radius_key ( )
static

get the decorator key for sphere radius

◆ set_decorator_name()

void IMP::npc::SlabWithSphericalIndent::set_decorator_name ( std::string nm)

Set the name added to the particle.

Definition at line 86 of file SlabWithSphericalIndent.h.

Here is the call graph for this function:

◆ set_sphere_depth()

void IMP::npc::SlabWithSphericalIndent::set_sphere_depth ( double h)

Definition at line 55 of file SlabWithSphericalIndent.h.

◆ set_sphere_radius()

void IMP::npc::SlabWithSphericalIndent::set_sphere_radius ( double R)

Definition at line 50 of file SlabWithSphericalIndent.h.

◆ setup_particle() [1/2]

SlabWithSphericalIndent IMP::npc::SlabWithSphericalIndent::setup_particle ( IMP::ParticleAdaptor pa,
double R,
double h )
static
Returns
a SlabWithSphericalIndent object that decorates the particle specified by pa
See also
setup_particle(m, p, R, h)

Definition at line 94 of file SlabWithSphericalIndent.h.

◆ setup_particle() [2/2]

SlabWithSphericalIndent IMP::npc::SlabWithSphericalIndent::setup_particle ( Model * m,
ParticleIndex pi,
double R,
double h )
static
Returns
a SlabWithSphericalIndent object that decorates particle pi

Definition at line 94 of file SlabWithSphericalIndent.h.


The documentation for this class was generated from the following file: