Belle II Software development
|
This Class handles the mapping from the colormapping-method name given as a string to the actual AColorMap for CDCSegments. More...
#include <Styling.h>
Public Types | |
using | ObjectMapping = Mapping< const CDCSegment2D > |
Mapping for the object type. | |
Public Member Functions | |
std::unique_ptr< ObjectMapping > | createMapping (const std::string &mappingName) override |
Method defining the available mapping names. | |
AttributeMap | map (int index, const CDCSegment2D &object) override |
Create a map of attributes from the stored attribute maps. | |
virtual AttributeMap | map (int index, AObject &object) |
Maps the object at the given index to attribute values. | |
std::string | info () override |
Returns informal string about the currently set mappings. | |
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. | |
Private Types | |
using | Super = ChooseableStyling< const CDCSegment2D > |
Type of the base class. | |
This Class handles the mapping from the colormapping-method name given as a string to the actual AColorMap for CDCSegments.
|
inherited |
|
private |
|
overridevirtual |
Method defining the available mapping names.
Reimplemented from ChooseableStyling< const CDCSegment2D >.
Definition at line 31 of file Styling.cc.
|
inlineoverridevirtualinherited |
Returns informal string about the currently set mappings.
Reimplemented from Styling< AObject >.
Definition at line 119 of file Styling.h.
|
inlinevirtualinherited |
Maps the object at the given index to attribute values.
Reimplemented in FixedStyling< AObject >, and ChooseableStyling< AObject >.
Definition at line 39 of file Styling.h.
|
inlineoverrideinherited |
Create a map of attributes from the stored attribute maps.
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.
Definition at line 142 of file Styling.h.
|
inlineinherited |
|
inlineinherited |
Legacy method to set the mapping on how to match a object to the stroke width.
mappingName | The Name of the Mapping to be used. The translation from name to Mapping class must be defined in createMapping. |
Definition at line 173 of file Styling.h.
|
protectedinherited |