CbmRoot
CbmPointSetArrayEditor.h
Go to the documentation of this file.
1 // -------------------------------------------------------------------------
2 // ----- CbmPointSetArrayEditor header file -----
3 // ----- Created 05/07/22 by J. Brandt -----
4 // ----- Following class TEvePointSetArrayEditor -----
5 // -------------------------------------------------------------------------
6 
7 
17 #ifndef CBMPOINTSETARRAYEDITOR_H
18 #define CBMPOINTSETARRAYEDITOR_H
19 
20 #include <GuiTypes.h> // for Pixel_t
21 #include <Rtypes.h> // for THashConsistencyHolder, ClassDef
22 #include <RtypesCore.h> // for Int_t, UInt_t
23 #include <TGFrame.h> // for kChildFrame
24 #include <TGedFrame.h> // for TGedFrame
25 
26 class CbmPointSetArray;
27 class TGComboBox;
28 class TGWindow;
29 class TObject;
30 
31 
32 class CbmPointSetArrayEditor : public TGedFrame {
33  CbmPointSetArrayEditor(const CbmPointSetArrayEditor&); // Not implemented
35  operator=(const CbmPointSetArrayEditor&); // Not implemented
36 
37 protected:
38  CbmPointSetArray* fM; // pointer to CbmPointSetArray
39  TGComboBox* fComboColor; // ComboBox for Color-Coding
40  TGComboBox* fComboMarker; // ComboBox for Marker-Coding
41 
42 public:
43  CbmPointSetArrayEditor(const TGWindow* p = 0,
44  Int_t width = 170,
45  Int_t height = 30,
46  UInt_t options = kChildFrame,
47  Pixel_t back = GetDefaultFrameBackground());
49 
50  virtual void SetModel(TObject* obj);
51 
52  void DoColor(); // perform when ComboBox Color is selected
53  void DoMarker(); // perform when ComboBox Marker is selected
54 
55  ClassDef(CbmPointSetArrayEditor, 0); // Editor for CbmPointSetArray class.
56 };
57 
58 #endif
CbmPointSetArrayEditor::fComboMarker
TGComboBox * fComboMarker
Definition: CbmPointSetArrayEditor.h:40
CbmPointSetArrayEditor::operator=
CbmPointSetArrayEditor & operator=(const CbmPointSetArrayEditor &)
CbmPointSetArrayEditor::CbmPointSetArrayEditor
CbmPointSetArrayEditor(const CbmPointSetArrayEditor &)
CbmPointSetArrayEditor::~CbmPointSetArrayEditor
~CbmPointSetArrayEditor()
Destructor.
Definition: CbmPointSetArrayEditor.cxx:78
CbmPointSetArray
Definition: CbmPointSetArray.h:23
CbmPointSetArrayEditor
Definition: CbmPointSetArrayEditor.h:32
CbmPointSetArrayEditor::DoMarker
void DoMarker()
Set the markerMode of CbmPointSetArray.
Definition: CbmPointSetArrayEditor.cxx:102
CbmPointSetArrayEditor::DoColor
void DoColor()
Set the colorMode of CbmPointSetArray.
Definition: CbmPointSetArrayEditor.cxx:93
CbmPointSetArrayEditor::fM
CbmPointSetArray * fM
Definition: CbmPointSetArrayEditor.h:38
CbmPointSetArrayEditor::ClassDef
ClassDef(CbmPointSetArrayEditor, 0)
CbmPointSetArrayEditor::fComboColor
TGComboBox * fComboColor
Definition: CbmPointSetArrayEditor.h:39
CbmPointSetArrayEditor::SetModel
virtual void SetModel(TObject *obj)
Set model object.
Definition: CbmPointSetArrayEditor.cxx:83