Check the source code:
http://root.cern.ch/root/htmldoc/src/TPad.cxx.html#l0kMaE
Please review the following links:
http://root.cern.ch/root/htmldoc/TPad.html#TPad:GetListOfPrimitives
http://root.cern.ch/root/htmldoc/src/TObject.cxx.html#F3uorD
See the small example:
void PrintMyPadNames(TPad *pad)
{
TList *list = pad->GetListOfPrimitives();
TIter next(list);
TObject *o =0;
while (o=next())
{
if (o->InheritsFrom(TPad::Class())) {
cout << " The subpad: " << o->GetName() << " has been found " << endl; }
Hope this helps.
Best Regards
Valeri Fine
Hi,
Can I query a TPad about its subpads? If I have Divided it, for example, can I find out that it was Divided and how?
Thanks,
Marc
Received on Thu Jul 19 2007 - 19:02:18 CEST
This archive was generated by hypermail 2.2.0 : Thu Jul 19 2007 - 23:50:01 CEST