8 #ifndef IMPDISPLAY_PARTICLE_GEOMETRY_H
9 #define IMPDISPLAY_PARTICLE_GEOMETRY_H
11 #include <IMP/display/display_config.h>
20 IMPDISPLAY_BEGIN_NAMESPACE
30 bool get_has_color()
const {
31 return Geometry::get_has_color() || Colored::get_is_setup(p_);
34 Color get_color()
const {
35 if (Geometry::get_has_color()) {
36 return Geometry::get_color();
42 Particle *get_particle()
const {
return p_; }
70 bool get_has_color()
const {
71 return Geometry::get_has_color() || Colored::get_is_setup(p0_) ||
72 Colored::get_is_setup(p1_);
75 Color get_color()
const {
76 if (Geometry::get_has_color()) {
77 return Geometry::get_color();
78 }
else if (Colored::get_is_setup(p0_))
79 return Colored(p0_).get_color();
81 return Colored(p1_).get_color();
106 IMPDISPLAY_END_NAMESPACE
A base class for geometry contained in particles.
A shared container for Pairs.
A decorator for a particle with a color.
A container for Singletons.
The base class for geometry.
A base class for geometry contained in particles.
A class to store an fixed array of same-typed values.
A base class for geometry from a set of particles.
macros for display classes
Implement geometry for the basic shapes from IMP.algebra.
A base class for geometry from a set of particles.
A smart pointer to a reference counted object.
A smart pointer to a ref-counted Object that is a class member.
A shared container for Singletons.
A nullptr-initialized pointer to an IMP Object.
Array< 2, WeakPointer< Particle >, Particle * > ParticlePair
Class to handle individual model particles.