ROOT logo
ROOT » GRAF3D » GVIZ3D » TStructNode

class TStructNode: public TObject



 TStructNode - class which represent a node. Node has all information
 about some pointer. It keeps information such as name of object, type,
 size of pointers class, size of node and daughter nodes, number of child
 nodes. It is also used to store information needed to draw TGeoVolume.
 It is for example x, y and z coordinates.
 Condition fVisible tells us that node is visible and should be drawn.
 fCollapsed tells us that we can see daughter nodes.


Function Members (Methods)

public:
TStructNode(const TStructNode&)
TStructNode(TString name, TString typeName, void* pointer, TStructNode* parent, ULong_t size, ENodeType type)
virtual~TStructNode()
voidTObject::AbstractMethod(const char* method) const
virtual voidTObject::AppendPad(Option_t* option = "")
virtual voidTObject::Browse(TBrowser* b)
static TClass*Class()
virtual const char*TObject::ClassName() const
virtual voidTObject::Clear(Option_t* = "")
virtual TObject*TObject::Clone(const char* newname = "") const
virtual Int_tCompare(const TObject* obj) const
virtual voidTObject::Copy(TObject& object) const
virtual voidTObject::Delete(Option_t* option = "")MENU
virtual Int_tTObject::DistancetoPrimitive(Int_t px, Int_t py)
virtual voidTObject::Draw(Option_t* option = "")
virtual voidTObject::DrawClass() constMENU
virtual TObject*TObject::DrawClone(Option_t* option = "") constMENU
virtual voidTObject::Dump() constMENU
virtual voidTObject::Error(const char* method, const char* msgfmt) const
virtual voidTObject::Execute(const char* method, const char* params, Int_t* error = 0)
virtual voidTObject::Execute(TMethod* method, TObjArray* params, Int_t* error = 0)
virtual voidTObject::ExecuteEvent(Int_t event, Int_t px, Int_t py)
virtual voidTObject::Fatal(const char* method, const char* msgfmt) const
virtual TObject*TObject::FindObject(const char* name) const
virtual TObject*TObject::FindObject(const TObject* obj) const
ULong_tGetAllMembersCount() const
Float_tGetCenter() const
virtual Option_t*TObject::GetDrawOption() const
static Long_tTObject::GetDtorOnly()
Float_tGetHeight() const
virtual const char*TObject::GetIconName() const
UInt_tGetLevel() const
UInt_tGetMaxLevel() const
UInt_tGetMaxObjects() const
TList*GetMembers() const
ULong_tGetMembersCount() const
Float_tGetMiddle() const
virtual const char*GetName() const
ENodeTypeGetNodeType() const
virtual char*TObject::GetObjectInfo(Int_t px, Int_t py) const
static Bool_tTObject::GetObjectStat()
virtual Option_t*TObject::GetOption() const
TStructNode*GetParent() const
void*GetPointer() const
ULong_tGetRelativeMembersCount() const
ULong_tGetRelativeSize() const
ULong_tGetRelativeVolume() const
Float_tGetRelativeVolumeRatio()
ULong_tGetSize() const
virtual const char*TObject::GetTitle() const
ULong_tGetTotalSize() const
TStringGetTypeName() const
virtual UInt_tTObject::GetUniqueID() const
ULong_tGetVolume() const
Float_tGetVolumeRatio()
Float_tGetWidth() const
Float_tGetX() const
Float_tGetY() const
virtual Bool_tTObject::HandleTimer(TTimer* timer)
virtual ULong_tTObject::Hash() const
virtual voidTObject::Info(const char* method, const char* msgfmt) const
virtual Bool_tTObject::InheritsFrom(const char* classname) const
virtual Bool_tTObject::InheritsFrom(const TClass* cl) const
virtual voidTObject::Inspect() constMENU
voidTObject::InvertBit(UInt_t f)
virtual TClass*IsA() const
Bool_tIsCollapsed() const
virtual Bool_tTObject::IsEqual(const TObject* obj) const
virtual Bool_tTObject::IsFolder() const
Bool_tTObject::IsOnHeap() const
virtual Bool_tIsSortable() const
boolIsVisible() const
Bool_tTObject::IsZombie() const
virtual voidTObject::ls(Option_t* option = "") const
voidTObject::MayNotUse(const char* method) const
virtual Bool_tTObject::Notify()
voidTObject::Obsolete(const char* method, const char* asOfVers, const char* removedFromVers) const
static voidTObject::operator delete(void* ptr)
static voidTObject::operator delete(void* ptr, void* vp)
static voidTObject::operator delete[](void* ptr)
static voidTObject::operator delete[](void* ptr, void* vp)
void*TObject::operator new(size_t sz)
void*TObject::operator new(size_t sz, void* vp)
void*TObject::operator new[](size_t sz)
void*TObject::operator new[](size_t sz, void* vp)
TStructNode&operator=(const TStructNode&)
virtual voidTObject::Paint(Option_t* option = "")
virtual voidTObject::Pop()
virtual voidTObject::Print(Option_t* option = "") const
virtual Int_tTObject::Read(const char* name)
virtual voidTObject::RecursiveRemove(TObject* obj)
voidTObject::ResetBit(UInt_t f)
virtual voidTObject::SaveAs(const char* filename = "", Option_t* option = "") constMENU
virtual voidTObject::SavePrimitive(ostream& out, Option_t* option = "")
voidSetAllMembersCount(ULong_t count)
voidTObject::SetBit(UInt_t f)
voidTObject::SetBit(UInt_t f, Bool_t set)
voidSetCollapsed(Bool_t collapsed)
virtual voidTObject::SetDrawOption(Option_t* option = "")MENU
static voidTObject::SetDtorOnly(void* obj)
voidSetHeight(Float_t h)
voidSetMaxLevel(UInt_t level)
voidSetMaxObjects(UInt_t max)
voidSetMembers(TList* list)
voidSetMembersCount(ULong_t count)
voidSetNodeType(ENodeType type)
static voidTObject::SetObjectStat(Bool_t stat)
voidSetPointer(void* pointer)
static voidSetScaleBy(EScalingType type)
voidSetSize(ULong_t size)
voidSetTotalSize(ULong_t size)
virtual voidTObject::SetUniqueID(UInt_t uid)
voidSetVisible(bool visible)
voidSetWidth(Float_t w)
voidSetX(Float_t x)
voidSetY(Float_t y)
virtual voidShowMembers(TMemberInspector& insp)
virtual voidStreamer(TBuffer& b)
voidStreamerNVirtual(TBuffer& b)
virtual voidTObject::SysError(const char* method, const char* msgfmt) const
Bool_tTObject::TestBit(UInt_t f) const
Int_tTObject::TestBits(UInt_t f) const
virtual voidTObject::UseCurrentStyle()
virtual voidTObject::Warning(const char* method, const char* msgfmt) const
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0)
virtual Int_tTObject::Write(const char* name = 0, Int_t option = 0, Int_t bufsize = 0) const
protected:
virtual voidTObject::DoError(int level, const char* location, const char* fmt, va_list va) const
voidTObject::MakeZombie()

