Implementation of a styling composed from several predefined mappings chooseable by their name.
More...
#include <Styling.h>
|
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. More...
|
|
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...
|
|
virtual AttributeMap | map (int index __attribute__((unused)), AObject &object __attribute__((unused))) |
| Maps the object at the given index to attribute values.
|
|
template<class AObject>
class Belle2::TrackFindingCDC::ChooseableStyling< AObject >
Implementation of a styling composed from several predefined mappings chooseable by their name.
Definition at line 109 of file Styling.h.
◆ createMapping()
virtual std::unique_ptr<ObjectMapping> createMapping |
( |
const std::string & |
mappingName | ) |
|
|
inlinevirtual |
◆ setStroke()
void setStroke |
( |
const std::string & |
mappingName | ) |
|
|
inline |
Legacy method to set the mapping on how to match a object to the stroke color.
- Parameters
-
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.
◆ setStrokeWidth()
void setStrokeWidth |
( |
const std::string & |
mappingName | ) |
|
|
inline |
Legacy method to set the mapping on how to match a object to the stroke width.
- Parameters
-
mappingName | The Name of the Mapping to be used. The translation from name to Mapping class must be defined in createMapping. |
Definition at line 183 of file Styling.h.
The documentation for this class was generated from the following file:
- tracking/trackFindingCDC/display/include/Styling.h