2// ********************************************************************
3// * License and Disclaimer *
5// * The Geant4 software is copyright of the Copyright Holders of *
6// * the Geant4 Collaboration. It is provided under the terms and *
7// * conditions of the Geant4 Software License, included in the file *
8// * LICENSE and available at http://cern.ch/geant4/license . These *
9// * include a list of copyright holders. *
11// * Neither the authors of this software system, nor their employing *
12// * institutes,nor the agencies providing financial support for this *
13// * work make any representation or warranty, express or implied, *
14// * regarding this software system or assume any liability for its *
15// * use. Please see the license in the file LICENSE and URL above *
16// * for the full disclaimer and the limitation of liability. *
18// * This code implementation is the result of the scientific and *
19// * technical work of the GEANT4 collaboration. *
20// * By using, copying, modifying or distributing the software (or *
21// * any work based on the software) you agree to acknowledge its *
22// * use in resulting scientific publications, and indicate your *
23// * acceptance of all terms of the Geant4 Software license. *
24// ********************************************************************
26// class G4PhantomParameterisation Inline implementation
28//--------------------------------------------------------------------
30void G4PhantomParameterisation::
31SetVoxelDimensions( G4double halfx, G4double halfy, G4double halfz )
39//--------------------------------------------------------------------
41void G4PhantomParameterisation::SetNoVoxels( size_t nx, size_t ny, size_t nz )
50//--------------------------------------------------------------------
52void G4PhantomParameterisation::SetMaterials( std::vector<G4Material*>& mates )
57//--------------------------------------------------------------------
59void G4PhantomParameterisation::SetMaterialIndices( size_t* matInd )
61 fMaterialIndices = matInd;
64//--------------------------------------------------------------------
66G4double G4PhantomParameterisation::GetVoxelHalfX() const
71//--------------------------------------------------------------------
73G4double G4PhantomParameterisation::GetVoxelHalfY() const
78//--------------------------------------------------------------------
80G4double G4PhantomParameterisation::GetVoxelHalfZ() const
85//--------------------------------------------------------------------
87size_t G4PhantomParameterisation::GetNoVoxelsX() const
92//--------------------------------------------------------------------
94size_t G4PhantomParameterisation::GetNoVoxelsY() const
99//--------------------------------------------------------------------
101size_t G4PhantomParameterisation::GetNoVoxelsZ() const
106//--------------------------------------------------------------------
108size_t G4PhantomParameterisation::GetNoVoxels() const
113//--------------------------------------------------------------------
115std::vector<G4Material*> G4PhantomParameterisation::GetMaterials() const
120//--------------------------------------------------------------------
122size_t* G4PhantomParameterisation::GetMaterialIndices() const
124 return fMaterialIndices;
127//--------------------------------------------------------------------
129G4VSolid* G4PhantomParameterisation::GetContainerSolid() const
131 return fContainerSolid;
134//--------------------------------------------------------------------
136G4bool G4PhantomParameterisation::SkipEqualMaterials() const
138 return bSkipEqualMaterials;
141//--------------------------------------------------------------------
143void G4PhantomParameterisation::SetSkipEqualMaterials( G4bool skip )
145 bSkipEqualMaterials = skip;