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>
44 using namespace TrackFindingCDC;
47 template<
bool a_drawTrajectory,
class AObject>
48 struct DrawTrajectoryHelper;
50 template<
class AObject>
51 struct DrawTrajectoryHelper<true, AObject> {
53 static void draw(
EventDataPlotter& plotter, AObject&
object,
const AttributeMap& attributeMap)
55 plotter.drawTrajectory(
object, attributeMap);
59 template<
class AObject>
60 struct DrawTrajectoryHelper<false, AObject> {
62 static void draw(
EventDataPlotter& plotter, AObject&
object,
const AttributeMap& attributeMap)
64 plotter.draw(
object, attributeMap);
71 class FlightTimeOrder {
76 return (x->getFlightTime() < y->getFlightTime());
81 static void printDataStoreContent()
83 B2INFO(
"Current content of the DataStore:");
84 B2INFO(
"StoreArrays:");
89 B2INFO(
"StoreObjPtr:");
95 const AttributeMap c_defaultSVGAttributes({
97 {
"stroke-width",
"0.55"},
99 {
"transform",
"translate(0, 1120) scale(1,-1)"}
103 m_eventdataPlotter(std::make_unique<
SVGPrimitivePlotter>(c_defaultSVGAttributes), animate, forwardFade)
111 int default_width = 1120;
112 int default_height = 1120;
131 AttributeMap attributeMap;
132 attributeMap.emplace(
"stroke", stroke);
138 AttributeMap attributeMap;
139 attributeMap.emplace(
"stroke", stroke);
145 AttributeMap attributeMap;
146 attributeMap.emplace(
"stroke", stroke);
156 const std::string& stroke,
157 const std::string& strokeWidth)
160 if (stroke !=
"") styling.
setStroke(stroke);
162 drawStoreArray<const CDCHit>(storeArrayName, styling);
166 const std::string& stroke,
167 const std::string& strokeWidth)
169 B2INFO(
"Drawing simulated hits");
171 if (not storeArray) {
172 B2WARNING(
"StoreArray " << storeArrayName <<
" not present");
173 printDataStoreContent();
176 std::vector<CDCSimHit> simHitsRelatedToHits;
177 for (
const CDCHit& hit : storeArray) {
178 simHitsRelatedToHits.push_back(*hit.getRelated<
CDCSimHit>(
"CDCSimHits"));
180 B2INFO(
"#CDCSimHits: " << storeArray.
getEntries());
192 const std::string& stroke,
193 const std::string& strokeWidth)
196 if (stroke !=
"") styling.
setStroke(stroke);
198 drawStoreVector<const CDCWireHitCluster>(storeObjName, styling);
202 const std::string& stroke,
203 const std::string& strokeWidth)
206 if (stroke !=
"") styling.
setStroke(stroke);
208 drawStoreVector<const CDCSegment2D>(storeObjName, styling);
212 const std::string& stroke,
213 const std::string& strokeWidth)
216 if (stroke !=
"") styling.
setStroke(stroke);
218 const bool drawTrajectories =
true;
219 drawStoreVector<const CDCSegment2D, drawTrajectories>(storeObjName, styling);
223 const std::string& stroke,
224 const std::string& strokeWidth)
227 if (stroke !=
"") styling.
setStroke(stroke);
229 drawStoreVector<const CDCAxialSegmentPair>(storeObjName, styling);
233 const std::string& stroke,
234 const std::string& strokeWidth)
237 if (stroke !=
"") styling.
setStroke(stroke);
239 drawStoreVector<const CDCSegmentPair>(storeObjName, styling);
243 const std::string& stroke,
244 const std::string& strokeWidth)
247 if (stroke !=
"") styling.
setStroke(stroke);
249 drawStoreVector<const CDCSegmentTriple>(storeObjName, styling);
253 const std::string& stroke,
254 const std::string& strokeWidth)
257 if (stroke !=
"") styling.
setStroke(stroke);
259 const bool drawTrajectories =
true;
260 drawStoreVector<const CDCSegmentTriple, drawTrajectories>(storeObjName, styling);
264 const std::string& stroke,
265 const std::string& strokeWidth)
268 if (stroke !=
"") styling.
setStroke(stroke);
270 drawStoreVector<const CDCTrack>(storeObjName, styling);
274 const std::string& stroke,
275 const std::string& strokeWidth)
278 if (stroke !=
"") styling.
setStroke(stroke);
280 const bool drawTrajectories =
true;
281 drawStoreVector<const CDCTrack, drawTrajectories>(storeObjName, styling);
285 const std::string& stroke,
286 const std::string& strokeWidth)
289 if (stroke !=
"") styling.
setStroke(stroke);
291 drawStoreArray<const RecoTrack>(storeArrayName, styling);
295 const std::string& stroke,
296 const std::string& strokeWidth)
299 if (stroke !=
"") styling.
setStroke(stroke);
301 const bool drawTrajectories =
true;
302 drawStoreArray<const RecoTrack, drawTrajectories>(storeArrayName, styling);
306 const std::string& stroke,
307 const std::string& strokeWidth)
310 if (stroke !=
"") styling.
setStroke(stroke);
312 const bool drawTrajectories =
true;
313 drawStoreArray<const MCParticle, drawTrajectories>(storeArrayName, styling);
317 const std::string& stroke,
318 const std::string& strokeWidth)
320 B2INFO(
"Drawing simulated hits connected by tof");
322 if (not hitStoreArray) {
323 B2WARNING(
"StoreArray " << hitStoreArrayName <<
" not present");
324 printDataStoreContent();
327 std::vector<CDCSimHit*> simHits;
328 for (
const CDCHit& hit : hitStoreArray) {
329 simHits.push_back(hit.getRelated<
CDCSimHit>());
333 std::map<int, std::set<CDCSimHit*, FlightTimeOrder>> simHitsByMcParticleId;
336 if (mcParticle !=
nullptr) {
338 simHitsByMcParticleId[mcTrackId].insert(simHit);
342 AttributeMap defaultAttributeMap = {{
"stroke", stroke}, {
"stroke-width", strokeWidth}};
344 for (
const auto& mcParticleIdAndSimHits : simHitsByMcParticleId) {
345 const std::set<CDCSimHit*, FlightTimeOrder>& simHitsForMcParticle =
346 mcParticleIdAndSimHits.second;
348 auto drawConnectSimHits = [
this, &defaultAttributeMap](
CDCSimHit * fromSimHit,
CDCSimHit * toSimHit) {
352 if (fromHit ==
nullptr)
return false;
353 if (toHit ==
nullptr)
return false;
362 Vector3D toDisplacement(toSimHit->getPosTrack() - toSimHit->getPosWire());
367 bool falseOrder =
false;
368 if (fromSimHit->
getArrayIndex() > toSimHit->getArrayIndex()) {
370 bool toReassigned = toHit->getRelatedWithWeight<
MCParticle>().second < 0;
371 if (not fromReassigned and not toReassigned) {
376 AttributeMap attributeMap = defaultAttributeMap;
378 attributeMap[
"stroke"] =
"red";
379 attributeMap[
"stroke-width"] =
"1.0";
381 draw(fromRecoHit2D, attributeMap);
382 draw(toRecoHit2D, attributeMap);
385 const float fromX = fromPos.
x();
386 const float fromY = fromPos.
y();
389 const float toX = toPos.
x();
390 const float toY = toPos.
y();
397 std::adjacent_find(simHitsForMcParticle.begin(),
398 simHitsForMcParticle.end(),
405 this->drawWrongRLHits<CDCSegment2D>(segmentsStoreObjName);
410 this->drawWrongRLHits<CDCTrack>(tracksStoreObjName);
415 template<
class ACDCHitCollection>
418 B2INFO(
"Draw wrong right left passage information from " << hitCollectionsStoreObjName);
420 if (not storedHitCollections) {
421 B2WARNING(hitCollectionsStoreObjName <<
"does not exist in current DataStore");
422 printDataStoreContent();
426 std::vector<ACDCHitCollection>& hitCollections = *storedHitCollections;
427 B2INFO(
"#HitCollections: " << hitCollections.size());
432 for (
const ACDCHitCollection& hitCollection : hitCollections) {
435 double rlPurity = mcHitCollectionLookUp.
getRLPurity(&hitCollection);
439 if (rlPurity < 0.5 and hitCollection.getAutomatonCell().hasAliasFlag())
continue;
442 if (correctRLVote < 0 and hitCollection.getAutomatonCell().hasReverseFlag())
continue;
445 for (
const auto& recoHit : hitCollection) {
447 const CDCHit* hit = recoHit.getWireHit().getHit();
450 if (fbInfo == EForwardBackward::c_Backward) {
451 mcRLInfo = reversed(mcRLInfo);
454 std::string color =
"orange";
455 if (mcRLInfo != ERightLeft::c_Right and mcRLInfo != ERightLeft::c_Left) {
457 }
else if (mcRLInfo == rlInfo) {
459 }
else if (mcRLInfo == -rlInfo) {
463 AttributeMap attributeMap{{
"stroke", color}};
472 const std::string& stroke,
473 const std::string& strokeWidth)
475 B2INFO(
"Draw axial to axial segment pairs");
477 if (not storedSegments) {
478 B2WARNING(segmentsStoreObjName <<
"does not exist in current DataStore");
479 printDataStoreContent();
483 std::vector<CDCSegment2D>& segments = *storedSegments;
484 B2INFO(
"#Segments: " << segments.size());
486 std::vector<const CDCAxialSegment2D*> axialSegments;
488 if (segment.isAxial()) axialSegments.push_back(&segment);
492 std::vector<CDCAxialSegmentPair> mcAxialSegmentPairs;
495 if (fromSegment == toSegment)
continue;
496 mcAxialSegmentPairs.emplace_back(fromSegment, toSegment);
497 Weight mcWeight = mcAxialSegmentPairFilter(mcAxialSegmentPairs.back());
499 if (std::isnan(mcWeight)) {
500 mcAxialSegmentPairs.pop_back();
504 B2INFO(
"# Axial segment pairs: " << mcAxialSegmentPairs.size());
506 if (stroke !=
"") styling.
setStroke(stroke);
507 if (strokeWidth !=
"") styling.
setStroke(strokeWidth);
512 const std::string& stroke,
513 const std::string& strokeWidth)
515 B2INFO(
"Draw axial to stero segment pairs");
517 if (not storedSegments) {
518 B2WARNING(segmentsStoreObjName <<
"does not exist in current DataStore");
519 printDataStoreContent();
523 std::vector<CDCSegment2D>& segments = *storedSegments;
524 B2INFO(
"#Segments: " << segments.size());
526 std::vector<const CDCAxialSegment2D*> axialSegments;
527 std::vector<const CDCStereoSegment2D*> stereoSegments;
529 if (segment.isAxial()) {
530 axialSegments.push_back(&segment);
532 stereoSegments.push_back(&segment);
537 std::vector<CDCSegmentPair> mcSegmentPairs;
542 mcSegmentPairs.emplace_back(axialSegment, stereoSegment);
543 Weight mcWeight = mcSegmentPairFilter(mcSegmentPairs.back());
545 if (std::isnan(mcWeight)) {
546 mcSegmentPairs.pop_back();
551 mcSegmentPairs.emplace_back(stereoSegment, axialSegment);
552 Weight mcWeight = mcSegmentPairFilter(mcSegmentPairs.back());
554 if (std::isnan(mcWeight)) {
555 mcSegmentPairs.pop_back();
560 B2INFO(
"# Segment pairs: " << mcSegmentPairs.size());
562 if (stroke !=
"") styling.
setStroke(stroke);
563 if (strokeWidth !=
"") styling.
setStroke(strokeWidth);
568 const std::string& stroke,
569 const std::string& strokeWidth)
571 B2INFO(
"Draw segment triples");
573 if (not storedSegments) {
574 B2WARNING(segmentsStoreObjName <<
"does not exist in current DataStore");
575 printDataStoreContent();
579 std::vector<CDCSegment2D>& segments = *storedSegments;
580 B2INFO(
"#Segment " << segments.size());
582 std::vector<const CDCAxialSegment2D*> axialSegments;
583 std::vector<const CDCStereoSegment2D*> stereoSegments;
585 if (segment.isAxial()) {
586 axialSegments.push_back(&segment);
588 stereoSegments.push_back(&segment);
593 std::vector<CDCSegmentTriple> mcSegmentTriples;
597 if (startSegment == endSegment)
continue;
598 mcSegmentTriples.emplace_back(startSegment, middleSegment, endSegment);
599 Weight mcWeight = mcSegmentTripleFilter(mcSegmentTriples.back());
601 if (std::isnan(mcWeight)) {
602 mcSegmentTriples.pop_back();
607 B2INFO(
"# Segment triples: " << mcSegmentTriples.size());
609 if (stroke !=
"") styling.
setStroke(stroke);
610 if (strokeWidth !=
"") styling.
setStroke(strokeWidth);
619 float width = boundingBox.
getWidth();
621 int totalPoints = 1120 * 1120;
622 float svgHeight = roundf(
sqrt(totalPoints * height / width));
623 float svgWidth = roundf(
sqrt(totalPoints * width / height));
633 template <
class AItem,
bool a_drawTrajectories>
637 if (a_drawTrajectories) {
638 B2INFO(
"Drawing trajectories from StoreArray: " << storeArrayName);
640 B2INFO(
"Drawing StoreArray: " << storeArrayName);
643 using StoreItem =
typename std::remove_cv<AItem>::type;
645 if (not storeArray) {
646 B2WARNING(storeArrayName <<
" not present in the DataStore");
647 printDataStoreContent();
651 B2INFO(
"with " << storeArray.getEntries() <<
" entries");
652 drawIterable<a_drawTrajectories>(storeArray, styling);
653 B2INFO(
"Attributes are");
654 B2INFO(styling.
info());
657 template <
class AItem,
bool a_drawTrajectories>
661 if (a_drawTrajectories) {
662 B2INFO(
"Drawing trajectories for vector from DataStore: " << storeObjName);
664 B2INFO(
"Drawing vector from DataStore: " << storeObjName);
667 using StoreItem =
typename std::remove_cv<AItem>::type;
669 if (not storeVector) {
670 B2WARNING(storeObjName <<
" not present in the DataStore");
671 B2INFO(
"Current content of the DataStore:");
672 printDataStoreContent();
676 const std::vector<StoreItem>& vector = *storeVector;
677 B2INFO(
"with " << vector.size() <<
" entries");
678 drawIterable<a_drawTrajectories>(reversedRange(vector), styling);
679 B2INFO(
"Attributes are");
680 B2INFO(styling.
info());
683 template <
bool a_drawTrajectory,
class AIterable,
class AStyling>
686 unsigned int index = -1;
687 for (
const auto& item : items) {
690 AttributeMap attributeMap = styling.map(index, item);
691 draw<a_drawTrajectory>(item, attributeMap);
695 template <
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.
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.
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.
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 informations.
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 informations.
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 informations...
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 representating 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 drawed 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 constuction of axial to axial segment pairs based on simple criterions.
Filter for the constuction of axial to stereo segment pairs based on MC information.
Filter for the constuction 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 handeling of orientation relat...
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.