Changeset 343


Ignore:
Timestamp:
Apr 20, 2007, 9:46:26 AM (17 years ago)
Author:
barrand
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • MEMPHYS/HEAD/applications/HitsCollectionAccessor.cxx

    r341 r343  
    77#include <Inventor/nodes/SoLightModel.h>
    88#include <Inventor/nodes/SoDrawStyle.h>
     9#include <Inventor/nodes/SoCube.h>
    910
    1011// HEPVis :
    1112#include <HEPVis/SbPolyhedron.h>
    1213#include <HEPVis/misc/SoStyleCache.h>
    13 #include <HEPVis/misc/SoTools.h>
     14//#include <HEPVis/misc/SoTools.h>
    1415#include <HEPVis/nodes/SoHighlightMaterial.h>
    1516
     
    7475                    (float)color.GetBlue());
    7576    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*/
    7881
    7982    separator->addChild(
     
    111114  float WCPMTRadius = 0.15F*m;  // PMTs (12-inch)
    112115
    113   SbVec3f normal(0,0,1);
    114 
    115116  // half size :
    116117  float h = WCPMTRadius;
    117118
     119/*
     120  SbVec3f normal(0,0,1);
    118121  SbVec3f line[5];
    119122  line[0].setValue(+h,-h,0);
     
    123126  line[4].setValue(+h,-h,0);
    124127  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);
    125138
    126139  fSoRegion->doIt(SbAddNode(separator,"dynamicScene"));
Note: See TracChangeset for help on using the changeset viewer.