]>
Commit | Line | Data |
---|---|---|
970b96ad | 1 | // $Header$ |
2 | ||
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/. | |
6 | ||
7 | //__________________________________________________________________________ | |
8 | // TGeoShapeExtract | |
9 | // | |
10 | // Vessel to carry hand-picked geometry from gled to reve. | |
11 | // This class exists in both frameworks. | |
12 | ||
13 | #include "TGeoShapeExtract.h" | |
14 | ||
15 | #include <TList.h> | |
16 | #include <TGeoShape.h> | |
17 | ||
18 | ClassImp(TGeoShapeExtract) | |
19 | ||
20 | /**************************************************************************/ | |
21 | ||
22 | TGeoShapeExtract::TGeoShapeExtract(const Text_t* n, const Text_t* t) : | |
23 | TNamed(n,t), | |
24 | mRnrSelf (true), | |
25 | mRnrElements (true), | |
26 | mShape (0), | |
27 | mElements (0) | |
28 | { | |
29 | } | |
30 | ||
31 | TGeoShapeExtract::~TGeoShapeExtract() | |
32 | { | |
33 | delete mShape; | |
34 | delete mElements; | |
35 | } | |
36 | ||
37 | /**************************************************************************/ | |
38 | ||
39 | Bool_t TGeoShapeExtract::HasElements() | |
40 | { | |
41 | return mElements != 0 && mElements->GetSize() > 0; | |
42 | } | |
43 | ||
44 | /**************************************************************************/ | |
45 | ||
46 | void TGeoShapeExtract::SetTrans(const Double_t arr[16]) | |
47 | { | |
48 | for(Int_t i=0; i<16; ++i) | |
49 | mTrans[i] = arr[i]; | |
50 | } | |
51 | ||
52 | void TGeoShapeExtract::SetRGBA (const Float_t arr[4]) | |
53 | { | |
54 | for(Int_t i=0; i<4; ++i) | |
55 | mRGBA[i] = arr[i]; | |
56 | } |