16 ClassImp(TStructNodeProperty);
32 TStructNodeProperty::TStructNodeProperty(
const char * name, Int_t color)
41 TStructNodeProperty::TStructNodeProperty(
const char * name, Pixel_t pixel)
50 TStructNodeProperty::~TStructNodeProperty()
57 Int_t TStructNodeProperty::Compare(
const TObject* obj)
const
64 TStructNodeProperty* prop = (TStructNodeProperty*)obj;
65 TString propName(prop->GetName());
66 if (propName ==
"+") {
71 if (fName.EndsWith(
"+")) {
72 cl1 = TClass::GetClass(TString(fName.Data(), fName.Length()-1).Data());
74 cl1 = TClass::GetClass(fName.Data());
79 if (propName.EndsWith(
"+")) {
80 cl2 = TClass::GetClass(TString(propName.Data(), propName.Length()-1).Data());
82 cl2 = TClass::GetClass(prop->GetName());
92 if(cl1->InheritsFrom(cl2)) {
95 if(cl2->InheritsFrom(cl1)) {
112 TColor TStructNodeProperty::GetColor()
const
120 Pixel_t TStructNodeProperty::GetPixel()
const
122 return fColor.GetPixel();
128 Bool_t TStructNodeProperty::IsSortable()
const
136 void TStructNodeProperty::SetColor(
const TColor & color)
144 void TStructNodeProperty::SetColor(Int_t color)
146 fColor = *(gROOT->GetColor(color));
152 void TStructNodeProperty::SetColor(Pixel_t pixel)
154 SetColor(TColor::GetColor(pixel));