Belle II Software development
|
Class template for coloring objects with stroke colors prepared to be the default color cycle. More...
#include <Styling.h>
Public Types | |
using | ObjectMapping = Mapping< AObject > |
Mapping for the object type. | |
Public Member Functions | |
DefaultColorCycleStyling () | |
Constructor. Sets the stroke mapping the the default color cycle. | |
AttributeMap | map (int index, AObject &object) override |
Create a map of attributes from the stored attribute maps. | |
std::string | info () override |
Returns informal string about the currently set mappings. | |
virtual std::unique_ptr< ObjectMapping > | createMapping (const std::string &mappingName) |
Create a mapping for the object from a name. | |
void | set (const std::string &key, std::unique_ptr< ObjectMapping > mapping) |
Sets the given attribute to the attribute mapping. | |
void | set (const std::string &key, const std::string &mappingName) |
Sets the given attribute to the fixed value. | |
void | setStroke (const std::string &mappingName) |
Legacy method to set the mapping on how to match a object to the stroke color. | |
void | setStrokeWidth (const std::string &mappingName) |
Legacy method to set the mapping on how to match a object to the stroke width. | |
Protected Attributes | |
std::map< std::string, std::unique_ptr< ObjectMapping > > | m_mappingsByKey |
Map of attribute keys to mappings to be used. | |
Class template for coloring objects with stroke colors prepared to be the default color cycle.
|
inherited |
|
inline |
Constructor. Sets the stroke mapping the the default color cycle.
Definition at line 188 of file Styling.h.
|
inlinevirtualinherited |
Create a mapping for the object from a name.
Can be overridden by the subclass to introduce names with specific meanings. The default is to use the name as a fixed attribute value.
Reimplemented in ChooseableRecoTrackStyling, ChooseableSegmentStyling, and ChooseableHitStyling.
Definition at line 136 of file Styling.h.
|
inlineoverridevirtualinherited |
Returns informal string about the currently set mappings.
Reimplemented from Styling< AObject >.
Definition at line 119 of file Styling.h.
|
inlineoverridevirtualinherited |
Create a map of attributes from the stored attribute maps.
Reimplemented from Styling< AObject >.
Definition at line 107 of file Styling.h.
|
inlineinherited |
Sets the given attribute to the fixed value.
Definition at line 150 of file Styling.h.
|
inlineinherited |
Sets the given attribute to the attribute mapping.
|
inlineinherited |
|
inlineinherited |
|
protectedinherited |