ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
graphics
VP1
VP1Systems
VP1GeometrySystems
VP1GeometrySystems
VolumeHandleSharedData.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
3
*/
4
5
#ifndef VOLUMEHANDLESHAREDDATA_H
6
#define VOLUMEHANDLESHAREDDATA_H
7
8
//This reference counted class keeps data (and related methods) which are common
9
//for all volume handle nodes under a given top-level handle.
10
11
#include "
VP1GeometrySystems/VP1GeoFlags.h
"
12
#include <map>
13
#include <optional>
14
#include <Inventor/SbColor.h>
15
class
SoNode;
16
class
SoGroup;
17
class
SoSeparator;
18
class
VolumeHandle
;
19
class
SoMaterial;
20
class
PhiSectorManager
;
21
class
ZappedVolumeListModel
;
22
class
MatVisAttributes
;
23
class
VolVisAttributes
;
24
class
VP1GeoTreeView
;
25
class
GeoSysController
;
26
27
class
VolumeHandleSharedData
{
28
public
:
29
VolumeHandleSharedData
(
GeoSysController
*
controller
,
VP1GeoFlags::SubSystemFlag
,std::map<SoSeparator*,VolumeHandle*>* sonodesep2volhandle,
30
const
GeoPVConstLink& motherpV,
PhiSectorManager
*,
31
SoMaterial * topMaterial,
MatVisAttributes
*,
VolVisAttributes
*,
32
ZappedVolumeListModel
*,
VP1GeoTreeView
*, SoSeparator*,
33
std::optional<SbColor> outlineColour = std::nullopt);
34
~VolumeHandleSharedData
();
35
void
ref
();
36
void
unref
();
37
38
//Fixme: Inline?
39
GeoPVConstLink
geoPVConstLinkOfTreeTopsMother
()
const
;
40
PhiSectorManager
*
phiSectorManager
()
const
;
41
VP1GeoFlags::SubSystemFlag
subSystemFlag
()
const
;
42
SoMaterial *
fallBackTopLevelMaterial
()
const
;
43
VP1GeoTreeView
*
volumeBrowser
()
const
{
return
m_volumebrowser
; }
44
MatVisAttributes
*
matVisAttributes
()
const
;
45
VolVisAttributes
*
volVisAttributes
()
const
;
46
inline
SoSeparator*
textSep
()
const
{
return
m_textSep
;}
47
GeoSysController
*
controller
()
const
;
48
void
addZappedVolumeToGui
(
VolumeHandle
*);
49
void
removeZappedVolumesFromGui
(
VolumeHandle
*);
50
51
SoNode *
toShapeNode
(
const
GeoPVConstLink& pV);
//Returns shape of pV->getLogVol() (uses shared instancing as appropriate)
52
SoNode *
getSoCylinderOrientedLikeGeoTube
(
const
double
& radius,
const
double
& halfLength);
//(uses shared instancing as appropriate)
53
54
void
registerNodeSepForVolumeHandle
(SoSeparator*,
VolumeHandle
*);
55
56
static
void
setShowVolumeOutlines
(SoGroup*nodesep,
bool
showvol);
57
58
59
private
:
60
61
// It is illegal to copy/assign a VolumeHandleSharedData:
62
VolumeHandleSharedData
(
const
VolumeHandleSharedData
& );
63
VolumeHandleSharedData
&
operator=
(
const
VolumeHandleSharedData
& );
64
65
class
Imp
;
66
Imp
*
m_d
;
67
68
//For inlines:
69
VP1GeoTreeView
*
m_volumebrowser
;
70
SoSeparator*
m_textSep
;
71
72
};
73
74
#endif
VP1GeoFlags.h
GeoSysController
Definition
GeoSysController.h:29
MatVisAttributes
Definition
VisAttributes.h:71
PhiSectorManager
Definition
PhiSectorManager.h:30
VP1GeoFlags::SubSystemFlag
SubSystemFlag
Definition
VP1GeoFlags.h:30
VP1GeoTreeView
Definition
VP1GeoTreeView.h:22
VolVisAttributes
Definition
VisAttributes.h:78
VolumeHandleSharedData::Imp
Definition
VolumeHandleSharedData.cxx:26
VolumeHandleSharedData::ref
void ref()
Definition
VolumeHandleSharedData.cxx:90
VolumeHandleSharedData::textSep
SoSeparator * textSep() const
Definition
VolumeHandleSharedData.h:46
VolumeHandleSharedData::m_textSep
SoSeparator * m_textSep
base text sep
Definition
VolumeHandleSharedData.h:70
VolumeHandleSharedData::m_volumebrowser
VP1GeoTreeView * m_volumebrowser
Definition
VolumeHandleSharedData.h:69
VolumeHandleSharedData::operator=
VolumeHandleSharedData & operator=(const VolumeHandleSharedData &)
VolumeHandleSharedData::geoPVConstLinkOfTreeTopsMother
GeoPVConstLink geoPVConstLinkOfTreeTopsMother() const
Definition
VolumeHandleSharedData.cxx:231
VolumeHandleSharedData::VolumeHandleSharedData
VolumeHandleSharedData(const VolumeHandleSharedData &)
VolumeHandleSharedData::phiSectorManager
PhiSectorManager * phiSectorManager() const
Definition
VolumeHandleSharedData.cxx:128
VolumeHandleSharedData::unref
void unref()
Definition
VolumeHandleSharedData.cxx:96
VolumeHandleSharedData::controller
GeoSysController * controller() const
Definition
VolumeHandleSharedData.cxx:134
VolumeHandleSharedData::m_d
Imp * m_d
Definition
VolumeHandleSharedData.h:66
VolumeHandleSharedData::registerNodeSepForVolumeHandle
void registerNodeSepForVolumeHandle(SoSeparator *, VolumeHandle *)
Definition
VolumeHandleSharedData.cxx:140
VolumeHandleSharedData::volumeBrowser
VP1GeoTreeView * volumeBrowser() const
Definition
VolumeHandleSharedData.h:43
VolumeHandleSharedData::getSoCylinderOrientedLikeGeoTube
SoNode * getSoCylinderOrientedLikeGeoTube(const double &radius, const double &halfLength)
Definition
VolumeHandleSharedData.cxx:209
VolumeHandleSharedData::setShowVolumeOutlines
static void setShowVolumeOutlines(SoGroup *nodesep, bool showvol)
Definition
VolumeHandleSharedData.cxx:151
VolumeHandleSharedData::volVisAttributes
VolVisAttributes * volVisAttributes() const
Definition
VolumeHandleSharedData.cxx:110
VolumeHandleSharedData::subSystemFlag
VP1GeoFlags::SubSystemFlag subSystemFlag() const
Definition
VolumeHandleSharedData.cxx:122
VolumeHandleSharedData::removeZappedVolumesFromGui
void removeZappedVolumesFromGui(VolumeHandle *)
Definition
VolumeHandleSharedData.cxx:243
VolumeHandleSharedData::addZappedVolumeToGui
void addZappedVolumeToGui(VolumeHandle *)
Definition
VolumeHandleSharedData.cxx:237
VolumeHandleSharedData::fallBackTopLevelMaterial
SoMaterial * fallBackTopLevelMaterial() const
Definition
VolumeHandleSharedData.cxx:116
VolumeHandleSharedData::matVisAttributes
MatVisAttributes * matVisAttributes() const
Definition
VolumeHandleSharedData.cxx:104
VolumeHandleSharedData::toShapeNode
SoNode * toShapeNode(const GeoPVConstLink &pV)
Definition
VolumeHandleSharedData.cxx:181
VolumeHandleSharedData::~VolumeHandleSharedData
~VolumeHandleSharedData()
Definition
VolumeHandleSharedData.cxx:72
VolumeHandleSharedData::VolumeHandleSharedData
VolumeHandleSharedData(GeoSysController *controller, VP1GeoFlags::SubSystemFlag, std::map< SoSeparator *, VolumeHandle * > *sonodesep2volhandle, const GeoPVConstLink &motherpV, PhiSectorManager *, SoMaterial *topMaterial, MatVisAttributes *, VolVisAttributes *, ZappedVolumeListModel *, VP1GeoTreeView *, SoSeparator *, std::optional< SbColor > outlineColour=std::nullopt)
Definition
VolumeHandleSharedData.cxx:45
VolumeHandle
Definition
VolumeHandle.h:21
ZappedVolumeListModel
Definition
ZappedVolumeListModel.h:15
Generated on
for ATLAS Offline Software by
1.17.0