|
ATLAS Offline Software
|
#include <VolumeHandle.h>
Definition at line 21 of file VolumeHandle.h.
◆ VolumeHandleList
◆ VolumeHandleListConstItr
◆ VolumeHandleListItr
◆ MuonChamberState
Enumerator |
---|
NONMUONCHAMBER | |
MUONCHAMBERCHILD | |
MUONCHAMBER | |
MUONCHAMBER_DIRTY | |
Definition at line 24 of file VolumeHandle.h.
◆ VolumeHandle() [1/2]
◆ ~VolumeHandle()
VolumeHandle::~VolumeHandle |
( |
| ) |
|
|
virtual |
◆ VolumeHandle() [2/2]
◆ applyPersistifiableState()
void VolumeHandle::applyPersistifiableState |
( |
QByteArray |
ba | ) |
|
◆ attachAllContractedChildren()
void VolumeHandle::attachAllContractedChildren |
( |
| ) |
|
|
private |
Definition at line 422 of file VolumeHandle.cxx.
432 (*childItr)->m_d->attach(*childItr);
434 (*childItr)->attachAllContractedChildren();
◆ child()
◆ childNumber()
int VolumeHandle::childNumber |
( |
| ) |
const |
|
inline |
◆ childrenAreInitialised()
bool VolumeHandle::childrenAreInitialised |
( |
| ) |
const |
|
inline |
◆ childrenBegin()
◆ childrenEnd()
◆ contractDaughtersRecursively()
void VolumeHandle::contractDaughtersRecursively |
( |
| ) |
|
Definition at line 403 of file VolumeHandle.cxx.
411 (*childItr)->contractDaughtersRecursively();
◆ copyNumber()
int VolumeHandle::copyNumber |
( |
| ) |
const |
Definition at line 455 of file VolumeHandle.cxx.
457 GeoPVConstLink parent_pV;
462 if (parent_pV==
m_d->
pV) {
468 GeoVolumeCursor av(parent_pV);
470 while (!av.atEnd()) {
472 Query<int> Qint = av.getId();
473 return Qint.isValid() ?
int(Qint) : -1;
◆ detachAllContractedChildren()
void VolumeHandle::detachAllContractedChildren |
( |
| ) |
|
|
private |
Definition at line 439 of file VolumeHandle.cxx.
448 (*childItr)->m_d->detach();
450 (*childItr)->detachAllContractedChildren();
◆ ensureBuildNodeSep()
void VolumeHandle::ensureBuildNodeSep |
( |
| ) |
|
Definition at line 238 of file VolumeHandle.cxx.
259 std::cout <<
"Geomsys/VolumeHandle Error: Null shape!!!"<<std::endl;
271 if (
m_d->
pV->getLogVol()->getShape()->typeID()==GeoTube::getClassTypeID() )
274 const GeoTube * geotube =
static_cast<const GeoTube*
>(
m_d->
pV->getLogVol()->getShape());
275 if (geotube->getRMin()==0.0)
278 else if (
m_d->
pV->getLogVol()->getShape()->typeID()==GeoTubs::getClassTypeID() )
281 const GeoTubs * geotubs =
static_cast<const GeoTubs*
>(
m_d->
pV->getLogVol()->getShape());
282 if (geotubs->getRMin()==0.0 && geotubs->getDPhi() >= 2*
M_PI-1.0e-6)
289 if (
m_d->
pV->getLogVol()->getShape()->typeID()==GeoShapeShift::getClassTypeID())
298 SoSwitch * sw =
new SoSwitch;
300 SoSeparator * sep_slicedvols =
new SoSeparator;
301 sw->addChild(sep_slicedvols);
◆ expandMothersRecursivelyToNonEther()
void VolumeHandle::expandMothersRecursivelyToNonEther |
( |
| ) |
|
Definition at line 518 of file VolumeHandle.cxx.
531 (*childItr)->expandMothersRecursivelyToNonEther();
◆ geoMaterial()
const GeoMaterial * VolumeHandle::geoMaterial |
( |
| ) |
const |
◆ geoPVConstLink()
GeoPVConstLink VolumeHandle::geoPVConstLink |
( |
| ) |
const |
◆ getDescriptiveName()
QString VolumeHandle::getDescriptiveName |
( |
| ) |
const |
|
inlinevirtual |
◆ getGlobalTransformToVolume()
const SbMatrix & VolumeHandle::getGlobalTransformToVolume |
( |
| ) |
const |
◆ getLocalTransformToVolume()
SbMatrix VolumeHandle::getLocalTransformToVolume |
( |
| ) |
const |
◆ getName()
QString VolumeHandle::getName |
( |
| ) |
const |
◆ getNameStdString()
std::string VolumeHandle::getNameStdString |
( |
| ) |
const |
◆ getPersistifiableState()
QByteArray VolumeHandle::getPersistifiableState |
( |
| ) |
const |
◆ hashID()
quint32 VolumeHandle::hashID |
( |
| ) |
const |
◆ hasName()
bool VolumeHandle::hasName |
( |
const std::string & |
n | ) |
const |
◆ haveParentsNotExpanded()
bool VolumeHandle::haveParentsNotExpanded |
( |
| ) |
const |
|
private |
◆ initialiseChildren()
void VolumeHandle::initialiseChildren |
( |
| ) |
|
◆ isAttached()
bool VolumeHandle::isAttached |
( |
| ) |
const |
◆ isEther()
bool VolumeHandle::isEther |
( |
| ) |
const |
◆ isInitialisedAndHasNonStandardShape()
bool VolumeHandle::isInitialisedAndHasNonStandardShape |
( |
| ) |
const |
◆ isInMuonChamber()
bool VolumeHandle::isInMuonChamber |
( |
| ) |
const |
|
inline |
◆ isMuonChamber()
bool VolumeHandle::isMuonChamber |
( |
| ) |
const |
|
inline |
◆ isPositiveZ()
bool VolumeHandle::isPositiveZ |
( |
| ) |
const |
◆ material()
SoMaterial * VolumeHandle::material |
( |
| ) |
|
◆ muonChamberDirty()
bool VolumeHandle::muonChamberDirty |
( |
| ) |
const |
|
inline |
◆ muonChamberState()
◆ muonChamberT0()
QString VolumeHandle::muonChamberT0 |
( |
unsigned int |
= 0 | ) |
const |
|
inlinevirtual |
◆ nChildren()
unsigned VolumeHandle::nChildren |
( |
| ) |
const |
|
inline |
◆ nodeSoSeparator()
SoSeparator * VolumeHandle::nodeSoSeparator |
( |
| ) |
const |
◆ operator=()
◆ parent()
◆ reset()
void VolumeHandle::reset |
( |
| ) |
|
|
inline |
◆ setMuonChamberDirty()
void VolumeHandle::setMuonChamberDirty |
( |
bool |
b | ) |
|
|
inline |
◆ setState()
◆ state()
◆ subsystem()
◆ topLevelParent()
◆ updateLabels()
void VolumeHandle::updateLabels |
( |
| ) |
|
Definition at line 672 of file VolumeHandle.cxx.
683 SoText2 *labelText =
new SoText2;
696 for (
unsigned int i=0;
i<3 ;++
i){
698 unsigned int mask=1<<(
i+1);
707 if (
i==2)
output+=
"<unknown>=";
715 for(
const QString&
str :
text){
717 labelText->string.set1Value(
row++,
array.data());
721 assert(labelTranslate!=0);
723 float labx,laby,labz;
724 labelTranslate->translation.getValue().getValue(labx,laby,labz);
727 labelTranslate->translation.setValue(labx+(offsets[0]*offScale),laby+(offsets[1]*offScale),labz+(offsets[2]*offScale));
◆ m_childNumber
const int VolumeHandle::m_childNumber |
|
private |
◆ m_children
◆ m_d
◆ m_muonChamberState
◆ m_nchildren
const unsigned VolumeHandle::m_nchildren |
|
private |
◆ m_parent
◆ m_state
The documentation for this class was generated from the following files:
SoMaterial * fallBackTopLevelMaterial() const
virtual QString muonChamberT0(unsigned int=0) const
bool isInMuonChamber() const
VP1ExtraSepLayerHelper * getSepHelperForNode(VP1GeoFlags::SubSystemFlag flag, int iphi)
static bool hasNonStandardShapeChildren(const SoGroup *g)
void setState(const VP1GeoFlags::VOLSTATE &state)
const GeoMaterial * geoMaterial() const
void attachAllContractedChildren()
VolumeHandle * topLevelParent()
void attach(VolumeHandle *vh)
GeoPVConstLink geoPVConstLink() const
VolVisAttributes * volVisAttributes() const
VolumeHandleList m_children
bool isMuonChamber() const
bool childrenAreInitialised() const
int getVolumeType(const SbMatrix &transform, SoNode *shape) const
VP1ExtraSepLayerHelper * registerVolumeAroundZAxis(VP1GeoFlags::SubSystemFlag flag, SoSwitch *sw, const SbMatrix &tranformation)
static void initAllCustomClasses()
PhiSectorManager * phiSectorManager() const
void detachAllContractedChildren()
static VolState getChildStates(const VolumeHandle *theclass)
static void applyChildStates(const VolState &, VolumeHandle *theclass)
void registerNodeSepForVolumeHandle(SoSeparator *, VolumeHandle *)
VolumeHandleSharedData * commondata
VP1GeoFlags::VOLSTATE m_state
MuonChamberState m_muonChamberState
VolumeHandle(VolumeHandleSharedData *, VolumeHandle *parent, const GeoPVConstLink &, int childNumber, const MuonChamberState &mcs=NONMUONCHAMBER, const SbMatrix &accumTrans=SbMatrix())
void initialiseChildren()
GeoPVConstLink geoPVConstLinkOfTreeTopsMother() const
unsigned nChildren() const
bool haveParentsNotExpanded() const
static void transformToMatrix(SoTransform *xf, SbMatrix &result)
VP1ExtraSepLayerHelper * attachsepHelper
VP1GeoFlags::SubSystemFlag subSystemFlag() const
void removeZappedVolumesFromGui(VolumeHandle *)
VP1ExtraSepLayerHelper * getLabelSepHelperForNode(VP1GeoFlags::SubSystemFlag flag, int iphi)
Addition to handle label separators, in exactly the same way as getSepHelperForNode(....
static void messageDebug(const QString &)
void addZappedVolumeToGui(VolumeHandle *)
HepGeom::Transform3D EigenTransformToCLHEP(const Amg::Transform3D &eigenTransf)
Converts an Eigen-based Amg::Transform3D into a CLHEP-based HepGeom::Transform3D.
VolumeHandleList::iterator VolumeHandleListItr
VP1GeoFlags::VOLSTATE state() const
const SbMatrix accumTrans
VP1ExtraSepLayerHelper * attachlabelSepHelper
QList< int > labelsPosOffsets
GeoSysController * controller() const
SoNode * toShapeNode(const GeoPVConstLink &pV)
QList< int > labelPosOffset()
Offset in x,y,z.
SoMaterial * get(const std::string &name) const
SoNode * getSoCylinderOrientedLikeGeoTube(const double &radius, const double &halfLength)
static SoTransform * toSoTransform(const HepGeom::Transform3D &, SoTransform *t=0)
const unsigned m_nchildren
const SbMatrix & getGlobalTransformToVolume() const
virtual QString getDescriptiveName() const
MatVisAttributes * matVisAttributes() const
void contractDaughtersRecursively()