CMS 3D CMS Logo

IgSoCrystalHit.h

Go to the documentation of this file.
00001 #ifndef IG_OPEN_INVENTOR_IG_SO_CRYSTAL_HIT_H
00002 # define IG_OPEN_INVENTOR_IG_SO_CRYSTAL_HIT_H
00003 
00004 //<<<<<< INCLUDES                                                       >>>>>>
00005 
00006 # include "Iguana/Inventor/interface/IgSoShapeKit.h"
00007 # include <Inventor/fields/SoSFFloat.h>
00008 # include <Inventor/fields/SoSFBool.h>
00009 # include <Inventor/fields/SoSFVec3f.h>
00010 # ifdef WIN32
00011 #  include <SoWinLeaveScope.h>
00012 # endif
00013 
00014 //<<<<<< PUBLIC DEFINES                                                 >>>>>>
00015 //<<<<<< PUBLIC CONSTANTS                                               >>>>>>
00016 //<<<<<< PUBLIC TYPES                                                   >>>>>>
00017 //<<<<<< PUBLIC VARIABLES                                               >>>>>>
00018 //<<<<<< PUBLIC FUNCTIONS                                               >>>>>>
00019 //<<<<<< CLASS DECLARATIONS                                             >>>>>>
00020 
00033 class IG_OPEN_INVENTOR_API IgSoCrystalHit : public IgSoShapeKit
00034 {
00035     SO_KIT_HEADER (IgSoCrystalHit);
00036     SO_KIT_CATALOG_ENTRY_HEADER (shapeHints);
00037     SO_KIT_CATALOG_ENTRY_HEADER (faces);
00038     SO_KIT_CATALOG_ENTRY_HEADER (lines);
00039 
00040 public:
00041     IgSoCrystalHit (void);
00042     static void initClass (void);
00043 
00044     SoSFFloat energy;           //< Energy (in GeV)
00045     SoSFFloat minimumEnergy;    //< Minimum energy to draw (in GeV)
00046     SoSFFloat scale;            //< Scale for energy (GeV / unit distance)
00047     SoSFFloat relativeWidth;    //< Width of energy bump relative to crystal [0,1]
00048 
00049     SoSFBool  drawCrystal;      //< Draw crystal (if TRUE)
00050     SoSFBool  drawHit;          //< Draw hit     (if TRUE)
00051     SoSFBool  showLines;
00052  
00053     SoSFVec3f front1;           //< corner 1 of front face          
00054     SoSFVec3f front2;           //< corner 2 of front face    
00055     SoSFVec3f front3;           //< corner 3 of front face    
00056     SoSFVec3f front4;           //< corner 4 of front face    
00057                         
00058     SoSFVec3f back1;            //< corner 1 of back face               
00059     SoSFVec3f back2;            //< corner 2 of back face    
00060     SoSFVec3f back3;            //< corner 3 of back face    
00061     SoSFVec3f back4;            //< corner 4 of back face    
00062                                         
00063 protected:
00064     virtual void refresh (void);
00065 };
00066 
00067 //<<<<<< INLINE PUBLIC FUNCTIONS                                        >>>>>>
00068 //<<<<<< INLINE MEMBER FUNCTIONS                                        >>>>>>
00069 
00070 # ifdef WIN32
00071 #  include <SoWinEnterScope.h>
00072 # endif
00073 #endif // IG_OPEN_INVENTOR_IG_SO_CRYSTAL_HIT_H

Generated on Tue Jun 9 17:38:43 2009 for CMSSW by  doxygen 1.5.4