Changeset 127 for MEMPHYS


Ignore:
Timestamp:
Apr 3, 2006, 3:00:41 PM (18 years ago)
Author:
barrand
Message:

G.Barrand : SoCylinder -> SoPolyhedron along z

File:
1 edited

Legend:

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

    r120 r127  
    88#include <Inventor/nodes/SoDrawStyle.h>
    99
    10 #include <Inventor/nodes/SoCube.h> //FIXME
     10//#include <Inventor/nodes/SoCube.h> //FIXME
     11//#include <Inventor/nodes/SoCylinder.h> //JEC 27/1/06 FIXME
    1112
    1213// HEPVis :
     14#include <HEPVis/SbPolyhedron.h>
    1315#include <HEPVis/misc/SoStyleCache.h>
    1416#include <HEPVis/nodes/SoHighlightMaterial.h>
     17#include <HEPVis/nodes/SoPolyhedron.h>
    1518
    1619#ifdef WIN32
     
    100103
    101104  //FIXME : PM base size :
    102   double WCPMTRadius           = 0.10*m;  // 20-cm PMTs (8-inch)
     105//   double WCPMTRadius           = 0.10*m;  // 20-cm PMTs (8-inch)
     106  //JEC 27/1/06 double WCPMTRadius           = 0.10*m;  // 20-cm PMTs (8-inch)
     107  double WCPMTRadius           = 0.15*m;  // PMTs (12-inch)
    103108
    104   SoCube* soCube = new SoCube;
    105   soCube->width.setValue(WCPMTRadius);
    106   soCube->height.setValue(WCPMTRadius);
    107   soCube->depth.setValue(WCPMTRadius);
    108   soCube->setName(name);
     109  /*
     110  SoCylinder* soPMT = new SoCylinder;
     111  soPMT->radius.setValue(WCPMTRadius);
     112  soPMT->height.setValue(WCPMTRadius);
     113  //JEC what's SoCylinder parts?
     114  separator->addChild(soPMT);
     115  */
     116
     117  SbPolyhedronTube sbTube(0,WCPMTRadius,WCPMTRadius/2);
     118  SoPolyhedron* soPMT = new SoPolyhedron(sbTube);
     119  //soPMT->radius.setValue(WCPMTRadius);
     120  //soPMT->height.setValue(WCPMTRadius);
     121  //JEC what's SoCylinder parts?
     122  separator->addChild(soPMT);
     123
     124
     125//   SoCube* soCube = new SoCube;
     126//   soCube->width.setValue(WCPMTRadius);
     127//   soCube->height.setValue(WCPMTRadius);
     128//   soCube->depth.setValue(WCPMTRadius);
     129//   soCube->setName(name);
    109130       
    110   separator->addChild(soCube);
     131//   separator->addChild(soCube);
    111132         
    112133  fSoRegion->doIt(SbAddNode(separator,"dynamicScene"));
Note: See TracChangeset for help on using the changeset viewer.