Belle II Software  release-08-01-10
ChooseableRecoTrackStyling Class Reference

This Class handles the mapping from the colormapping-method name given as a string to the actual color mapping for RecoTrack. More...

#include <Styling.h>

Inheritance diagram for ChooseableRecoTrackStyling:
Collaboration diagram for ChooseableRecoTrackStyling:

Public Types

using ObjectMapping = Mapping< const RecoTrack >
 Mapping for the object type.
 

Public Member Functions

std::unique_ptr< ObjectMappingcreateMapping (const std::string &mappingName) override
 Method defining the available mapping names.
 
AttributeMap map (int index, const RecoTrack &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. More...
 
void setStrokeWidth (const std::string &mappingName)
 Legacy method to set the mapping on how to match a object to the stroke width. More...
 

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 RecoTrack >
 Type of the base class.
 

Detailed Description

This Class handles the mapping from the colormapping-method name given as a string to the actual color mapping for RecoTrack.

Definition at line 198 of file Styling.h.

Member Function Documentation

◆ setStroke()

void setStroke ( const std::string &  mappingName)
inlineinherited

Legacy method to set the mapping on how to match a object to the stroke color.

Parameters
mappingNameThe Name of the Mapping to be used. The translation from name to Mapping class must be defined in createMapping.

Definition at line 163 of file Styling.h.

◆ setStrokeWidth()

void setStrokeWidth ( const std::string &  mappingName)
inlineinherited

Legacy method to set the mapping on how to match a object to the stroke width.

Parameters
mappingNameThe 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.


The documentation for this class was generated from the following files: