ROOT logo
// @(#)root/gviz3d:$Id: TStructNodeProperty.h 29940 2009-08-27 16:33:32Z brun $
// Author: Tomasz Sosnicki   18/09/09

/************************************************************************
* Copyright (C) 1995-2009, Rene Brun and Fons Rademakers.               *
* All rights reserved.                                                  *
*                                                                       *
* For the licensing terms see $ROOTSYS/LICENSE.                         *
* For the list of contributors see $ROOTSYS/README/CREDITS.             *
*************************************************************************/

#ifndef ROOT_TStructNodeProperty
#define ROOT_TStructNodeProperty

#include <TNamed.h>
#include <TColor.h>
#include <TGColorSelect.h>

class TStructNodeProperty : public TNamed {

private:
   TColor fColor;               // Color of a class

public:
   TStructNodeProperty(const char * name, Int_t color);
   TStructNodeProperty(const char * name, Pixel_t pixel);
   ~TStructNodeProperty();

   TColor   GetColor() const;
   Pixel_t  GetPixel() const;
   void     SetColor(const TColor & color);
   void     SetColor(Pixel_t pixel);
   void     SetColor(Int_t color);
   Int_t    Compare(const TObject* obj) const;
   Bool_t   IsSortable() const;

   ClassDef(TStructNodeProperty, 1); // Class with nodes color property
};

#endif
 TStructNodeProperty.h:1
 TStructNodeProperty.h:2
 TStructNodeProperty.h:3
 TStructNodeProperty.h:4
 TStructNodeProperty.h:5
 TStructNodeProperty.h:6
 TStructNodeProperty.h:7
 TStructNodeProperty.h:8
 TStructNodeProperty.h:9
 TStructNodeProperty.h:10
 TStructNodeProperty.h:11
 TStructNodeProperty.h:12
 TStructNodeProperty.h:13
 TStructNodeProperty.h:14
 TStructNodeProperty.h:15
 TStructNodeProperty.h:16
 TStructNodeProperty.h:17
 TStructNodeProperty.h:18
 TStructNodeProperty.h:19
 TStructNodeProperty.h:20
 TStructNodeProperty.h:21
 TStructNodeProperty.h:22
 TStructNodeProperty.h:23
 TStructNodeProperty.h:24
 TStructNodeProperty.h:25
 TStructNodeProperty.h:26
 TStructNodeProperty.h:27
 TStructNodeProperty.h:28
 TStructNodeProperty.h:29
 TStructNodeProperty.h:30
 TStructNodeProperty.h:31
 TStructNodeProperty.h:32
 TStructNodeProperty.h:33
 TStructNodeProperty.h:34
 TStructNodeProperty.h:35
 TStructNodeProperty.h:36
 TStructNodeProperty.h:37
 TStructNodeProperty.h:38
 TStructNodeProperty.h:39
 TStructNodeProperty.h:40