Data Members

private:
ULong_tfAllMembersCountNumber of all members (class and its daughters)
Bool_tfCollapsedCondition - true if node is collapsed (we don't see dauthers)
Float_tfHeightHeight of outlining box
UInt_tfLevelLevel number
UInt_tfMaxLevelNumber of levels displayed when the node is top node on scene
UInt_tfMaxObjectsNumber of objects displayed when the node is top node on scene
TList*fMembersList of daughter nodes
ULong_tfMembersCountNumber of members in class
TStringfNameName of node
ENodeTypefNodeTypeType of node
TStructNode*fParentPointer to parent node, NULL if not exist
void*fPointerPointer to data (address of variable)
ULong_tfSizeMemory allocated by class without pointers and list elements
ULong_tfTotalSizeTotal allocated memory
TStringfTypeNameName of type
Bool_tfVisibleCondition - true if node is visible
Float_tfWidthWidth of outlining box
Float_tfXX coordinate in 3D space
Float_tfYY coordinate in 3D space
static EScalingTypefgScalBy

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

TStructNode(TString name, TString typeName, void* pointer, TStructNode* parent, ULong_t size, ENodeType type)
 Constructs node with name "name" of class "typeName" and given parent "parent" which represents pointer "pointer".
 Size of node is set to "size" and type is set to "type"
~TStructNode()
 Destructs list of nodes
Int_t Compare(const TObject* obj) const
 Overrided method. Compare to objects of TStructNode class.
ULong_t GetAllMembersCount() const
 Returns number of all members in node
Float_t GetCenter() const
 Returns center of outlining box on x-axis
Float_t GetHeight() const
 Returns height of outlining box
UInt_t GetLevel() const
 Returns actual level of node
const char* GetName() const
 Returns name of object
ENodeType GetNodeType() const
 Returns type of node
UInt_t GetMaxLevel() const
 Returns maximum number of leves displayed when the node is top node on scene
UInt_t GetMaxObjects() const
 Returns maximum number of objects displayed when the node is top node on scene
TList* GetMembers() const
 Returns list with pointers to daughter nodes.
ULong_t GetMembersCount() const
 Returns numbers of members of node
Float_t GetMiddle() const
 Returns center of outlining box on y-axis
TStructNode* GetParent() const
 Returns pointer to parent node
void* GetPointer() const
 Returns main pointer
ULong_t GetRelativeMembersCount() const
 Returns relative numbers of members. If node is collapsed, then method returns number of all members,
 it's node and its daughters, otherwise it returns number of members of node
ULong_t GetRelativeSize() const
 Returns relative size of node. If node is collapsed, then function returns size of node and dauthers,
 otherwise returns size of node only.
ULong_t GetRelativeVolume() const
 Returns size or number of members. If ScaleBy is set to kMembers and node is collapsed, then it
 returns all number of members. If node isn't collapsed it returns number of members.
 If Scaleby is set to kSize and node is collapsed, then it returns total size of node and daughters,
 else it returns size of node, otherwise it returns 0.
Float_t GetRelativeVolumeRatio()
 Returns ratio - relative volume to area taken by utlining box.
ULong_t GetSize() const
 Returns size of node
ULong_t GetTotalSize() const
 Returns total size of allocated memory in bytes
TString GetTypeName() const
 Returns name of class
ULong_t GetVolume() const
 Returns size or number of members. If ScaleBy is set to kMembers it returns all number of members.
 If Scaleby is set to kSize then it returns total size of node and daughters, otherwise it returns 0.
Float_t GetVolumeRatio()
 Returns ratio - volme of node to area taken by outlining box
Float_t GetWidth() const
 Returns width of outlining box
Float_t GetX() const
 Returns X coordinate
Float_t GetY() const
 Returns Y coordinate
Bool_t IsCollapsed() const
 Returns true if node is colllapsed
Bool_t IsSortable() const
 Returns true, because we have overrided method Compare
bool IsVisible() const
 Returns true if node is visible
void SetAllMembersCount(ULong_t count)
 Sets numbers of all members to "number"
void SetCollapsed(Bool_t collapsed)
 Sets collapsing of node to "collapse"
void SetHeight(Float_t h)
 Sets width of outlining box to "w"
void SetMaxLevel(UInt_t level)
 Sets maximum number of leves displayed when the node is top node on scene
void SetMaxObjects(UInt_t max)
 Sets maximum number of objects displayed when the node is top node on scene
void SetMembers(TList* list)
 Sets list of dauther nodes to "list"
void SetMembersCount(ULong_t count)
 Sets number of members to "number"
void SetNodeType(ENodeType type)
 Sets type of node to "type"
void SetPointer(void* pointer)
 Sets main pointer to "pointer"
void SetScaleBy(EScalingType type)
 Sets scaling by to "type"
void SetSize(ULong_t size)
 Sets size of node to "size"
void SetTotalSize(ULong_t size)
 Sets total size  of allocated memory in bytes to value "size"
void SetVisible(bool visible)
 Sets visibility of node to "visible"
void SetWidth(Float_t w)
 Sets width of outlining box to "w"
void SetX(Float_t x)
 Sets X coordinate to "x"
void SetY(Float_t y)
 Sets Y coordinate to "y"
TStructNode(TString name, TString typeName, void* pointer, TStructNode* parent, ULong_t size, ENodeType type)