|
SPH
|
#include <Colorizer.h>
Public Member Functions | |
| YieldReductionColorizer (Palette palette) | |
| virtual Rgba | evalColor (const Size idx) const override |
| Returns the color of idx-th particle. More... | |
| virtual std::string | name () const override |
| Returns the name of the colorizer. More... | |
Public Member Functions inherited from TypedColorizer< Float > | |
| TypedColorizer (const QuantityId id, Palette palette) | |
| virtual bool | hasData (const Storage &storage) const override |
| Checks if the storage constains all data necessary to initialize the colorizer. More... | |
| virtual void | initialize (const Storage &storage, const RefEnum ref) override |
| Initialize the colorizer before by getting necessary quantities from storage. More... | |
| virtual bool | isInitialized () const override |
| Checks if the colorizer has been initialized. More... | |
| virtual Optional< float > | evalScalar (const Size idx) const override |
| virtual Optional< Vector > | evalVector (const Size idx) const override |
| 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 &newPalette) override |
| Modifies the palette used by ths colorizer. More... | |
Public Member Functions inherited from IColorizer | |
| 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... | |
Public Member Functions inherited from Polymorphic | |
| virtual | ~Polymorphic () |
Additional Inherited Members | |
Protected Attributes inherited from TypedColorizer< Float > | |
| QuantityId | id |
| Palette | palette |
| ArrayRef< const Float > | values |
Definition at line 635 of file Colorizer.h.
|
inlineexplicit |
Definition at line 637 of file Colorizer.h.
Returns the color of idx-th particle.
Reimplemented from TypedColorizer< Float >.
Definition at line 640 of file Colorizer.h.
|
inlineoverridevirtual |
Returns the name of the colorizer.
This is used when showing the colorizer in the window and as filename suffix.
Reimplemented from TypedColorizer< Float >.
Definition at line 646 of file Colorizer.h.