]> git.uio.no Git - u/mrichter/AliRoot.git/blame - EVE/Reve/TGeoShapeExtract.cxx
Add getter for fValueIsColor.
[u/mrichter/AliRoot.git] / EVE / Reve / TGeoShapeExtract.cxx
CommitLineData
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
18ClassImp(TGeoShapeExtract)
19
20/**************************************************************************/
21
22TGeoShapeExtract::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
31TGeoShapeExtract::~TGeoShapeExtract()
32{
33 delete mShape;
34 delete mElements;
35}
36
37/**************************************************************************/
38
39Bool_t TGeoShapeExtract::HasElements()
40{
41 return mElements != 0 && mElements->GetSize() > 0;
42}
43
44/**************************************************************************/
45
46void TGeoShapeExtract::SetTrans(const Double_t arr[16])
47{
48 for(Int_t i=0; i<16; ++i)
49 mTrans[i] = arr[i];
50}
51
52void TGeoShapeExtract::SetRGBA (const Float_t arr[4])
53{
54 for(Int_t i=0; i<4; ++i)
55 mRGBA[i] = arr[i];
56}