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

#include <IMP/em/Voxel.h>

Inheritance diagram for IMP::em::Voxel:

Detailed Description

A a decorator for a particle that stores data on a density voxel , such as: position (x,y,z) attributes and density attributes

Definition at line 25 of file Voxel.h.

Public Member Functions

 Voxel (::IMP::Model *m, ::IMP::ParticleIndex id)
 Voxel (const IMP::ParticleAdaptor &d)
Float get_density () const
void set_density (Float t)
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 const FloatKey get_density_key ()
static bool get_is_setup (const IMP::ParticleAdaptor &p)
static bool get_is_setup (Model *m, ParticleIndex pi)
static const FloatKeys get_keys ()
static Voxel setup_particle (IMP::ParticleAdaptor pa, algebra::Vector3D position, Float radius, Float density)
static Voxel setup_particle (Model *m, ParticleIndex pi, algebra::Vector3D position, Float radius, Float density)

Additional Inherited Members

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

Constructor & Destructor Documentation

◆ Voxel() [1/3]

IMP::em::Voxel::Voxel ( )

Definition at line 37 of file Voxel.h.

◆ Voxel() [2/3]

IMP::em::Voxel::Voxel ( ::IMP::Model * m,
::IMP::ParticleIndex id )

Definition at line 37 of file Voxel.h.

◆ Voxel() [3/3]

IMP::em::Voxel::Voxel ( const IMP::ParticleAdaptor & d)
explicit

Definition at line 37 of file Voxel.h.

Member Function Documentation

◆ get_density()

Float IMP::em::Voxel::get_density ( ) const

returns the value of the density attribute

Definition at line 41 of file Voxel.h.

◆ get_is_setup() [1/2]

bool IMP::em::Voxel::get_is_setup ( const IMP::ParticleAdaptor & p)
static

Definition at line 37 of file Voxel.h.

◆ get_is_setup() [2/2]

bool IMP::em::Voxel::get_is_setup ( Model * m,
ParticleIndex pi )
static

Definition at line 43 of file Voxel.h.

◆ set_density()

void IMP::em::Voxel::set_density ( Float t)

sets the value of the density attribute to t

Definition at line 41 of file Voxel.h.

◆ setup_particle() [1/2]

Voxel IMP::em::Voxel::setup_particle ( IMP::ParticleAdaptor pa,
algebra::Vector3D position,
Float radius,
Float density )
static
Returns
a Voxel object that decorates the particle specified by pa
See also
setup_particle(m, pi, position, radius, density)

Definition at line 39 of file Voxel.h.

◆ setup_particle() [2/2]

Voxel IMP::em::Voxel::setup_particle ( Model * m,
ParticleIndex pi,
algebra::Vector3D position,
Float radius,
Float density )
static
Returns
a Voxel object that decorates particle pi

Definition at line 39 of file Voxel.h.


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