Import Geant4 9.4.0 source tree
This commit is contained in:
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LogicalSurface.hh,v 1.11 2009/04/21 15:18:15 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
// $Id: G4LogicalSurface.hh,v 1.12 2010/07/05 09:22:58 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// Class G4LogicalSurface
|
||||
@@ -52,7 +52,7 @@
|
||||
//
|
||||
// Data members:
|
||||
// G4String theName
|
||||
// G4SurfaceProperty* theSurfaceProperty
|
||||
// G4SurfaceProperty* theSurfaceProperty
|
||||
// G4TransitionRadiationSurface* theTransRadSurface
|
||||
|
||||
// Created: 1997, June, 4th to 17th
|
||||
@@ -82,33 +82,33 @@ class G4LogicalSurface
|
||||
|
||||
public: // with description
|
||||
|
||||
G4SurfaceProperty* GetSurfaceProperty() const;
|
||||
void SetSurfaceProperty(G4SurfaceProperty* ptrSurfaceProperty);
|
||||
inline G4SurfaceProperty* GetSurfaceProperty() const;
|
||||
inline void SetSurfaceProperty(G4SurfaceProperty* ptrSurfaceProperty);
|
||||
|
||||
const G4String& GetName() const;
|
||||
void SetName(const G4String& name);
|
||||
inline const G4String& GetName() const;
|
||||
inline void SetName(const G4String& name);
|
||||
|
||||
G4TransitionRadiationSurface* GetTransitionRadiationSurface() const;
|
||||
void SetTransitionRadiationSurface(G4TransitionRadiationSurface* tRadSurf);
|
||||
inline G4TransitionRadiationSurface* GetTransitionRadiationSurface() const;
|
||||
inline void SetTransitionRadiationSurface(G4TransitionRadiationSurface* tRadSurf);
|
||||
|
||||
public: // without description
|
||||
|
||||
virtual ~G4LogicalSurface();
|
||||
|
||||
G4int operator==(const G4LogicalSurface &right) const;
|
||||
G4int operator!=(const G4LogicalSurface &right) const;
|
||||
inline G4int operator==(const G4LogicalSurface &right) const;
|
||||
inline G4int operator!=(const G4LogicalSurface &right) const;
|
||||
|
||||
protected:
|
||||
|
||||
// There should be no instances of this class
|
||||
|
||||
G4LogicalSurface(const G4String& name, G4SurfaceProperty* surfaceProperty);
|
||||
G4LogicalSurface(const G4String& name, G4SurfaceProperty* prop);
|
||||
// Is the name more meaningful for the properties or the logical surface ?
|
||||
|
||||
private:
|
||||
private: // Copying restricted
|
||||
|
||||
G4LogicalSurface(const G4LogicalSurface &right); // Copying restricted
|
||||
const G4LogicalSurface& operator=(const G4LogicalSurface& right);
|
||||
G4LogicalSurface(const G4LogicalSurface &right);
|
||||
inline const G4LogicalSurface& operator=(const G4LogicalSurface& right);
|
||||
|
||||
private:
|
||||
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LogicalSurface.icc,v 1.10 2009/04/21 15:18:15 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-09-03 $
|
||||
// $Id: G4LogicalSurface.icc,v 1.11 2010/07/05 09:22:58 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
//
|
||||
////////////////////////////////////////////////////////////////////////
|
||||
// Surface Class Inline Methods
|
||||
@@ -41,41 +41,40 @@
|
||||
inline G4SurfaceProperty*
|
||||
G4LogicalSurface::GetSurfaceProperty() const
|
||||
{
|
||||
return theSurfaceProperty;
|
||||
return theSurfaceProperty;
|
||||
}
|
||||
|
||||
inline void
|
||||
G4LogicalSurface::SetSurfaceProperty(G4SurfaceProperty* ptrSurfaceProperty)
|
||||
{
|
||||
theSurfaceProperty = ptrSurfaceProperty;
|
||||
theSurfaceProperty = ptrSurfaceProperty;
|
||||
}
|
||||
|
||||
inline const G4String&
|
||||
G4LogicalSurface::GetName() const
|
||||
{
|
||||
return theName;
|
||||
return theName;
|
||||
}
|
||||
|
||||
inline void
|
||||
G4LogicalSurface::SetName(const G4String& name)
|
||||
{
|
||||
theName = name;
|
||||
theName = name;
|
||||
}
|
||||
|
||||
inline G4TransitionRadiationSurface*
|
||||
G4LogicalSurface::GetTransitionRadiationSurface() const
|
||||
{
|
||||
return theTransRadSurface;
|
||||
return theTransRadSurface;
|
||||
}
|
||||
|
||||
inline void
|
||||
G4LogicalSurface::SetTransitionRadiationSurface(G4TransitionRadiationSurface*
|
||||
transRadSurf )
|
||||
{
|
||||
theTransRadSurface= transRadSurf;
|
||||
theTransRadSurface= transRadSurf;
|
||||
}
|
||||
|
||||
|
||||
//////////////
|
||||
// Operators
|
||||
//////////////
|
||||
@@ -83,41 +82,22 @@ G4LogicalSurface::SetTransitionRadiationSurface(G4TransitionRadiationSurface*
|
||||
inline const G4LogicalSurface &
|
||||
G4LogicalSurface::operator=(const G4LogicalSurface &right)
|
||||
{
|
||||
if (&right == this) return *this;
|
||||
theName = right.theName;
|
||||
theSurfaceProperty = right.theSurfaceProperty;
|
||||
theTransRadSurface = right.theTransRadSurface;
|
||||
if (&right == this) { return *this; }
|
||||
theName = right.theName;
|
||||
theSurfaceProperty = right.theSurfaceProperty;
|
||||
theTransRadSurface = right.theTransRadSurface;
|
||||
|
||||
return *this;
|
||||
return *this;
|
||||
}
|
||||
|
||||
inline G4int
|
||||
G4LogicalSurface::operator==(const G4LogicalSurface &right) const
|
||||
{
|
||||
return (this == (G4LogicalSurface *) &right);
|
||||
return (this == (G4LogicalSurface *) &right);
|
||||
}
|
||||
|
||||
inline G4int
|
||||
G4LogicalSurface::operator!=(const G4LogicalSurface &right) const
|
||||
{
|
||||
return (this != (G4LogicalSurface *) &right);
|
||||
}
|
||||
|
||||
/////////////////
|
||||
// Constructors
|
||||
/////////////////
|
||||
|
||||
inline G4LogicalSurface::G4LogicalSurface(const G4String& name,
|
||||
G4SurfaceProperty* surfaceProperty)
|
||||
: theName(name), theSurfaceProperty(surfaceProperty)
|
||||
{
|
||||
}
|
||||
|
||||
inline G4LogicalSurface::G4LogicalSurface(const G4LogicalSurface &right)
|
||||
{
|
||||
*this = right;
|
||||
}
|
||||
|
||||
inline G4LogicalSurface::~G4LogicalSurface()
|
||||
{
|
||||
return (this != (G4LogicalSurface *) &right);
|
||||
}
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ReflectedSolid.hh,v 1.5 2006/06/29 18:31:03 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
// $Id: G4ReflectedSolid.hh,v 1.6 2010/10/19 15:20:18 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
//
|
||||
//
|
||||
// class G4ReflectedSolid
|
||||
@@ -93,6 +93,8 @@ class G4ReflectedSolid : public G4VSolid
|
||||
|
||||
G4ThreeVector GetPointOnSurface() const;
|
||||
|
||||
G4VSolid* Clone() const;
|
||||
|
||||
public: // with description
|
||||
|
||||
virtual G4GeometryType GetEntityType() const;
|
||||
@@ -114,6 +116,10 @@ class G4ReflectedSolid : public G4VSolid
|
||||
|
||||
public: // without description
|
||||
|
||||
G4ReflectedSolid(const G4ReflectedSolid& rhs);
|
||||
G4ReflectedSolid& operator=(const G4ReflectedSolid& rhs);
|
||||
// Copy constructor and assignment operator.
|
||||
|
||||
void DescribeYourselfTo ( G4VGraphicsScene& scene ) const ;
|
||||
G4Polyhedron* CreatePolyhedron () const ;
|
||||
G4NURBS* CreateNURBS () const ;
|
||||
@@ -148,11 +154,6 @@ class G4ReflectedSolid : public G4VSolid
|
||||
|
||||
mutable G4Polyhedron* fpPolyhedron; // Caches reflected G4Polyhedron.
|
||||
|
||||
private:
|
||||
|
||||
G4ReflectedSolid(const G4ReflectedSolid&);
|
||||
G4ReflectedSolid& operator=(const G4ReflectedSolid&);
|
||||
// Private copy constructor and assignment operator.
|
||||
} ;
|
||||
|
||||
#endif
|
||||
|
||||
@@ -24,8 +24,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VSolid.hh,v 1.29 2008/09/10 13:18:42 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-09-02 $
|
||||
// $Id: G4VSolid.hh,v 1.30 2010/10/19 15:19:37 gcosmo Exp $
|
||||
// GEANT4 tag $Name: geant4-09-04 $
|
||||
//
|
||||
//
|
||||
// class G4VSolid
|
||||
@@ -192,6 +192,11 @@ class G4VSolid
|
||||
virtual G4ThreeVector GetPointOnSurface() const;
|
||||
// Returns a random point located on the surface of the solid.
|
||||
|
||||
virtual G4VSolid* Clone() const;
|
||||
// Returns a pointer of a dynamically allocated copy of the solid.
|
||||
// Returns NULL pointer with warning in case the concrete solid does not
|
||||
// implement this method. The caller has responsibility for ownership.
|
||||
|
||||
virtual std::ostream& StreamInfo(std::ostream& os) const = 0;
|
||||
// Dumps contents of the solid to a stream.
|
||||
inline void DumpInfo() const;
|
||||
|
||||
Reference in New Issue
Block a user