ROOT
Version master
v6.34
v6.32
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
►
bindings
►
core
►
documentation
►
geom
►
graf2d
▼
graf3d
▼
eve
doc
►
inc
▼
src
►
TEveArrow.cxx
►
TEveArrowEditor.cxx
►
TEveArrowGL.cxx
►
TEveBox.cxx
►
TEveBoxGL.cxx
►
TEveBoxSet.cxx
►
TEveBoxSetGL.cxx
TEveBrowser.cxx
TEveCalo.cxx
TEveCalo2DGL.cxx
TEveCalo3DGL.cxx
TEveCaloData.cxx
TEveCaloLegoEditor.cxx
TEveCaloLegoGL.cxx
TEveCaloLegoOverlay.cxx
TEveCaloVizEditor.cxx
►
TEveChunkManager.cxx
►
TEveCompound.cxx
►
TEveDigitSet.cxx
TEveDigitSetEditor.cxx
►
TEveDigitSetGL.cxx
TEveElement.cxx
TEveElementEditor.cxx
TEveEventManager.cxx
TEveFrameBox.cxx
►
TEveFrameBoxGL.cxx
TEveGedEditor.cxx
TEveGeoNode.cxx
►
TEveGeoNodeEditor.cxx
TEveGeoPolyShape.cxx
TEveGeoShape.cxx
►
TEveGeoShapeExtract.cxx
►
TEveGridStepper.cxx
►
TEveGridStepperEditor.cxx
►
TEveGValuators.cxx
►
TEveJetCone.cxx
►
TEveJetConeEditor.cxx
►
TEveJetConeGL.cxx
►
TEveLegoEventHandler.cxx
►
TEveLine.cxx
►
TEveLineEditor.cxx
►
TEveLineGL.cxx
TEveMacro.cxx
►
TEveManager.cxx
►
TEvePad.cxx
►
TEveParamList.cxx
►
TEvePathMark.cxx
►
TEvePlot3D.cxx
►
TEvePlot3DGL.cxx
TEvePointSet.cxx
►
TEvePointSetArrayEditor.cxx
TEvePolygonSetProjected.cxx
►
TEvePolygonSetProjectedGL.cxx
►
TEveProjectionAxes.cxx
►
TEveProjectionAxesEditor.cxx
TEveProjectionAxesGL.cxx
►
TEveProjectionBases.cxx
TEveProjectionManager.cxx
►
TEveProjectionManagerEditor.cxx
►
TEveProjections.cxx
TEveQuadSet.cxx
►
TEveQuadSetGL.cxx
TEveRGBAPalette.cxx
TEveRGBAPaletteEditor.cxx
►
TEveRGBAPaletteOverlay.cxx
►
TEveScalableStraightLineSet.cxx
►
TEveScene.cxx
►
TEveSceneInfo.cxx
►
TEveSecondarySelectable.cxx
TEveSelection.cxx
►
TEveShape.cxx
TEveShapeEditor.cxx
►
TEveStraightLineSet.cxx
►
TEveStraightLineSetEditor.cxx
►
TEveStraightLineSetGL.cxx
TEveText.cxx
TEveTextEditor.cxx
►
TEveTextGL.cxx
►
TEveTrack.cxx
►
TEveTrackEditor.cxx
►
TEveTrackGL.cxx
►
TEveTrackProjected.cxx
►
TEveTrackProjectedGL.cxx
►
TEveTrackPropagator.cxx
►
TEveTrackPropagatorEditor.cxx
►
TEveTrans.cxx
►
TEveTransEditor.cxx
TEveTreeTools.cxx
►
TEveTriangleSet.cxx
►
TEveTriangleSetEditor.cxx
►
TEveTriangleSetGL.cxx
►
TEveUtil.cxx
►
TEveVector.cxx
TEveViewer.cxx
►
TEveViewerListEditor.cxx
►
TEveVSD.cxx
►
TEveVSDStructs.cxx
TEveWindow.cxx
►
TEveWindowEditor.cxx
►
TEveWindowManager.cxx
►
eve7
►
g3d
►
gl
►
gviz3d
►
gui
►
hist
►
io
►
main
►
master
►
math
►
montecarlo
►
net
►
proof
►
roofit
►
sql
►
tmva
►
tree
►
tutorials
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
TEveGeoShapeExtract.cxx
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
#include "
TEveGeoShapeExtract.h
"
13
#include "
TEveGeoNode.h
"
14
#include "
TEveGeoShape.h
"
15
16
#include "
TList.h
"
17
#include "
TGeoManager.h
"
18
#include "
TGeoShape.h
"
19
20
/** \class TEveGeoShapeExtract
21
\ingroup TEve
22
Globally positioned TGeoShape with rendering attributes and an
23
optional list of daughter shape-extracts.
24
25
Vessel to carry hand-picked geometry from gled to reve.
26
This class exists in both frameworks.
27
*/
28
29
ClassImp
(
TEveGeoShapeExtract
);
30
31
////////////////////////////////////////////////////////////////////////////////
32
/// Constructor.
33
34
TEveGeoShapeExtract::TEveGeoShapeExtract
(
const
char
*
n
,
const
char
* t) :
35
TNamed
(
n
,t),
36
fRnrSelf (
kTRUE
),
37
fRnrElements (
kTRUE
),
38
fRnrFrame (
kTRUE
),
39
fMiniFrame (
kTRUE
),
40
fShape
(nullptr),
41
fElements (nullptr)
42
{
43
memset
(
fTrans
, 0,
sizeof
(
fTrans
));
44
fTrans
[0] =
fTrans
[5] =
fTrans
[10] =
fTrans
[15] = 1;
45
fRGBA
[0] =
fRGBA
[1] =
fRGBA
[2] =
fRGBA
[3] = 1;
46
fRGBALine
[0] =
fRGBALine
[1] =
fRGBALine
[2] = 0;
fRGBALine
[3] = 1;
47
}
48
49
////////////////////////////////////////////////////////////////////////////////
50
/// Destructor. Delete shape and elements.
51
52
TEveGeoShapeExtract::~TEveGeoShapeExtract
()
53
{
54
delete
fShape
;
55
delete
fElements
;
56
}
57
58
////////////////////////////////////////////////////////////////////////////////
59
/// True if has at least one element.
60
61
Bool_t
TEveGeoShapeExtract::HasElements
()
62
{
63
return
fElements
!=
nullptr
&&
fElements
->
GetSize
() > 0;
64
}
65
66
////////////////////////////////////////////////////////////////////////////////
67
/// Add a child element.
68
69
void
TEveGeoShapeExtract::AddElement
(
TEveGeoShapeExtract
*
gse
)
70
{
71
if
(
fElements
==
nullptr
)
72
fElements
=
new
TList
;
73
74
fElements
->
Add
(
gse
);
75
}
76
77
////////////////////////////////////////////////////////////////////////////////
78
/// Set transformation matrix.
79
80
void
TEveGeoShapeExtract::SetTrans
(
const
Double_t
arr
[16])
81
{
82
for
(
Int_t
i=0; i<16; ++i)
83
fTrans
[i] =
arr
[i];
84
}
85
86
////////////////////////////////////////////////////////////////////////////////
87
/// Set RGBA color.
88
89
void
TEveGeoShapeExtract::SetRGBA
(
const
Float_t
arr
[4])
90
{
91
for
(
Int_t
i=0; i<4; ++i)
92
fRGBA
[i] =
arr
[i];
93
}
94
95
////////////////////////////////////////////////////////////////////////////////
96
/// Set RGBA color for line.
97
98
void
TEveGeoShapeExtract::SetRGBALine
(
const
Float_t
arr
[4])
99
{
100
for
(
Int_t
i=0; i<4; ++i)
101
fRGBALine
[i] =
arr
[i];
102
}
fShape
dims_t fShape
Definition
DeclareConverters.h:210
Float_t
float Float_t
Definition
RtypesCore.h:57
kTRUE
constexpr Bool_t kTRUE
Definition
RtypesCore.h:93
ClassImp
#define ClassImp(name)
Definition
Rtypes.h:374
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
TEveGeoNode.h
TEveGeoShapeExtract.h
TEveGeoShape.h
TGeoManager.h
TGeoShape.h
TList.h
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TCollection::GetSize
virtual Int_t GetSize() const
Return the capacity of the collection, i.e.
Definition
TCollection.h:184
TEveGeoShapeExtract
Globally positioned TGeoShape with rendering attributes and an optional list of daughter shape-extrac...
Definition
TEveGeoShapeExtract.h:21
TEveGeoShapeExtract::fRGBA
Float_t fRGBA[4]
Definition
TEveGeoShapeExtract.h:27
TEveGeoShapeExtract::AddElement
void AddElement(TEveGeoShapeExtract *gse)
Add a child element.
Definition
TEveGeoShapeExtract.cxx:69
TEveGeoShapeExtract::HasElements
Bool_t HasElements()
True if has at least one element.
Definition
TEveGeoShapeExtract.cxx:61
TEveGeoShapeExtract::SetRGBA
void SetRGBA(const Float_t arr[4])
Set RGBA color.
Definition
TEveGeoShapeExtract.cxx:89
TEveGeoShapeExtract::SetRGBALine
void SetRGBALine(const Float_t arr[4])
Set RGBA color for line.
Definition
TEveGeoShapeExtract.cxx:98
TEveGeoShapeExtract::SetTrans
void SetTrans(const Double_t arr[16])
Set transformation matrix.
Definition
TEveGeoShapeExtract.cxx:80
TEveGeoShapeExtract::~TEveGeoShapeExtract
~TEveGeoShapeExtract() override
Destructor. Delete shape and elements.
Definition
TEveGeoShapeExtract.cxx:52
TEveGeoShapeExtract::fElements
TList * fElements
Definition
TEveGeoShapeExtract.h:34
TEveGeoShapeExtract::TEveGeoShapeExtract
TEveGeoShapeExtract(const TEveGeoShapeExtract &)
TEveGeoShapeExtract::fRGBALine
Float_t fRGBALine[4]
Definition
TEveGeoShapeExtract.h:28
TEveGeoShapeExtract::fShape
TGeoShape * fShape
Definition
TEveGeoShapeExtract.h:33
TEveGeoShapeExtract::fTrans
Double_t fTrans[16]
Definition
TEveGeoShapeExtract.h:26
TList
A doubly linked list.
Definition
TList.h:38
TList::Add
void Add(TObject *obj) override
Definition
TList.h:81
TNamed
The TNamed class is the base class for all named ROOT classes.
Definition
TNamed.h:29
bool
double
int
n
const Int_t n
Definition
legend1.C:16
graf3d
eve
src
TEveGeoShapeExtract.cxx
ROOT master - Reference Guide Generated on Wed Apr 2 2025 07:35:10 (GVA Time) using Doxygen 1.10.0