3 // Copyright (C) 1999-2005, Matevz Tadel. All rights reserved.
4 // This file is part of GLED, released under GNU General Public License version 2.
5 // For the licensing terms see $GLEDSYS/LICENSE or http://www.gnu.org/.
7 //__________________________________________________________________________
10 // Vessel to carry hand-picked geometry from gled to reve.
11 // This class exists in both frameworks.
13 #include "TGeoShapeExtract.h"
16 #include <TGeoShape.h>
18 ClassImp(TGeoShapeExtract)
20 /**************************************************************************/
22 TGeoShapeExtract::TGeoShapeExtract(const Text_t* n, const Text_t* t) :
29 memset(mTrans, 0, sizeof(mTrans));
30 mTrans[0] = mTrans[5] = mTrans[10] = mTrans[15] = 1;
31 mRGBA [0] = mRGBA [1] = mRGBA [2] = mRGBA [3] = 1;
34 TGeoShapeExtract::~TGeoShapeExtract()
40 /**************************************************************************/
42 Bool_t TGeoShapeExtract::HasElements()
44 return mElements != 0 && mElements->GetSize() > 0;
47 void TGeoShapeExtract::AddElement(TGeoShapeExtract* gse)
50 mElements = new TList;
55 /**************************************************************************/
57 void TGeoShapeExtract::SetTrans(const Double_t arr[16])
59 for(Int_t i=0; i<16; ++i)
63 void TGeoShapeExtract::SetRGBA (const Float_t arr[4])
65 for(Int_t i=0; i<4; ++i)