8#include <tracking/trackFindingCDC/display/CDCSVGPlotter.h>
9#include <tracking/trackFindingCDC/display/SVGPrimitivePlotter.h>
10#include <tracking/trackFindingCDC/display/Styling.h>
12#include <tracking/trackFindingCDC/rootification/StoreWrappedObjPtr.h>
14#include <tracking/trackFindingCDC/filters/axialSegmentPair/MCAxialSegmentPairFilter.h>
15#include <tracking/trackFindingCDC/filters/segmentPair/MCSegmentPairFilter.h>
16#include <tracking/trackFindingCDC/filters/segmentTriple/MCSegmentTripleFilter.h>
17#include <tracking/trackFindingCDC/mclookup/CDCMCSegment2DLookUp.h>
19#include <tracking/trackFindingCDC/eventdata/tracks/CDCTrack.h>
20#include <tracking/trackFindingCDC/eventdata/tracks/CDCSegmentTriple.h>
21#include <tracking/trackFindingCDC/eventdata/tracks/CDCAxialSegmentPair.h>
22#include <tracking/trackFindingCDC/eventdata/tracks/CDCSegmentPair.h>
23#include <tracking/trackFindingCDC/eventdata/segments/CDCSegment2D.h>
24#include <tracking/trackFindingCDC/eventdata/segments/CDCWireHitCluster.h>
25#include <tracking/trackFindingCDC/eventdata/hits/CDCWireHit.h>
27#include <tracking/trackFindingCDC/geometry/Vector3D.h>
28#include <tracking/trackFindingCDC/geometry/Vector2D.h>
30#include <tracking/trackFindingCDC/utilities/ReversedRange.h>
32#include <tracking/dataobjects/RecoTrack.h>
34#include <framework/datastore/StoreArray.h>
36#include <cdc/dataobjects/CDCSimHit.h>
37#include <cdc/dataobjects/CDCHit.h>
39#include <mdst/dataobjects/MCParticle.h>
47using namespace TrackFindingCDC;
50 template<
bool a_drawTrajectory,
class AObject>
51 struct DrawTrajectoryHelper;
53 template<
class AObject>
54 struct DrawTrajectoryHelper<true, AObject> {
56 static void draw(
EventDataPlotter& plotter, AObject&
object,
const AttributeMap& attributeMap)
58 plotter.drawTrajectory(
object, attributeMap);
62 template<
class AObject>
63 struct DrawTrajectoryHelper<false, AObject> {
65 static void draw(
EventDataPlotter& plotter, AObject&
object,
const AttributeMap& attributeMap)
67 plotter.draw(
object, attributeMap);
74 class FlightTimeOrder {
79 return (x->getFlightTime() < y->getFlightTime());
84static void printDataStoreContent()
86 B2INFO(
"Current content of the DataStore:");
87 B2INFO(
"StoreArrays:");
92 B2INFO(
"StoreObjPtr:");
98const AttributeMap c_defaultSVGAttributes({
100 {
"stroke-width",
"0.55"},
102 {
"transform",
"translate(0, 1120) scale(1,-1)"}
114 int default_width = 1120;
115 int default_height = 1120;
134 AttributeMap attributeMap;
135 attributeMap.emplace(
"stroke", stroke);
141 AttributeMap attributeMap;
142 attributeMap.emplace(
"stroke", stroke);
148 AttributeMap attributeMap;
149 attributeMap.emplace(
"stroke", stroke);
159 const std::string& stroke,
160 const std::string& strokeWidth)
163 if (stroke !=
"") styling.
setStroke(stroke);
165 drawStoreArray<const CDCHit>(storeArrayName, styling);
169 const std::string& stroke,
170 const std::string& strokeWidth)
172 B2INFO(
"Drawing simulated hits");
174 if (not storeArray) {
175 B2WARNING(
"StoreArray " << storeArrayName <<
" not present");
176 printDataStoreContent();
179 std::vector<CDCSimHit> simHitsRelatedToHits;
180 for (
const CDCHit& hit : storeArray) {
181 simHitsRelatedToHits.push_back(*hit.getRelated<
CDCSimHit>(
"CDCSimHits"));
183 B2INFO(
"#CDCSimHits: " << storeArray.
getEntries());
195 const std::string& stroke,
196 const std::string& strokeWidth)
199 if (stroke !=
"") styling.
setStroke(stroke);
201 drawStoreVector<const CDCWireHitCluster>(storeObjName, styling);
205 const std::string& stroke,
206 const std::string& strokeWidth)
209 if (stroke !=
"") styling.
setStroke(stroke);
211 drawStoreVector<const CDCSegment2D>(storeObjName, styling);
215 const std::string& stroke,
216 const std::string& strokeWidth)
219 if (stroke !=
"") styling.
setStroke(stroke);
221 const bool drawTrajectories =
true;
222 drawStoreVector<const CDCSegment2D, drawTrajectories>(storeObjName, styling);
226 const std::string& stroke,
227 const std::string& strokeWidth)
230 if (stroke !=
"") styling.
setStroke(stroke);
232 drawStoreVector<const CDCAxialSegmentPair>(storeObjName, styling);
236 const std::string& stroke,
237 const std::string& strokeWidth)
240 if (stroke !=
"") styling.
setStroke(stroke);
242 drawStoreVector<const CDCSegmentPair>(storeObjName, styling);
246 const std::string& stroke,
247 const std::string& strokeWidth)
250 if (stroke !=
"") styling.
setStroke(stroke);
252 drawStoreVector<const CDCSegmentTriple>(storeObjName, styling);
256 const std::string& stroke,
257 const std::string& strokeWidth)
260 if (stroke !=
"") styling.
setStroke(stroke);
262 const bool drawTrajectories =
true;
263 drawStoreVector<const CDCSegmentTriple, drawTrajectories>(storeObjName, styling);
267 const std::string& stroke,
268 const std::string& strokeWidth)
271 if (stroke !=
"") styling.
setStroke(stroke);
273 drawStoreVector<const CDCTrack>(storeObjName, styling);
277 const std::string& stroke,
278 const std::string& strokeWidth)
281 if (stroke !=
"") styling.
setStroke(stroke);
283 const bool drawTrajectories =
true;
284 drawStoreVector<const CDCTrack, drawTrajectories>(storeObjName, styling);
288 const std::string& stroke,
289 const std::string& strokeWidth)
292 if (stroke !=
"") styling.
setStroke(stroke);
294 drawStoreArray<const RecoTrack>(storeArrayName, styling);
298 const std::string& stroke,
299 const std::string& strokeWidth)
302 if (stroke !=
"") styling.
setStroke(stroke);
304 const bool drawTrajectories =
true;
305 drawStoreArray<const RecoTrack, drawTrajectories>(storeArrayName, styling);
309 const std::string& stroke,
310 const std::string& strokeWidth)
313 if (stroke !=
"") styling.
setStroke(stroke);
315 const bool drawTrajectories =
true;
316 drawStoreArray<const MCParticle, drawTrajectories>(storeArrayName, styling);
320 const std::string& stroke,
321 const std::string& strokeWidth)
323 B2INFO(
"Drawing simulated hits connected by tof");
325 if (not hitStoreArray) {
326 B2WARNING(
"StoreArray " << hitStoreArrayName <<
" not present");
327 printDataStoreContent();
330 std::vector<CDCSimHit*> simHits;
331 for (
const CDCHit& hit : hitStoreArray) {
332 simHits.push_back(hit.getRelated<
CDCSimHit>());
336 std::map<int, std::set<CDCSimHit*, FlightTimeOrder>> simHitsByMcParticleId;
339 if (mcParticle !=
nullptr) {
341 simHitsByMcParticleId[mcTrackId].insert(simHit);
345 AttributeMap defaultAttributeMap = {{
"stroke", stroke}, {
"stroke-width", strokeWidth}};
347 for (
const auto& mcParticleIdAndSimHits : simHitsByMcParticleId) {
348 const std::set<CDCSimHit*, FlightTimeOrder>& simHitsForMcParticle =
349 mcParticleIdAndSimHits.second;
351 auto drawConnectSimHits = [
this, &defaultAttributeMap](
CDCSimHit * fromSimHit,
CDCSimHit * toSimHit) {
355 if (fromHit ==
nullptr)
return false;
356 if (toHit ==
nullptr)
return false;
365 Vector3D toDisplacement(toSimHit->getPosTrack() - toSimHit->getPosWire());
370 bool falseOrder =
false;
371 if (fromSimHit->
getArrayIndex() > toSimHit->getArrayIndex()) {
373 bool toReassigned = toHit->getRelatedWithWeight<
MCParticle>().second < 0;
374 if (not fromReassigned and not toReassigned) {
379 AttributeMap attributeMap = defaultAttributeMap;
381 attributeMap[
"stroke"] =
"red";
382 attributeMap[
"stroke-width"] =
"1.0";
384 draw(fromRecoHit2D, attributeMap);
385 draw(toRecoHit2D, attributeMap);
388 const float fromX = fromPos.
x();
389 const float fromY = fromPos.
y();
392 const float toX = toPos.
x();
393 const float toY = toPos.
y();
399 std::ignore = std::adjacent_find(simHitsForMcParticle.begin(),
400 simHitsForMcParticle.end(),
407 this->drawWrongRLHits<CDCSegment2D>(segmentsStoreObjName);
412 this->drawWrongRLHits<CDCTrack>(tracksStoreObjName);
417template<
class ACDCHitCollection>
420 B2INFO(
"Draw wrong right left passage information from " << hitCollectionsStoreObjName);
422 if (not storedHitCollections) {
423 B2WARNING(hitCollectionsStoreObjName <<
"does not exist in current DataStore");
424 printDataStoreContent();
428 std::vector<ACDCHitCollection>& hitCollections = *storedHitCollections;
429 B2INFO(
"#HitCollections: " << hitCollections.size());
434 for (
const ACDCHitCollection& hitCollection : hitCollections) {
437 double rlPurity = mcHitCollectionLookUp.
getRLPurity(&hitCollection);
441 if (rlPurity < 0.5 and hitCollection.getAutomatonCell().hasAliasFlag())
continue;
444 if (correctRLVote < 0 and hitCollection.getAutomatonCell().hasReverseFlag())
continue;
447 for (
const auto& recoHit : hitCollection) {
449 const CDCHit* hit = recoHit.getWireHit().getHit();
452 if (fbInfo == EForwardBackward::c_Backward) {
453 mcRLInfo = reversed(mcRLInfo);
456 std::string color =
"orange";
457 if (mcRLInfo != ERightLeft::c_Right and mcRLInfo != ERightLeft::c_Left) {
459 }
else if (mcRLInfo == rlInfo) {
461 }
else if (mcRLInfo == -rlInfo) {
465 AttributeMap attributeMap{{
"stroke", color}};
474 const std::string& stroke,
475 const std::string& strokeWidth)
477 B2INFO(
"Draw axial to axial segment pairs");
479 if (not storedSegments) {
480 B2WARNING(segmentsStoreObjName <<
"does not exist in current DataStore");
481 printDataStoreContent();
485 std::vector<CDCSegment2D>& segments = *storedSegments;
486 B2INFO(
"#Segments: " << segments.size());
488 std::vector<const CDCAxialSegment2D*> axialSegments;
490 if (segment.isAxial()) axialSegments.push_back(&segment);
494 std::vector<CDCAxialSegmentPair> mcAxialSegmentPairs;
497 if (fromSegment == toSegment)
continue;
498 mcAxialSegmentPairs.emplace_back(fromSegment, toSegment);
499 Weight mcWeight = mcAxialSegmentPairFilter(mcAxialSegmentPairs.back());
501 if (std::isnan(mcWeight)) {
502 mcAxialSegmentPairs.pop_back();
506 B2INFO(
"# Axial segment pairs: " << mcAxialSegmentPairs.size());
508 if (stroke !=
"") styling.
setStroke(stroke);
509 if (strokeWidth !=
"") styling.
setStroke(strokeWidth);
514 const std::string& stroke,
515 const std::string& strokeWidth)
517 B2INFO(
"Draw axial to stero segment pairs");
519 if (not storedSegments) {
520 B2WARNING(segmentsStoreObjName <<
"does not exist in current DataStore");
521 printDataStoreContent();
525 std::vector<CDCSegment2D>& segments = *storedSegments;
526 B2INFO(
"#Segments: " << segments.size());
528 std::vector<const CDCAxialSegment2D*> axialSegments;
529 std::vector<const CDCStereoSegment2D*> stereoSegments;
531 if (segment.isAxial()) {
532 axialSegments.push_back(&segment);
534 stereoSegments.push_back(&segment);
539 std::vector<CDCSegmentPair> mcSegmentPairs;
544 mcSegmentPairs.emplace_back(axialSegment, stereoSegment);
545 Weight mcWeight = mcSegmentPairFilter(mcSegmentPairs.back());
547 if (std::isnan(mcWeight)) {
548 mcSegmentPairs.pop_back();
553 mcSegmentPairs.emplace_back(stereoSegment, axialSegment);
554 Weight mcWeight = mcSegmentPairFilter(mcSegmentPairs.back());
556 if (std::isnan(mcWeight)) {
557 mcSegmentPairs.pop_back();
562 B2INFO(
"# Segment pairs: " << mcSegmentPairs.size());
564 if (stroke !=
"") styling.
setStroke(stroke);
565 if (strokeWidth !=
"") styling.
setStroke(strokeWidth);
570 const std::string& stroke,
571 const std::string& strokeWidth)
573 B2INFO(
"Draw segment triples");
575 if (not storedSegments) {
576 B2WARNING(segmentsStoreObjName <<
"does not exist in current DataStore");
577 printDataStoreContent();
581 std::vector<CDCSegment2D>& segments = *storedSegments;
582 B2INFO(
"#Segment " << segments.size());
584 std::vector<const CDCAxialSegment2D*> axialSegments;
585 std::vector<const CDCStereoSegment2D*> stereoSegments;
587 if (segment.isAxial()) {
588 axialSegments.push_back(&segment);
590 stereoSegments.push_back(&segment);
595 std::vector<CDCSegmentTriple> mcSegmentTriples;
599 if (startSegment == endSegment)
continue;
600 mcSegmentTriples.emplace_back(startSegment, middleSegment, endSegment);
601 Weight mcWeight = mcSegmentTripleFilter(mcSegmentTriples.back());
603 if (std::isnan(mcWeight)) {
604 mcSegmentTriples.pop_back();
609 B2INFO(
"# Segment triples: " << mcSegmentTriples.size());
611 if (stroke !=
"") styling.
setStroke(stroke);
612 if (strokeWidth !=
"") styling.
setStroke(strokeWidth);
621 float width = boundingBox.
getWidth();
623 int totalPoints = 1120 * 1120;
624 float svgHeight = roundf(
sqrt(totalPoints * height / width));
625 float svgWidth = roundf(
sqrt(totalPoints * width / height));
635template <
class AItem,
bool a_drawTrajectories>
639 if (a_drawTrajectories) {
640 B2INFO(
"Drawing trajectories from StoreArray: " << storeArrayName);
642 B2INFO(
"Drawing StoreArray: " << storeArrayName);
645 using StoreItem =
typename std::remove_cv<AItem>::type;
647 if (not storeArray) {
648 B2WARNING(storeArrayName <<
" not present in the DataStore");
649 printDataStoreContent();
653 B2INFO(
"with " << storeArray.getEntries() <<
" entries");
654 drawIterable<a_drawTrajectories>(storeArray, styling);
655 B2INFO(
"Attributes are");
656 B2INFO(styling.
info());
659template <
class AItem,
bool a_drawTrajectories>
663 if (a_drawTrajectories) {
664 B2INFO(
"Drawing trajectories for vector from DataStore: " << storeObjName);
666 B2INFO(
"Drawing vector from DataStore: " << storeObjName);
669 using StoreItem =
typename std::remove_cv<AItem>::type;
671 if (not storeVector) {
672 B2WARNING(storeObjName <<
" not present in the DataStore");
673 B2INFO(
"Current content of the DataStore:");
674 printDataStoreContent();
678 const std::vector<StoreItem>& vector = *storeVector;
679 B2INFO(
"with " << vector.size() <<
" entries");
680 drawIterable<a_drawTrajectories>(reversedRange(vector), styling);
681 B2INFO(
"Attributes are");
682 B2INFO(styling.
info());
685template <
bool a_drawTrajectory,
class AIterable,
class AStyling>
688 unsigned int index = -1;
689 for (
const auto& item : items) {
692 AttributeMap attributeMap = styling.map(index, item);
693 draw<a_drawTrajectory>(item, attributeMap);
697template <
bool a_drawTrajectory,
class AObject>
Class containing the result of the unpacker in raw data and the result of the digitizer in simulation...
B2Vector3D getPosWire() const
The method to get position on wire.
B2Vector3D getPosTrack() const
The method to get position on the track.
EDurability
Durability types.
static DataStore & Instance()
Instance of singleton Store.
A Class to store the Monte Carlo particle information.
int getArrayIndex() const
Get 0-based index of the particle in the corresponding MCParticle list.
int getArrayIndex() const
Returns this object's array index (in StoreArray), or -1 if not found.
T * getRelated(const std::string &name="", const std::string &namedRelation="") const
Get the object to or from which this object has a relation.
std::pair< T *, float > getRelatedWithWeight(const std::string &name="", const std::string &namedRelation="") const
Get first related object & weight of relation pointing from/to an array.
Accessor to arrays stored in the data store.
int getEntries() const
Get the number of objects in the array.
A two dimensional rectangle that keeps track of the extend of a drawing.
float getWidth() const
Getter for the width of the bounding box rectangle.
float getHeight() const
Getter for the height of the bounding box rectangle.
Interface class to the Monte Carlo information for collections of hits.
EForwardBackward isForwardOrBackwardToMCTrack(const ACDCHitCollection *ptrHits) const
Returns the orientation of the collection of hits relative to its matched track.
int getCorrectRLVote(const ACDCHitCollection *ptrHits) const
Getter for the difference of correct versus incorrect right left passage information.
double getRLPurity(const ACDCHitCollection *ptrHits) const
Getter for the right left passge purity which respects the forward backward reconstruction.
Interface class to the Monte Carlo information for individual hits.
static const CDCMCHitLookUp & getInstance()
Getter for the singletone instance.
ERightLeft getRLInfo(const CDCHit *ptrHit) const
Returns the true right left passage information.
Class representing an oriented hit wire including a hypotheses whether the causing track passes left ...
Class representing a two dimensional reconstructed hit in the central drift chamber.
Vector2D getRecoPos2D() const
Getter for the position in the reference plane.
Helper class to generated the svg image from the various tracking objects.
void drawInteractionPoint()
Draws the interaction point.
CDCSVGPlotter * clone()
Make a copy of the current status of the plotter.
void drawAxialSegmentPairs(const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth)
Draw the axial to axial segment pairs.
void drawSegmentTriples(const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth)
Draw the axial, stereo, axial segment triples.
void drawRecoTrackTrajectories(const std::string &storeArrayName, const std::string &stroke, const std::string &strokeWidth)
Draw RecoTracks trajectories.
void drawIterable(const AIterable &items, AStyling &styling)
Draw every element of an iterable object.
void drawMCAxialSegmentPairs(const std::string &segmentsStoreObjName, const std::string &stroke, const std::string &strokeWidth)
Draws the Monte Carlo true CDCAxialSegmentPairs.
void drawSimHitsConnectByToF(const std::string &simHitStoreArrayName, const std::string &stroke, const std::string &strokeWidth)
Draw the CDCSimHits connected in the order of their getFlightTime for each Monte Carlo particle.
void draw(const AObject &object, const AttributeMap &attributeMap)
Draws the object or its trajectory with the given attributes.
void drawHits(const std::string &storeArrayName, const std::string &stroke, const std::string &strokeWidth)
Draws CDCHits.
void drawWrongRLHits(const std::string &storeObjName)
Draw the CDCRLWireHits in the ACDCHitCollection colored by the match of the right left passage inform...
CDCSVGPlotter(bool animate=false, bool forwardFade=false)
Constructor.
void drawInnerCDCWall(const std::string &stroke)
Draws the inner CDCWall.
void drawWrongRLHitsInTracks(const std::string &tracksStoreObjName)
Draw the CDCRLWireHits in the CDCTracks colored by the match of the right left passage information.
void drawTrackTrajectories(const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth)
Draws trajectories of the tracks.
void drawOuterCDCWall(const std::string &stroke)
Draws the outer CDCWall.
void drawSuperLayerBoundaries(const std::string &stroke)
Draws the individual super layer boundaries.
void drawMCSegmentTriples(const std::string &segmentsStoreObjName, const std::string &stroke, const std::string &strokeWidth)
Draws the Monte Carlo true CDCSegmentTriples.
void drawSegmentTripleTrajectories(const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth)
Draw the trajectories of the axial, stereo, axial segment triples.
void drawMCSegmentPairs(const std::string &segmentsStoreObjName, const std::string &stroke, const std::string &strokeWidth)
Draws the Monte Carlo true CDCSegmentPairs.
std::string saveFile(const std::string &fileName="display.svg")
Save the current dom object representation to disk.
void drawStoreArray(const std::string &storeArrayName, Styling< AItem > &styling)
Function Template for drawing the elements of a given StoreArray.
void drawWrongRLHitsInSegments(const std::string &segmentsStoreObjName)
Draw the CDCRLWireHits in the CDCSegments colored by the match of the right left passage information.
void drawSegmentTrajectories(const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth)
Draws SegmentTrajectories.
void drawMCParticleTrajectories(const std::string &storeArrayName, const std::string &stroke, const std::string &strokeWidth)
Draw MCParticles.
void drawSegmentPairs(const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth)
Draw the axial to stereo segment pairs.
void drawClusters(const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth)
Draws CDCWireHitClusters.
void drawTracks(const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth)
Draws CDCTracks.
void drawStoreVector(const std::string &storeObjName, Styling< AItem > &styling)
Function Template for drawing the elements of a given StoreVector.
void drawRecoTracks(const std::string &storeArrayName, const std::string &stroke, const std::string &strokeWidth)
Draw RecoTracks.
EventDataPlotter m_eventdataPlotter
The plotter instance to translate event data objects to svg expressions.
void drawSegments(const std::string &storeObjName, const std::string &stroke, const std::string &strokeWidth)
Draws CDCSegments.
void drawSimHits(const std::string &storeArrayName, const std::string &stroke, const std::string &strokeWidth)
Draws CDCSimHits.
void drawWires(const CDCWireTopology &cdcWireTopology)
Draws the wires.
A reconstructed sequence of two dimensional hits in one super layer.
Class representing a hit wire in the central drift chamber.
Class representing the sense wire arrangement in the whole of the central drift chamber.
This Class handles the mapping from the colormapping-method name given as a string to the actual colo...
This Class handles the mapping from the colormapping-method name given as a string to the actual colo...
This Class handles the mapping from the colormapping-method name given as a string to the actual ACol...
void setStrokeWidth(const std::string &mappingName)
Legacy method to set the mapping on how to match a object to the stroke width.
void setStroke(const std::string &mappingName)
Legacy method to set the mapping on how to match a object to the stroke color.
Class template for coloring objects with stroke colors prepared to be the default color cycle.
A class that can plot event related data types.
void drawInteractionPoint()
Marks the position of the interaction point with a filled circle.
void setCanvasHeight(float height)
Setter for the canvas height in pixels The canvas height denotes the size of the image being produced...
void setBoundingBox(const BoundingBox &boundingBox)
Setter for the bounding box of all drawn objects.
void drawOuterCDCWall(const AttributeMap &attributeMap=AttributeMap())
Draw the outer wall of the CDC.
void drawInnerCDCWall(const AttributeMap &attributeMap=AttributeMap())
Draw the inner wall of the CDC.
void startGroup(const AttributeMap &attributeMap=AttributeMap())
Indicates the start of a group of drawn elements.
void setCanvasWidth(float width)
Setter for the canvas width in pixels.
const std::string save(const std::string &fileName)
Saves the current plot stead to a file.
BoundingBox getBoundingBox() const
Getter for the current bounding box.
void drawSuperLayerBoundaries(const AttributeMap &attributeMap=AttributeMap())
Draw the super layer bounds of the CDC.
void draw(const Belle2::TrackFindingCDC::Circle2D &circle, AttributeMap attributeMap=AttributeMap())
Draws a filled circle.
void drawLine(float startX, float startY, float endX, float endY, const AttributeMap &attributeMap=AttributeMap())
Draws a straight Line.
void endGroup()
Indicates the end of a group of drawn elements.
Implementation of a styling from fixed attribute map.
void setStrokeWidth(const std::string &value)
Legacy - Sets the stroke width to the fixed value.
void setStroke(const std::string &value)
Legacy - Sets the stroke color to the fixed value.
Filter for the construction of axial to axial segment pairs based on simple criteria.
Filter for the construction of axial to stereo segment pairs based on MC information.
Filter for the construction of segment triples based on Monte Carlo information.
A concrete plotter that can draw primitive objects to standalone SVG files.
This class is for convenience access and registration of objects, that are stored inside the StoreWra...
Interface for a mapping of object and an index to styling attributes.
virtual std::string info()
Informal string summarizing the translation from the object to the styling attributes.
A two dimensional vector which is equipped with functions for correct handling of orientation relate...
double x() const
Getter for the x coordinate.
double y() const
Getter for the y coordinate.
A three dimensional vector.
const Vector2D & xy() const
Getter for the xy projected vector ( reference ! )
double sqrt(double a)
sqrt for double
EForwardBackward
Enumeration to represent the distinct possibilities of the right left passage information.
ERightLeft
Enumeration to represent the distinct possibilities of the right left passage.
Abstract base class for different kinds of events.