Definition at line 33 of file VP1EtaCone.cxx.
◆ Imp()
| VP1EtaCone::Imp::Imp |
( |
VP1EtaCone * |
tc, |
|
|
SoMaterial * |
mat, |
|
|
SoSeparator * |
attachsep |
|
) |
| |
◆ ensureInit3DObjects()
| void VP1EtaCone::Imp::ensureInit3DObjects |
( |
| ) |
|
Definition at line 90 of file VP1EtaCone.cxx.
95 sep =
new SoSeparator;
99 SoSeparator * sepfirst =
new SoSeparator;
100 SoSeparator * sepsecond =
new SoSeparator;
102 for (
int i = 0;
i<2;++
i){
103 SoRotationXYZ * xf =
new SoRotationXYZ();
106 SoTranslation * xl =
new SoTranslation();
107 SoCone * cone =
new SoCone();
108 SoTranslation * innerxl =
new SoTranslation();
109 SoCone * innercone =
new SoCone();
123 cone->removePart(SoCone::BOTTOM);
124 innercone->removePart(SoCone::BOTTOM);
126 SoSeparator *
s(
i==0?sepfirst:sepsecond);
130 s->addChild(innerxl);
131 s->addChild(innercone);
◆ updateFields()
| void VP1EtaCone::Imp::updateFields |
( |
| ) |
|
Definition at line 137 of file VP1EtaCone.cxx.
144 bool etaconeextentisz = (
extent<0);
145 double absextent = fabs(
extent);
146 double coneHeight,bottomRadius;
147 if (etaconeextentisz) {
148 coneHeight = absextent;
149 bottomRadius = coneHeight*tanfact;
151 bottomRadius = absextent;
152 coneHeight=bottomRadius/tanfact;
162 cone1->bottomRadius = bottomRadius;
163 cone1->height = coneHeight;
164 cone2->bottomRadius = bottomRadius;
165 cone2->height = coneHeight;
166 trans1->translation.setValue(0, -coneHeight/2, 0);
167 trans2->translation.setValue(0, -coneHeight/2, 0);
◆ attachSep
| SoSeparator* VP1EtaCone::Imp::attachSep |
◆ cone1
| SoCone* VP1EtaCone::Imp::cone1 |
◆ cone2
| SoCone* VP1EtaCone::Imp::cone2 |
◆ etaval
| double VP1EtaCone::Imp::etaval |
◆ extent
| double VP1EtaCone::Imp::extent |
◆ innercone1
| SoCone* VP1EtaCone::Imp::innercone1 |
◆ innercone2
| SoCone* VP1EtaCone::Imp::innercone2 |
◆ innertrans1
| SoTranslation* VP1EtaCone::Imp::innertrans1 |
◆ innertrans2
| SoTranslation* VP1EtaCone::Imp::innertrans2 |
◆ material
| SoMaterial* VP1EtaCone::Imp::material |
◆ sep
| SoSeparator* VP1EtaCone::Imp::sep |
◆ shown
| bool VP1EtaCone::Imp::shown |
◆ theclass
◆ trans1
| SoTranslation* VP1EtaCone::Imp::trans1 |
◆ trans2
| SoTranslation* VP1EtaCone::Imp::trans2 |
The documentation for this class was generated from the following file: