Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
REveGeoShapeExtract.hxx
Go to the documentation of this file.
1// @(#)root/eve7:$Id$
2// Authors: Matevz Tadel & Alja Mrak-Tadel: 2006, 2007
3
4/*************************************************************************
5 * Copyright (C) 1995-2019, 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 ROOT7_REveGeoShapeExtract
13#define ROOT7_REveGeoShapeExtract
14
15#include "TNamed.h"
16
17class TList;
18class TGeoShape;
19
20namespace ROOT {
21namespace Experimental {
22
24{
27
28protected:
29 Double_t fTrans[16]; // Transformation matrix, 4x4 column major.
30 Float_t fRGBA[4]; // RGBA color.
31 Float_t fRGBALine[4]; // RGBA color.
32 Bool_t fRnrSelf; // Render this object.
33 Bool_t fRnrElements; // Render children of this object.
34 Bool_t fRnrFrame; // Also draw shape outline.
35 Bool_t fMiniFrame; // Minimize shape outline when drawing.
36 TGeoShape* fShape; // Shape to be drawn for this object.
37 TList* fElements; // Children elements.
38
39public:
40 REveGeoShapeExtract(const char *n = "REveGeoShapeExtract", const char *t = nullptr);
41 ~REveGeoShapeExtract() override;
42
45
46 void SetTrans(const Double_t arr[16]);
47 void SetRGBA (const Float_t arr[4]);
48 void SetRGBALine(const Float_t arr[4]);
53 void SetShape(TGeoShape* s) { fShape = s; }
55
56 Double_t* GetTrans() { return fTrans; }
57 Float_t* GetRGBA() { return fRGBA; }
63 TGeoShape* GetShape() { return fShape; }
65
66 ClassDefOverride(REveGeoShapeExtract, 1); // Globally positioned TGeoShape with rendering attributes and an optional list of daughter shape-extracts.
67};
68
69} // namespace Experimental
70} // namespace ROOT
71
72#endif
#define e(i)
Definition RSha256.hxx:103
float Float_t
Definition RtypesCore.h:57
#define ClassDefOverride(name, id)
Definition Rtypes.h:341
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t r
void SetRGBA(const Float_t arr[4])
Set RGBA color.
void AddElement(REveGeoShapeExtract *gse)
Add a child element.
void SetTrans(const Double_t arr[16])
Set transformation matrix.
REveGeoShapeExtract & operator=(const REveGeoShapeExtract &)=delete
Bool_t HasElements()
True if has at least one element.
~REveGeoShapeExtract() override
Destructor. Delete shape and elements.
void SetRGBALine(const Float_t arr[4])
Set RGBA color for line.
REveGeoShapeExtract(const REveGeoShapeExtract &)=delete
Base abstract class for all shapes.
Definition TGeoShape.h:25
A doubly linked list.
Definition TList.h:38
The TNamed class is the base class for all named ROOT classes.
Definition TNamed.h:29
const Int_t n
Definition legend1.C:16
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.