// $Header: /cvs/gled-1.2/RootGeo/Glasses/ZGeoOvl.cxx,v 1.4 2005/03/15 15:03:15 matevz Exp $

// Copyright (C) 1999-2005, Matevz Tadel. All rights reserved.
// This file is part of GLED, released under GNU General Public License version 2.
// For the licensing terms see $GLEDSYS/LICENSE or http://www.gnu.org/.

//__________________________________________________________________________
// ZGeoOvl
//

#include "ZGeoOvl.h"
#include "ZGeoOvl.c7"

ClassImp(ZGeoOvl)

/**************************************************************************/

 void ZGeoOvl::_init()
{
  // !!!! Set all links to 0 !!!!
  mPM_p = 0;
  mIsExtr  = false;
  mRnrMark = true;
}

/**************************************************************************/

 void ZGeoOvl::Restore(TGeoVolume* vol)
{
  // Restore user data by reading mother node.

  TGeoNode* tn;
  ZGeoNode *zn;

  if(mIsExtr){
    tn = vol->FindNode(GetTitle());
    SetTNode(tn);
    AssertUserData();
  } else {
    zn = (ZGeoNode*)First();
    tn = vol->FindNode(zn->GetTitle());
    zn->SetTNode(tn);
    zn->AssertUserData();

    zn = (ZGeoNode*)Last();
    tn = vol->FindNode(zn->GetTitle());
    zn->SetTNode(tn);
    zn->AssertUserData();
  }
}

/**************************************************************************/

 void ZGeoOvl::DumpOvl()
{
  const char *nn1, *nn2;
  if (mIsExtr) {
    nn1 = GetName();
    nn2 = 0;
  }
  else {
    ZGeoNode* n1 = (ZGeoNode*)First();
    ZGeoNode* n2 = (ZGeoNode*)Last();
    nn1 = n1->GetName();
    nn2 = n2->GetName();
  }
  printf("Extr:%d IsShown:%d Node1:%s Node2:%s Mother:%s %fn",
	 mIsExtr ? 1:0, GetRnrSelf(), nn1, nn2, GetParent()->GetTitle(),
	 mOverlap);
}


ROOT page - Home page - Class index - Class Hierarchy - Top of the page

This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.