12 #ifndef ROOT_TStructNode
13 #define ROOT_TStructNode
34 class TStructNode :
public TObject {
37 static EScalingType fgScalBy;
44 ULong_t fMembersCount;
45 ULong_t fAllMembersCount;
59 TStructNode(TString name, TString typeName,
void* pointer, TStructNode* parent, ULong_t size, ENodeType type);
62 virtual Int_t Compare(
const TObject* obj)
const;
63 ULong_t GetAllMembersCount()
const;
64 Float_t GetCenter()
const;
65 Float_t GetHeight()
const;
66 UInt_t GetLevel()
const;
67 UInt_t GetMaxLevel()
const;
68 UInt_t GetMaxObjects()
const;
69 TList* GetMembers()
const;
70 ULong_t GetMembersCount()
const;
71 Float_t GetMiddle()
const;
72 const char* GetName()
const;
73 ENodeType GetNodeType()
const;
74 TStructNode *GetParent()
const;
75 void* GetPointer()
const;
76 ULong_t GetRelativeMembersCount()
const;
77 ULong_t GetRelativeSize()
const;
78 ULong_t GetRelativeVolume()
const;
79 Float_t GetRelativeVolumeRatio();
80 ULong_t GetSize()
const;
81 ULong_t GetTotalSize()
const;
82 TString GetTypeName()
const;
83 ULong_t GetVolume()
const;
84 Float_t GetVolumeRatio();
85 Float_t GetWidth()
const;
88 Bool_t IsCollapsed()
const;
89 virtual Bool_t IsSortable()
const;
90 bool IsVisible()
const;
91 void SetAllMembersCount(ULong_t count);
92 void SetCollapsed(Bool_t collapsed);
93 void SetHeight(Float_t h);
94 void SetMaxLevel(UInt_t level);
95 void SetMaxObjects(UInt_t max);
96 void SetMembers(TList* list);
97 void SetMembersCount(ULong_t count);
98 void SetNodeType(ENodeType type);
99 void SetPointer(
void* pointer);
100 static void SetScaleBy(EScalingType type);
101 void SetSize(ULong_t size);
102 void SetTotalSize(ULong_t size);
103 void SetVisible(
bool visible);
104 void SetWidth(Float_t w);
105 void SetX(Float_t x);
106 void SetY(Float_t y);
108 ClassDef(TStructNode,0);