Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
TStructNodeProperty.h
Go to the documentation of this file.
1// @(#)root/gviz3d:$Id$
2// Author: Tomasz Sosnicki 18/09/09
3
4/************************************************************************
5* Copyright (C) 1995-2009, Rene Brun and Fons Rademakers. *
6* All rights reserved. *
7* *
8* For the licensing terms see $ROOTSYS/LICENSE. *
9* For the list of contributors see $ROOTSYS/README/CREDITS. *
10*************************************************************************/
11
12#ifndef ROOT_TStructNodeProperty
13#define ROOT_TStructNodeProperty
14
15#include <TNamed.h>
16#include <TColor.h>
17#include <TGColorSelect.h>
18
20
21private:
22 TColor fColor; // Color of a class
23
24public:
25 TStructNodeProperty(const char * name, Int_t color);
27 ~TStructNodeProperty() override;
28
29 TColor GetColor() const;
30 Pixel_t GetPixel() const;
31 void SetColor(const TColor & color);
33 void SetColor(Int_t color);
34 Int_t Compare(const TObject* obj) const override;
35 Bool_t IsSortable() const override;
36
37 ClassDefOverride(TStructNodeProperty, 1); // Class with nodes color property
38};
39
40#endif
ULong_t Pixel_t
Pixel value.
Definition GuiTypes.h:40
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void pixel
char name[80]
Definition TGX11.cxx:110
The color creation and management class.
Definition TColor.h:21
The TNamed class is the base class for all named ROOT classes.
Definition TNamed.h:29
Mother of all ROOT objects.
Definition TObject.h:41
Pixel_t GetPixel() const
Return color in Pixel_t format.
~TStructNodeProperty() override
Destructor.
TColor GetColor() const
Returns color of class.
Bool_t IsSortable() const override
Retruns true, because we have overrided method Compare.
void SetColor(const TColor &color)
Sets the color to "color".
Int_t Compare(const TObject *obj) const override
Overrided method. Compare two objects of TStructNodeProperty class.