00001 // $Id: LayeredBox.h,v 1.3 2001/01/23 03:41:32 burnett Exp $ 00002 //Author: Toby Burnett 00003 00004 #ifndef LAYEREDBOX_H 00005 #define LAYEREDBOX_H 00006 00007 #include "gismo/LayeredMedium.h" 00008 00010 /* The contents of each layer can be either a Medium of any type, or a solid box of the given material 00011 */ 00012 class LayeredBox : public LayeredMedium { 00013 public: 00015 00020 LayeredBox(Medium* mother, double dx, double dy); 00021 00023 00029 Medium& addLayer(double thickness, const char* material="vacuum", 00030 Detector* det=0); 00031 00032 00034 00041 Medium& addLayer(Medium* new_medium, double thickness,const char* material="vacuum"); 00042 00044 double height()const{return m_height;} 00046 double width()const{return m_width;} 00048 double depth()const{return m_depth;} 00049 00051 const char* nameOf()const{return "LayeredBox";} 00052 00054 void createDetectorView(gui::DisplayRep& view); 00055 00056 private: 00057 double m_depth, m_width, m_height; 00058 00059 }; 00060 #endif
1.2.3 written by Dimitri van Heesch,
© 1997-2000