|
SPH
|
#include <Colorizer.h>
Public Member Functions | |
| IdColorizerTemplate (const GuiSettings &gui) | |
| void | setSeed (const Size newSeed) |
| virtual Rgba | evalColor (const Size idx) const override |
| Returns the color of idx-th particle. More... | |
| virtual Optional< Particle > | getParticle (const Size idx) const override |
| Returns the original value of the displayed quantity. More... | |
| virtual Optional< Palette > | getPalette () const override |
| Returns recommended palette for drawing this colorizer. More... | |
| virtual void | setPalette (const Palette &UNUSED(newPalette)) override |
Public Member Functions inherited from IColorizer | |
| virtual bool | hasData (const Storage &storage) const =0 |
| Checks if the storage constains all data necessary to initialize the colorizer. More... | |
| virtual void | initialize (const Storage &storage, const RefEnum ref)=0 |
| Initialize the colorizer before by getting necessary quantities from storage. More... | |
| virtual bool | isInitialized () const =0 |
| Checks if the colorizer has been initialized. More... | |
| virtual Optional< float > | evalScalar (const Size UNUSED(idx)) const |
| Returns the scalar representation of the colorized quantity for idx-th particle. More... | |
| virtual Optional< Vector > | evalVector (const Size UNUSED(idx)) const |
| Returns the vector representation of the colorized quantity for idx-th particle. More... | |
| virtual void | setPalette (const Palette &newPalette)=0 |
| Modifies the palette used by ths colorizer. More... | |
| virtual std::string | name () const =0 |
| Returns the name of the colorizer. More... | |
Public Member Functions inherited from Polymorphic | |
| virtual | ~Polymorphic () |
Definition at line 867 of file Colorizer.h.
|
inlineexplicit |
Definition at line 873 of file Colorizer.h.
|
overridevirtual |
Returns the color of idx-th particle.
Implements IColorizer.
Reimplemented in ComponentIdColorizer.
Definition at line 190 of file Colorizer.cpp.
|
inlineoverridevirtual |
Returns recommended palette for drawing this colorizer.
In case there is no palette, returns NOTHING.
Implements IColorizer.
Definition at line 885 of file Colorizer.h.
|
overridevirtual |
Returns the original value of the displayed quantity.
If no such value exists, returns NOTHING.
Implements IColorizer.
Reimplemented in MaterialColorizer, ComponentIdColorizer, and ParticleIdColorizer.
Definition at line 200 of file Colorizer.cpp.
|
inlineoverridevirtual |
Definition at line 889 of file Colorizer.h.
|
inline |
Definition at line 877 of file Colorizer.h.