Changeset 343
- Timestamp:
- Apr 20, 2007, 9:46:26 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
MEMPHYS/HEAD/applications/HitsCollectionAccessor.cxx
r341 r343 7 7 #include <Inventor/nodes/SoLightModel.h> 8 8 #include <Inventor/nodes/SoDrawStyle.h> 9 #include <Inventor/nodes/SoCube.h> 9 10 10 11 // HEPVis : 11 12 #include <HEPVis/SbPolyhedron.h> 12 13 #include <HEPVis/misc/SoStyleCache.h> 13 #include <HEPVis/misc/SoTools.h>14 //#include <HEPVis/misc/SoTools.h> 14 15 #include <HEPVis/nodes/SoHighlightMaterial.h> 15 16 … … 74 75 (float)color.GetBlue()); 75 76 float transp = 1.0F - (float)color.GetAlpha(); 76 //SbColor sbColor(1,0,0); 77 //float transp = 0; 77 /* 78 SbColor sbColor(1,0,0); 79 float transp = 0; 80 */ 78 81 79 82 separator->addChild( … … 111 114 float WCPMTRadius = 0.15F*m; // PMTs (12-inch) 112 115 113 SbVec3f normal(0,0,1);114 115 116 // half size : 116 117 float h = WCPMTRadius; 117 118 119 /* 120 SbVec3f normal(0,0,1); 118 121 SbVec3f line[5]; 119 122 line[0].setValue(+h,-h,0); … … 123 126 line[4].setValue(+h,-h,0); 124 127 SoTools::addPolygonToNode(separator,4,line,normal,""); 128 */ 129 130 // Have a SoCube to hide the PM visualized at the 131 // same place with "All PMs". 132 SoCube* soCube = new SoCube; 133 soCube->width.setValue(2*h); 134 soCube->height.setValue(2*h); 135 //Some tiny depth to include and hide the PM : 136 soCube->depth.setValue(0.01F*h); 137 separator->addChild(soCube); 125 138 126 139 fSoRegion->doIt(SbAddNode(separator,"dynamicScene"));
Note: See TracChangeset
for help on using the changeset viewer.