GSI Object Oriented Online Offline (Go4) GO4-6.4.0
Loading...
Searching...
No Matches
TGo4MarkerPainter.h
Go to the documentation of this file.
1// $Id$
2//-----------------------------------------------------------------------
3// The GSI Online Offline Object Oriented (Go4) Project
4// Experiment Data Processing at EE department, GSI
5//-----------------------------------------------------------------------
6// Copyright (C) 2000- GSI Helmholtzzentrum fuer Schwerionenforschung GmbH
7// Planckstr. 1, 64291 Darmstadt, Germany
8// Contact: http://go4.gsi.de
9//-----------------------------------------------------------------------
10// This software can be used under the license agreements as stated
11// in Go4License.txt file which is part of the distribution.
12//-----------------------------------------------------------------------
13
14#ifndef TGO4MARKERPAINTER_H
15#define TGO4MARKERPAINTER_H
16
17#include "TGo4LabelPainter.h"
18
19class TGo4Marker;
20
22 public:
24 TGo4MarkerPainter(const char *name, const char *title="Go4 MarkerPainter");
25 virtual ~TGo4MarkerPainter();
26
28 void PaintLabel(Option_t *opt = "") override;
29 void UnPaintLabel(Option_t *opt = "") override;
30 void PaintConnector(Option_t *opt = "");
31 void UnPaintConnector(Option_t *opt = "");
32 void DisplayToFront(Option_t *opt = "") override;
33
34 virtual void SetMarker(TGo4Marker* mark) { fxMarker=mark; }
35
36 protected:
37
39 Bool_t CheckConnector();
40
43
46
47 private:
49 Bool_t fbIsConStreamed{kFALSE};
50
51 ClassDefOverride(TGo4MarkerPainter,1)
52};
53
54#endif //TGO4MARKERPAINTER_H
Connection line for labels that knows its author.
void PaintLabel(Option_t *opt="") override
Display coordinate label for this marker.
void UnPaintLabel(Option_t *opt="") override
Erase the label.
TGo4Marker * fxMarker
Marker to be painted.
TGo4LabelConnector * fxConnector
Connection line between marker and label.
void PaintConnector(Option_t *opt="")
void UnPaintConnector(Option_t *opt="")
virtual void SetMarker(TGo4Marker *mark)
void DisplayToFront(Option_t *opt="") override
pop all components to the front of the pad
Bool_t fbIsConStreamed
Flag to handle streamed connector from file correctly.
Bool_t CheckConnector()
Check if connector is still existing.
Extended graphical marker class for go4 condition editor and viewpanel.
Definition TGo4Marker.h:32