#include <VolumeHandleSharedData.h>
|
| VolumeHandleSharedData (GeoSysController *controller, VP1GeoFlags::SubSystemFlag, std::map< SoSeparator *, VolumeHandle * > *sonodesep2volhandle, const GeoPVConstLink &motherpV, PhiSectorManager *, SoMaterial *topMaterial, MatVisAttributes *, VolVisAttributes *, ZappedVolumeListModel *, VP1GeoTreeView *, SoSeparator *) |
|
| ~VolumeHandleSharedData () |
|
void | ref () |
|
void | unref () |
|
GeoPVConstLink | geoPVConstLinkOfTreeTopsMother () const |
|
PhiSectorManager * | phiSectorManager () const |
|
VP1GeoFlags::SubSystemFlag | subSystemFlag () const |
|
SoMaterial * | fallBackTopLevelMaterial () const |
|
VP1GeoTreeView * | volumeBrowser () const |
|
MatVisAttributes * | matVisAttributes () const |
|
VolVisAttributes * | volVisAttributes () const |
|
SoSeparator * | textSep () const |
|
GeoSysController * | controller () const |
|
void | addZappedVolumeToGui (VolumeHandle *) |
|
void | removeZappedVolumesFromGui (VolumeHandle *) |
|
SoNode * | toShapeNode (const GeoPVConstLink &pV) |
|
SoNode * | getSoCylinderOrientedLikeGeoTube (const double &radius, const double &halfLength) |
|
void | registerNodeSepForVolumeHandle (SoSeparator *, VolumeHandle *) |
|
Definition at line 25 of file VolumeHandleSharedData.h.
◆ VolumeHandleSharedData() [1/2]
VolumeHandleSharedData::VolumeHandleSharedData |
( |
GeoSysController * |
controller, |
|
|
VP1GeoFlags::SubSystemFlag |
flag, |
|
|
std::map< SoSeparator *, VolumeHandle * > * |
sonodesep2volhandle, |
|
|
const GeoPVConstLink & |
motherpV, |
|
|
PhiSectorManager * |
psm, |
|
|
SoMaterial * |
topMaterial, |
|
|
MatVisAttributes * |
matVisAttributes, |
|
|
VolVisAttributes * |
volVisAttributes, |
|
|
ZappedVolumeListModel * |
zappedvolumelistmodel, |
|
|
VP1GeoTreeView * |
volbrowser, |
|
|
SoSeparator * |
textSep |
|
) |
| |
◆ ~VolumeHandleSharedData()
VolumeHandleSharedData::~VolumeHandleSharedData |
( |
| ) |
|
◆ VolumeHandleSharedData() [2/2]
◆ addZappedVolumeToGui()
void VolumeHandleSharedData::addZappedVolumeToGui |
( |
VolumeHandle * |
handle | ) |
|
◆ controller()
◆ fallBackTopLevelMaterial()
SoMaterial * VolumeHandleSharedData::fallBackTopLevelMaterial |
( |
| ) |
const |
◆ geoPVConstLinkOfTreeTopsMother()
GeoPVConstLink VolumeHandleSharedData::geoPVConstLinkOfTreeTopsMother |
( |
| ) |
const |
◆ getSoCylinderOrientedLikeGeoTube()
SoNode * VolumeHandleSharedData::getSoCylinderOrientedLikeGeoTube |
( |
const double & |
radius, |
|
|
const double & |
halfLength |
|
) |
| |
Definition at line 191 of file VolumeHandleSharedData.cxx.
193 double id =
radius - 9999.0*halfLength;
198 SoGroup *
group =
new SoGroup;
199 SoRotationXYZ * rot =
new SoRotationXYZ;
201 rot->angle.setValue(
M_PI*0.5
f);
202 group->addChild(rot);
203 SoCylinder * cyl =
new SoCylinder;
204 cyl->radius.setValue(
radius);
205 cyl->height.setValue(2.0*halfLength);
206 group->addChild(cyl);
◆ matVisAttributes()
◆ operator=()
◆ phiSectorManager()
◆ ref()
void VolumeHandleSharedData::ref |
( |
| ) |
|
◆ registerNodeSepForVolumeHandle()
void VolumeHandleSharedData::registerNodeSepForVolumeHandle |
( |
SoSeparator * |
n, |
|
|
VolumeHandle * |
vh |
|
) |
| |
◆ removeZappedVolumesFromGui()
void VolumeHandleSharedData::removeZappedVolumesFromGui |
( |
VolumeHandle * |
handle | ) |
|
◆ setShowVolumeOutlines()
void VolumeHandleSharedData::setShowVolumeOutlines |
( |
SoGroup * |
nodesep, |
|
|
bool |
showvol |
|
) |
| |
|
static |
Definition at line 137 of file VolumeHandleSharedData.cxx.
139 for (
int i = 0;
i<nodegroup->getNumChildren();++
i) {
140 SoNode *
n = nodegroup->getChild(
i);
141 if (
n->getTypeId().isDerivedFrom(SoGenericBox::getClassTypeId())) {
142 if (
static_cast<SoGenericBox*
>(
n)->drawEdgeLines.getValue()!=showvol)
143 static_cast<SoGenericBox*
>(
n)->drawEdgeLines.setValue(showvol);
144 }
else if (
n->getTypeId().isDerivedFrom(SoTubs::getClassTypeId())) {
146 static_cast<SoTubs*
>(
n)->drawEdgeLines.setValue(showvol);
148 }
else if (
n->getTypeId().isDerivedFrom(SoPcons::getClassTypeId())) {
150 static_cast<SoPcons*
>(
n)->drawEdgeLines.setValue(showvol);
152 }
else if (
n->getTypeId().isDerivedFrom(SoTessellated::getClassTypeId())) {
156 }
else if (
n->getTypeId().isDerivedFrom(SoGroup::getClassTypeId())) {
◆ subSystemFlag()
◆ textSep()
SoSeparator* VolumeHandleSharedData::textSep |
( |
| ) |
const |
|
inline |
◆ toShapeNode()
SoNode * VolumeHandleSharedData::toShapeNode |
( |
const GeoPVConstLink & |
pV | ) |
|
Definition at line 163 of file VolumeHandleSharedData.cxx.
165 const GeoLogVol * logVolume = pV->getLogVol();
171 return itShape->second;
174 const GeoShape * geoshape = logVolume->getShape();
177 if (geoshape->typeID()==GeoShapeShift::getClassTypeID()) {
178 dynamic_cast<const GeoShapeShift*
>(geoshape)->getOp()->exec(&(
m_d->
visaction));
◆ unref()
void VolumeHandleSharedData::unref |
( |
| ) |
|
◆ volumeBrowser()
◆ volVisAttributes()
◆ m_d
Imp* VolumeHandleSharedData::m_d |
|
private |
◆ m_textSep
SoSeparator* VolumeHandleSharedData::m_textSep |
|
private |
◆ m_volumebrowser
The documentation for this class was generated from the following files: