Back to home page

EIC code displayed by LXR

 
 

    


Warning, file /include/root/TStructNodeProperty.h was not indexed or was modified since last indexation (in which case cross-reference links may be missing, inaccurate or erroneous).

0001 // @(#)root/gviz3d:$Id$
0002 // Author: Tomasz Sosnicki   18/09/09
0003 
0004 /************************************************************************
0005 * Copyright (C) 1995-2009, Rene Brun and Fons Rademakers.               *
0006 * All rights reserved.                                                  *
0007 *                                                                       *
0008 * For the licensing terms see $ROOTSYS/LICENSE.                         *
0009 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
0010 *************************************************************************/
0011 
0012 #ifndef ROOT_TStructNodeProperty
0013 #define ROOT_TStructNodeProperty
0014 
0015 #include <TNamed.h>
0016 #include <TColor.h>
0017 #include <TGColorSelect.h>
0018 
0019 class TStructNodeProperty : public TNamed {
0020 
0021 private:
0022    TColor fColor;               // Color of a class
0023 
0024 public:
0025    TStructNodeProperty(const char * name, Int_t color);
0026    TStructNodeProperty(const char * name, Pixel_t pixel);
0027    ~TStructNodeProperty() override;
0028 
0029    TColor   GetColor() const;
0030    Pixel_t  GetPixel() const;
0031    void     SetColor(const TColor & color);
0032    void     SetColor(Pixel_t pixel);
0033    void     SetColor(Int_t color);
0034    Int_t    Compare(const TObject* obj) const override;
0035    Bool_t   IsSortable() const override;
0036 
0037    ClassDefOverride(TStructNodeProperty, 1); // Class with nodes color property
0038 };
0039 
0040 #endif