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();
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 decorator for a particle with a color.
Import IMP/kernel/SingletonContainer.h in the namespace.
A nullptr-initialized pointer to an IMP Object.
The base class for geometry.
A base class for geometry contained in particles.
A smart pointer to a ref-counted Object that is a class memeber.
A base class for geometry from a set of particles.
macros for display classes
A shared container for Pairs.
A smart pointer to a reference counted object.
base::Array< 2, base::WeakPointer< Particle >, Particle * > ParticlePair
Implement geometry for the basic shapes from IMP.algebra.
A base class for geometry from a set of particles.
A class to store an fixed array of same-typed values.
Import IMP/kernel/PairContainer.h in the namespace.
Class to handle individual model particles.
Import IMP/kernel/SingletonScore.h in the namespace.
A shared container for Singletons.