00001 // @(#)root/gviz3d:$Id: TStructNodeProperty.h 29940 2009-08-27 16:33:32Z brun $ 00002 // Author: Tomasz Sosnicki 18/09/09 00003 00004 /************************************************************************ 00005 * Copyright (C) 1995-2009, Rene Brun and Fons Rademakers. * 00006 * All rights reserved. * 00007 * * 00008 * For the licensing terms see $ROOTSYS/LICENSE. * 00009 * For the list of contributors see $ROOTSYS/README/CREDITS. * 00010 *************************************************************************/ 00011 00012 #ifndef ROOT_TStructNodeProperty 00013 #define ROOT_TStructNodeProperty 00014 00015 #include <TNamed.h> 00016 #include <TColor.h> 00017 #include <TGColorSelect.h> 00018 00019 class TStructNodeProperty : public TNamed { 00020 00021 private: 00022 TColor fColor; // Color of a class 00023 00024 public: 00025 TStructNodeProperty(const char * name, Int_t color); 00026 TStructNodeProperty(const char * name, Pixel_t pixel); 00027 ~TStructNodeProperty(); 00028 00029 TColor GetColor() const; 00030 Pixel_t GetPixel() const; 00031 void SetColor(const TColor & color); 00032 void SetColor(Pixel_t pixel); 00033 void SetColor(Int_t color); 00034 Int_t Compare(const TObject* obj) const; 00035 Bool_t IsSortable() const; 00036 00037 ClassDef(TStructNodeProperty, 1); // Class with nodes color property 00038 }; 00039 00040 #endif