Import Geant4 4.0.0 source tree
This commit is contained in:
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4AxesModel.hh,v 1.1.2.1 2001/06/28 19:16:18 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4AxesModel.hh,v 1.4 2001/08/24 20:34:14 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 3rd April 2001
|
||||
@@ -49,7 +49,7 @@ public: // With description
|
||||
virtual ~G4AxesModel ();
|
||||
|
||||
virtual void DescribeYourselfTo (G4VGraphicsScene&);
|
||||
// The main task of a model is to describe itself to the scene.
|
||||
// The main task of a model is to describe itself to the graphics scene.
|
||||
|
||||
virtual G4String GetCurrentDescription () const;
|
||||
// A description which depends on the current state of the model.
|
||||
@@ -57,12 +57,9 @@ public: // With description
|
||||
virtual G4String GetCurrentTag () const;
|
||||
// A tag which depends on the current state of the model.
|
||||
|
||||
virtual G4bool Validate ();
|
||||
// Validate, but allow internal changes (hence non-const function).
|
||||
|
||||
private:
|
||||
|
||||
// Private copy contructor and assignmen to forbid uset...
|
||||
// Private copy contructor and assignment to forbid use...
|
||||
G4AxesModel (const G4AxesModel&);
|
||||
G4AxesModel& operator = (const G4AxesModel&);
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4AxesModel.icc,v 1.1.2.1 2001/06/28 19:16:18 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4AxesModel.icc,v 1.3 2001/08/24 20:34:15 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
|
||||
inline G4String G4AxesModel::GetCurrentTag () const {
|
||||
return fGlobalTag;
|
||||
@@ -31,7 +31,3 @@ inline G4String G4AxesModel::GetCurrentTag () const {
|
||||
inline G4String G4AxesModel::GetCurrentDescription () const {
|
||||
return fGlobalDescription;
|
||||
}
|
||||
|
||||
inline G4bool G4AxesModel::Validate () {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4BoundingSphereScene.hh,v 1.8.2.1 2001/06/28 19:16:18 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4BoundingSphereScene.hh,v 1.11 2001/07/25 21:08:14 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 7th June 1997
|
||||
@@ -44,10 +44,12 @@
|
||||
#include "G4Polycone.hh"
|
||||
#include "G4Polyhedra.hh"
|
||||
|
||||
class G4VModel;
|
||||
|
||||
class G4BoundingSphereScene: public G4VGraphicsScene {
|
||||
|
||||
public:
|
||||
G4BoundingSphereScene ();
|
||||
G4BoundingSphereScene (G4VModel* pModel = 0);
|
||||
virtual ~G4BoundingSphereScene ();
|
||||
void AddThis (const G4Box& s) {Accrue (s);}
|
||||
void AddThis (const G4Cons& s) {Accrue (s);}
|
||||
@@ -80,6 +82,7 @@ public:
|
||||
virtual void BeginPrimitives (const G4Transform3D& objectTransformation) {}
|
||||
virtual void EndPrimitives () {}
|
||||
virtual void AddPrimitive (const G4Polyline&) {}
|
||||
virtual void AddPrimitive (const G4Scale&) {}
|
||||
virtual void AddPrimitive (const G4Text&) {}
|
||||
virtual void AddPrimitive (const G4Circle&) {}
|
||||
virtual void AddPrimitive (const G4Square&) {}
|
||||
@@ -89,6 +92,7 @@ public:
|
||||
|
||||
private:
|
||||
void Accrue (const G4VSolid& solid);
|
||||
G4VModel* fpModel; // Instantiating code may optionally set this.
|
||||
G4Point3D fCentre;
|
||||
G4double fRadius;
|
||||
const G4Transform3D* fpObjectTransformation;
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4FlavoredParallelWorldModel.hh,v 1.5.4.1 2001/06/28 19:16:18 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4FlavoredParallelWorldModel.hh,v 1.6 2001/07/11 10:09:20 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
// P. Mora de Freitas et M.Verderi - 19 June 1998.
|
||||
//
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4HitsModel.hh,v 1.4.4.1 2001/06/28 19:16:18 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4HitsModel.hh,v 1.7 2001/08/24 20:36:13 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 26th August 1998.
|
||||
@@ -49,7 +49,7 @@ public: // With description
|
||||
virtual ~G4HitsModel ();
|
||||
|
||||
virtual void DescribeYourselfTo (G4VGraphicsScene&);
|
||||
// The main task of a model is to describe itself to the scene.
|
||||
// The main task of a model is to describe itself to the graphics scene.
|
||||
|
||||
virtual G4String GetCurrentDescription () const;
|
||||
// A description which depends on the current state of the model.
|
||||
@@ -57,9 +57,6 @@ public: // With description
|
||||
virtual G4String GetCurrentTag () const;
|
||||
// A tag which depends on the current state of the model.
|
||||
|
||||
virtual G4bool Validate ();
|
||||
// Validate, but allow internal changes (hence non-const function).
|
||||
|
||||
};
|
||||
|
||||
#include "G4HitsModel.icc"
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4HitsModel.icc,v 1.4.4.1 2001/06/28 19:16:18 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4HitsModel.icc,v 1.6 2001/08/24 20:36:14 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
|
||||
inline G4String G4HitsModel::GetCurrentTag () const {
|
||||
return fGlobalTag;
|
||||
@@ -31,7 +31,3 @@ inline G4String G4HitsModel::GetCurrentTag () const {
|
||||
inline G4String G4HitsModel::GetCurrentDescription () const {
|
||||
return fGlobalDescription;
|
||||
}
|
||||
|
||||
inline G4bool G4HitsModel::Validate () {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4LogicalVolumeModel.hh,v 1.4.4.1 2001/06/28 19:16:18 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4LogicalVolumeModel.hh,v 1.5 2001/07/11 10:09:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 26th July 1999.
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ModelingParameters.hh,v 1.5.4.1 2001/06/28 19:16:18 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4ModelingParameters.hh,v 1.7 2001/08/09 20:06:20 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 31st December 1997.
|
||||
@@ -50,8 +50,7 @@ public: // With description
|
||||
enum RepStyle {
|
||||
wireframe, // Use G4Wireframe.
|
||||
polyhedron, // Use G4Polyhedron.
|
||||
nurbs, // Use G4NURBS.
|
||||
hierarchy // Draw as geometry hierarchy (DTREE in GEANT3 language!).
|
||||
nurbs // Use G4NURBS.
|
||||
};
|
||||
// RepStyle is used to determine which graphics_reps classes to use,
|
||||
// if required.
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ModelingParameters.icc,v 1.3.4.1 2001/06/28 19:16:18 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4ModelingParameters.icc,v 1.4 2001/07/11 10:09:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 31st December 1997.
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4NullModel.hh,v 1.4.4.1 2001/06/28 19:16:19 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4NullModel.hh,v 1.6 2001/08/24 20:36:15 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 4th April 1998.
|
||||
@@ -45,9 +45,6 @@ public:
|
||||
void DescribeYourselfTo (G4VGraphicsScene&);
|
||||
// An exception is thrown if this is called!!!!!!!!!!!!!!!!!!!!
|
||||
|
||||
G4bool Validate ();
|
||||
// Validate, but allow internal changes (hence non-const function).
|
||||
|
||||
/////////////////////////////////////////////////
|
||||
// Access to other information: use GetModelingParameters()
|
||||
// (inherited from G4VModel) and the access functions of
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4PhysicalVolumeModel.hh,v 1.12.2.1 2001/06/28 19:16:19 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4PhysicalVolumeModel.hh,v 1.16 2001/08/24 20:36:17 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 31st December 1997.
|
||||
@@ -66,7 +66,7 @@ public: // With description
|
||||
virtual ~G4PhysicalVolumeModel ();
|
||||
|
||||
void DescribeYourselfTo (G4VGraphicsScene&);
|
||||
// The main task of a model is to describe itself to the scene
|
||||
// The main task of a model is to describe itself to the graphics scene
|
||||
// handler (a object which inherits G4VSceneHandler, which inherits
|
||||
// G4VGraphicsScene). It can also provide special information
|
||||
// through pointers to working space in the scene handler. These
|
||||
@@ -85,7 +85,14 @@ public: // With description
|
||||
G4String GetCurrentTag () const;
|
||||
// A tag which depends on the current state of the model.
|
||||
|
||||
G4bool Validate ();
|
||||
const G4PhysicalVolumeModel* GetG4PhysicalVolumeModel () const {
|
||||
return this;
|
||||
}
|
||||
G4PhysicalVolumeModel* GetG4PhysicalVolumeModel () {
|
||||
return this;
|
||||
}
|
||||
|
||||
G4bool Validate (G4bool warn);
|
||||
// Validate, but allow internal changes (hence non-const function).
|
||||
|
||||
void DefinePointersToWorkingSpace (G4int* pCurrentDepth,
|
||||
@@ -121,6 +128,8 @@ protected:
|
||||
|
||||
G4bool IsDaughterCulled (const G4LogicalVolume* pMotherLV);
|
||||
|
||||
void CalculateExtent ();
|
||||
|
||||
/////////////////////////////////////////////////////////
|
||||
// Data members...
|
||||
|
||||
@@ -129,6 +138,7 @@ protected:
|
||||
G4int fTopPVCopyNo; // ...of the physical volume.
|
||||
G4int fRequestedDepth;
|
||||
// Requested depth of geom. hierarchy search.
|
||||
G4bool fUseFullExtent; // ...if requested.
|
||||
G4int fCurrentDepth; // Current depth of geom. hierarchy.
|
||||
G4VPhysicalVolume* fpCurrentPV; // Current physical volume.
|
||||
G4LogicalVolume* fpCurrentLV; // Current logical volume.
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4PhysicalVolumeSearchScene.hh,v 1.7.4.1 2001/06/28 19:16:19 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4PhysicalVolumeSearchScene.hh,v 1.9 2001/07/22 01:00:24 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 10th August 1998.
|
||||
@@ -77,6 +77,7 @@ public:
|
||||
virtual void BeginPrimitives (const G4Transform3D& objectTransformation) {}
|
||||
virtual void EndPrimitives () {}
|
||||
virtual void AddPrimitive (const G4Polyline&) {}
|
||||
virtual void AddPrimitive (const G4Scale&) {}
|
||||
virtual void AddPrimitive (const G4Text&) {}
|
||||
virtual void AddPrimitive (const G4Circle&) {}
|
||||
virtual void AddPrimitive (const G4Square&) {}
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4PhysicalVolumeSearchScene.icc,v 1.3.4.1 2001/06/28 19:16:19 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4PhysicalVolumeSearchScene.icc,v 1.4 2001/07/11 10:09:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 10th August 1998.
|
||||
|
||||
@@ -0,0 +1,72 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ScaleModel.hh,v 1.2 2001/08/24 20:36:18 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 21st July 2001.
|
||||
//
|
||||
// Class Description:
|
||||
//
|
||||
// Model which knows how to draw a scale.
|
||||
//
|
||||
// For access to base class information, e.g., modeling parameters,
|
||||
// use GetModelingParameters() inherited from G4VModel. See Class
|
||||
// Description of the base class G4VModel.
|
||||
|
||||
#ifndef G4SCALEMODEL_HH
|
||||
#define G4SCALEMODEL_HH
|
||||
|
||||
#include "G4VModel.hh"
|
||||
#include "G4Scale.hh"
|
||||
|
||||
class G4ScaleModel: public G4VModel {
|
||||
|
||||
public: // With description
|
||||
|
||||
G4ScaleModel (const G4Scale&);
|
||||
|
||||
virtual ~G4ScaleModel ();
|
||||
|
||||
virtual void DescribeYourselfTo (G4VGraphicsScene&);
|
||||
// The main task of a model is to describe itself to the graphics scene.
|
||||
|
||||
virtual G4String GetCurrentDescription () const;
|
||||
// A description which depends on the current state of the model.
|
||||
|
||||
virtual G4String GetCurrentTag () const;
|
||||
// A tag which depends on the current state of the model.
|
||||
|
||||
private:
|
||||
|
||||
// Private copy contructor and assignment to forbid use...
|
||||
G4ScaleModel (const G4ScaleModel&);
|
||||
G4ScaleModel& operator = (const G4ScaleModel&);
|
||||
|
||||
G4Scale fScale;
|
||||
};
|
||||
|
||||
#include "G4ScaleModel.icc"
|
||||
|
||||
#endif
|
||||
@@ -0,0 +1,33 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * *
|
||||
// * The following disclaimer summarizes all the specific disclaimers *
|
||||
// * of contributors to this software. The specific disclaimers,which *
|
||||
// * govern, are listed with their locations in: *
|
||||
// * http://cern.ch/geant4/license *
|
||||
// * *
|
||||
// * Neither the authors of this software system, nor their employing *
|
||||
// * institutes,nor the agencies providing financial support for this *
|
||||
// * work make any representation or warranty, express or implied, *
|
||||
// * regarding this software system or assume any liability for its *
|
||||
// * use. *
|
||||
// * *
|
||||
// * This code implementation is the intellectual property of the *
|
||||
// * GEANT4 collaboration. *
|
||||
// * By copying, distributing or modifying the Program (or any work *
|
||||
// * based on the Program) you indicate your acceptance of this *
|
||||
// * statement, and all its terms. *
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4ScaleModel.icc,v 1.2 2001/08/24 20:36:19 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
|
||||
inline G4String G4ScaleModel::GetCurrentTag () const {
|
||||
return fGlobalTag;
|
||||
}
|
||||
|
||||
inline G4String G4ScaleModel::GetCurrentDescription () const {
|
||||
return fGlobalDescription;
|
||||
}
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4TextModel.hh,v 1.1.2.1 2001/06/28 19:16:19 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4TextModel.hh,v 1.4 2001/08/24 20:36:21 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 3rd April 2001
|
||||
@@ -50,7 +50,7 @@ public: // With description
|
||||
virtual ~G4TextModel ();
|
||||
|
||||
virtual void DescribeYourselfTo (G4VGraphicsScene&);
|
||||
// The main task of a model is to describe itself to the scene.
|
||||
// The main task of a model is to describe itself to the graphics scene.
|
||||
|
||||
virtual G4String GetCurrentDescription () const;
|
||||
// A description which depends on the current state of the model.
|
||||
@@ -58,12 +58,9 @@ public: // With description
|
||||
virtual G4String GetCurrentTag () const;
|
||||
// A tag which depends on the current state of the model.
|
||||
|
||||
virtual G4bool Validate ();
|
||||
// Validate, but allow internal changes (hence non-const function).
|
||||
|
||||
private:
|
||||
|
||||
// Private copy contructor and assignmen to forbid uset...
|
||||
// Private copy contructor and assignment to forbid use...
|
||||
G4TextModel (const G4TextModel&);
|
||||
G4TextModel& operator = (const G4TextModel&);
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4TextModel.icc,v 1.1.2.1 2001/06/28 19:16:19 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4TextModel.icc,v 1.3 2001/08/24 20:36:22 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
|
||||
inline G4String G4TextModel::GetCurrentTag () const {
|
||||
return fGlobalTag;
|
||||
@@ -31,7 +31,3 @@ inline G4String G4TextModel::GetCurrentTag () const {
|
||||
inline G4String G4TextModel::GetCurrentDescription () const {
|
||||
return fGlobalDescription;
|
||||
}
|
||||
|
||||
inline G4bool G4TextModel::Validate () {
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4TrajectoriesModel.hh,v 1.4.4.1 2001/06/28 19:16:19 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4TrajectoriesModel.hh,v 1.7 2001/08/24 20:36:23 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 26th August 1998.
|
||||
@@ -49,7 +49,7 @@ public: // With description
|
||||
virtual ~G4TrajectoriesModel ();
|
||||
|
||||
virtual void DescribeYourselfTo (G4VGraphicsScene&);
|
||||
// The main task of a model is to describe itself to the scene.
|
||||
// The main task of a model is to describe itself to the graphics scene.
|
||||
|
||||
virtual G4String GetCurrentDescription () const;
|
||||
// A description which depends on the current state of the model.
|
||||
@@ -57,9 +57,6 @@ public: // With description
|
||||
virtual G4String GetCurrentTag () const;
|
||||
// A tag which depends on the current state of the model.
|
||||
|
||||
virtual G4bool Validate ();
|
||||
// Validate, but allow internal changes (hence non-const function).
|
||||
|
||||
};
|
||||
|
||||
#include "G4TrajectoriesModel.icc"
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4TrajectoriesModel.icc,v 1.4.4.1 2001/06/28 19:16:19 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4TrajectoriesModel.icc,v 1.6 2001/08/24 20:36:24 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
|
||||
inline G4String G4TrajectoriesModel::GetCurrentTag () const {
|
||||
return fGlobalTag;
|
||||
@@ -31,8 +31,3 @@ inline G4String G4TrajectoriesModel::GetCurrentTag () const {
|
||||
inline G4String G4TrajectoriesModel::GetCurrentDescription () const {
|
||||
return fGlobalDescription;
|
||||
}
|
||||
|
||||
inline G4bool G4TrajectoriesModel::Validate () {
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VModel.hh,v 1.8.2.1 2001/06/28 19:16:19 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4VModel.hh,v 1.13 2001/08/24 20:36:26 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 31st December 1997.
|
||||
@@ -33,6 +33,8 @@
|
||||
// graphics-system-indepedent description of a Geant4 component.
|
||||
// The key fuctionality of a model is to know how to describe itself
|
||||
// to a scene handler. A scene is a collection of models.
|
||||
// A special case is made for G4PhysicalVolumeModel - a non-null pointer
|
||||
// is to be returned by G4PhysicalVolumeModel::GetG4PhysicalVolumeModel().
|
||||
|
||||
#ifndef G4VMODEL_HH
|
||||
#define G4VMODEL_HH
|
||||
@@ -44,6 +46,8 @@
|
||||
class G4VGraphicsScene;
|
||||
class G4ModelingParameters;
|
||||
|
||||
class G4PhysicalVolumeModel; // Special case - see above.
|
||||
|
||||
class G4VModel {
|
||||
|
||||
public: // With description
|
||||
@@ -57,7 +61,7 @@ public: // With description
|
||||
virtual ~G4VModel ();
|
||||
|
||||
virtual void DescribeYourselfTo (G4VGraphicsScene&) = 0;
|
||||
// The main task of a model is to describe itself to the scene.
|
||||
// The main task of a model is to describe itself to the graphics scene.
|
||||
|
||||
const G4ModelingParameters* GetModelingParameters () const;
|
||||
|
||||
@@ -82,9 +86,15 @@ public: // With description
|
||||
const G4Transform3D& GetTransformation () const;
|
||||
// Model transformation, i.e., position and orientation of model in world.
|
||||
|
||||
virtual const G4PhysicalVolumeModel* GetG4PhysicalVolumeModel () const;
|
||||
virtual G4PhysicalVolumeModel* GetG4PhysicalVolumeModel ();
|
||||
// Returns 0 unless implemented by derived class.
|
||||
|
||||
void SetModelingParameters (const G4ModelingParameters*);
|
||||
|
||||
virtual G4bool Validate ();
|
||||
void SetExtent (const G4VisExtent&);
|
||||
|
||||
virtual G4bool Validate (G4bool warn = true);
|
||||
// Validate, but allow internal changes (hence non-const function).
|
||||
|
||||
protected:
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VModel.icc,v 1.6.2.1 2001/06/28 19:16:19 gunter Exp $
|
||||
// GEANT4 tag $Name: $
|
||||
// $Id: G4VModel.icc,v 1.9 2001/07/25 21:12:20 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-04-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 31st December 1997.
|
||||
@@ -48,6 +48,19 @@ inline const G4Transform3D& G4VModel::GetTransformation () const {
|
||||
return fTransform;
|
||||
}
|
||||
|
||||
inline const G4PhysicalVolumeModel*
|
||||
G4VModel::GetG4PhysicalVolumeModel () const {
|
||||
return 0;
|
||||
}
|
||||
|
||||
inline G4PhysicalVolumeModel* G4VModel::GetG4PhysicalVolumeModel () {
|
||||
return 0;
|
||||
}
|
||||
|
||||
inline void G4VModel::SetModelingParameters (const G4ModelingParameters* pMP) {
|
||||
fpMP = pMP;
|
||||
}
|
||||
|
||||
inline void G4VModel::SetExtent (const G4VisExtent& extent) {
|
||||
fExtent = extent;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user