Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

LayeredBox Class Reference

Subclass of LayeredMedium, that implements a box subdivided by planes. More...

#include <LayeredBox.h>

Inheritance diagram for LayeredBox:

LayeredMedium CompositeMedium Medium MediumList GeomObject List of all members.

Public Methods

 LayeredBox (Medium* mother, double dx, double dy)
MediumaddLayer (double thickness, const char* material="vacuum", Detector* det=0)
 The enclosing Box will be increased in the z-direction by thickness. More...

MediumaddLayer (Medium* new_medium, double thickness,const char* material="vacuum")
 An important constraint is that the added Medium fit within a box defined by dx, dy, thickness, and centered on the orign. More...

double height () const
 access to the outer dimensions (respectively x,y,z before rotations). More...

double width () const
 access to the outer dimensions (respectively x,y,z before rotations). More...

double depth () const
 access to the outer dimensions (respectively x,y,z before rotations). More...

const char* nameOf () const
 return classname. More...

void createDetectorView (gui::DisplayRep& view)
 Graphical display. More...


Private Attributes

double m_depth
double m_width
double m_height

Detailed Description

Subclass of LayeredMedium, that implements a box subdivided by planes.

Definition at line 12 of file LayeredBox.h.


Constructor & Destructor Documentation

LayeredBox::LayeredBox ( Medium * mother,
double dx,
double dy )
 

Parameters:
mother   The mother volume, enclosing the given one.
dx   The initial extent along the x-axis
dy   The initial extent along the x-axis. The box will grow in the z-direction.

Definition at line 14 of file LayeredBox.cxx.


Member Function Documentation

Medium & LayeredBox::addLayer ( Medium * inner_medium,
double thickness,
const char * mat = "vacuum" )
 

An important constraint is that the added Medium fit within a box defined by dx, dy, thickness, and centered on the orign.

Geometry errors would result otherwise. The material (default vacuum) would be used for any open spaces. Returns reference to the new medium for further modification.

Definition at line 49 of file LayeredBox.cxx.

Medium & LayeredBox::addLayer ( double thickness,
const char * material = "vacuum",
Detector * det = 0 )
 

The enclosing Box will be increased in the z-direction by thickness.

The origin, in the center of the original face, will remain at z=0. Returns reference to the new medium for further modification.

Parameters:
thickness   The additional thickness.

Definition at line 33 of file LayeredBox.cxx.

void LayeredBox::createDetectorView ( gui::DisplayRep & view ) [virtual]
 

Graphical display.

Reimplemented from LayeredMedium.

Definition at line 81 of file LayeredBox.cxx.

double LayeredBox::depth ( ) const [inline]
 

access to the outer dimensions (respectively x,y,z before rotations).

Definition at line 48 of file LayeredBox.h.

double LayeredBox::height ( ) const [inline]
 

access to the outer dimensions (respectively x,y,z before rotations).

Definition at line 44 of file LayeredBox.h.

const char * LayeredBox::nameOf ( ) const [inline, virtual]
 

return classname.

Reimplemented from CompositeMedium.

Definition at line 51 of file LayeredBox.h.

double LayeredBox::width ( ) const [inline]
 

access to the outer dimensions (respectively x,y,z before rotations).

Definition at line 46 of file LayeredBox.h.


Member Data Documentation

double LayeredBox::m_depth [private]
 

Definition at line 57 of file LayeredBox.h.

double LayeredBox::m_height [private]
 

Definition at line 57 of file LayeredBox.h.

double LayeredBox::m_width [private]
 

Definition at line 57 of file LayeredBox.h.


The documentation for this class was generated from the following files:
Generated at Mon Nov 26 18:18:39 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000