Logo ROOT   6.16/01
Reference Guide
TEveGeoShapeExtract.h
Go to the documentation of this file.
1// @(#)root/eve:$Id$
2// Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3
4/*************************************************************************
5 * Copyright (C) 1995-2007, Rene Brun and Fons Rademakers. *
6 * All rights reserved. *
7 * *
8 * For the licensing terms see $ROOTSYS/LICENSE. *
9 * For the list of contributors see $ROOTSYS/README/CREDITS. *
10 *************************************************************************/
11
12#ifndef ROOT_TEveGeoShapeExtract
13#define ROOT_TEveGeoShapeExtract
14
15#include "TNamed.h"
16
17class TList;
18class TGeoShape;
19
21{
22 TEveGeoShapeExtract(const TEveGeoShapeExtract&); // Not implemented
24
25protected:
26 Double_t fTrans[16]; // Transformation matrix, 4x4 column major.
27 Float_t fRGBA[4]; // RGBA color.
28 Float_t fRGBALine[4]; // RGBA color.
29 Bool_t fRnrSelf; // Render this object.
30 Bool_t fRnrElements; // Render children of this object.
31 Bool_t fRnrFrame; // Also draw shape outline.
32 Bool_t fMiniFrame; // Minimize shape outline when drawing.
33 TGeoShape* fShape; // Shape to be drawn for this object.
34 TList* fElements; // Children elements.
35
36public:
37 TEveGeoShapeExtract(const char* n="TEveGeoShapeExtract", const char* t=0);
39
42
43 void SetTrans(const Double_t arr[16]);
44 void SetRGBA (const Float_t arr[4]);
45 void SetRGBALine(const Float_t arr[4]);
50 void SetShape(TGeoShape* s) { fShape = s; }
52
53 Double_t* GetTrans() { return fTrans; }
54 Float_t* GetRGBA() { return fRGBA; }
60 TGeoShape* GetShape() { return fShape; }
62
63 ClassDef(TEveGeoShapeExtract, 2); // Globally positioned TGeoShape with rendering attributes and an optional list of daughter shape-extracts.
64};
65
66#endif
ROOT::R::TRInterface & r
Definition: Object.C:4
#define e(i)
Definition: RSha256.hxx:103
bool Bool_t
Definition: RtypesCore.h:59
double Double_t
Definition: RtypesCore.h:55
float Float_t
Definition: RtypesCore.h:53
#define ClassDef(name, id)
Definition: Rtypes.h:324
Globally positioned TGeoShape with rendering attributes and an optional list of daughter shape-extrac...
void SetShape(TGeoShape *s)
void AddElement(TEveGeoShapeExtract *gse)
Add a child element.
void SetMiniFrame(Bool_t r)
Bool_t HasElements()
True if has at least one element.
void SetRGBA(const Float_t arr[4])
Set RGBA color.
void SetRGBALine(const Float_t arr[4])
Set RGBA color for line.
void SetRnrElements(Bool_t r)
void SetRnrSelf(Bool_t r)
TEveGeoShapeExtract & operator=(const TEveGeoShapeExtract &)
void SetTrans(const Double_t arr[16])
Set transformation matrix.
void SetElements(TList *e)
~TEveGeoShapeExtract()
Destructor. Delete shape and elements.
TEveGeoShapeExtract(const TEveGeoShapeExtract &)
void SetRnrFrame(Bool_t r)
Base abstract class for all shapes.
Definition: TGeoShape.h:26
A doubly linked list.
Definition: TList.h:44
The TNamed class is the base class for all named ROOT classes.
Definition: TNamed.h:29
const Int_t n
Definition: legend1.C:16
static constexpr double s