A particle with a color.
Many of the geometry objects will use this color if it is available.
Examples: decay, restraint cache, simulation, multiscale, optimize balls
Inheritance diagram for IMP::display::Colored:Public Member Functions | |
| Colored (Model *m, ParticleIndex id) | |
| Colored (::IMP::Particle *p) | |
| Color | get_color () const |
| void | set_color (const Color &c) |
| void | show (std::ostream &out=std::cout) const |
Public Member Functions inherited from IMP::Decorator | |
| std::size_t | __hash__ () const |
| ParticleIndex | get_particle_index () const |
| Particle * | get_particle () const |
| Model * | get_model () const |
| Returns the Model containing the particle. | |
| Decorator (Particle *p) | |
| Decorator () | |
Static Public Member Functions | |
| static Colored | decorate_particle (::IMP::Particle *p) |
| static FloatKeys | get_color_keys () |
| static bool | particle_is_instance (Particle *p) |
| Return true if the particle can be cast to the decorator. | |
| static Colored | setup_particle (Particle *p, Color c) |
| static Decorator | setup_particle (Particle *p, extra_arguments) |
Additional Inherited Members | |
Protected Member Functions inherited from IMP::Decorator | |
| Decorator (Model *m, ParticleIndex pi) | |
| Decorator (Particle *p) | |
| int | compare (base::Object *o) const |
|
static |
Return true if the particle can be cast to the decorator.
That is, if particle_is_instance() returns true, then it is legal to construct an instance of the decorator with that particle. If not, setup_particle() must be called first.
Reimplemented from IMP::Decorator.