ATLAS Offline Software
Loading...
Searching...
No Matches
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
12#include <map>
13#include <optional>
14#include <Inventor/SbColor.h>
15class SoNode;
16class SoGroup;
17class SoSeparator;
18class VolumeHandle;
19class SoMaterial;
24class VP1GeoTreeView;
26
28public:
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);
35 void ref();
36 void unref();
37
38 //Fixme: Inline?
39 GeoPVConstLink geoPVConstLinkOfTreeTopsMother() const;
42 SoMaterial * fallBackTopLevelMaterial() const;
46 inline SoSeparator* textSep() const {return m_textSep;}
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
55
56 static void setShowVolumeOutlines(SoGroup*nodesep,bool showvol);
57
58
59private:
60
61 // It is illegal to copy/assign a VolumeHandleSharedData:
64
65 class Imp;
67
68 //For inlines:
70 SoSeparator* m_textSep;
71
72};
73
74#endif
SoSeparator * textSep() const
SoSeparator * m_textSep
base text sep
VolumeHandleSharedData & operator=(const VolumeHandleSharedData &)
GeoPVConstLink geoPVConstLinkOfTreeTopsMother() const
VolumeHandleSharedData(const VolumeHandleSharedData &)
PhiSectorManager * phiSectorManager() const
GeoSysController * controller() const
void registerNodeSepForVolumeHandle(SoSeparator *, VolumeHandle *)
VP1GeoTreeView * volumeBrowser() const
SoNode * getSoCylinderOrientedLikeGeoTube(const double &radius, const double &halfLength)
static void setShowVolumeOutlines(SoGroup *nodesep, bool showvol)
VolVisAttributes * volVisAttributes() const
VP1GeoFlags::SubSystemFlag subSystemFlag() const
void removeZappedVolumesFromGui(VolumeHandle *)
void addZappedVolumeToGui(VolumeHandle *)
SoMaterial * fallBackTopLevelMaterial() const
MatVisAttributes * matVisAttributes() const
SoNode * toShapeNode(const GeoPVConstLink &pV)
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)