Import Geant4 1.0.0 source tree
This commit is contained in:
@@ -1,16 +1,22 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4Circle.hh,v 1.2 1999/06/05 15:13:10 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4Circle.hh,v 1.3.2.1 1999/12/07 20:48:48 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 17/11/96.
|
||||
|
||||
// Class Description:
|
||||
// G4Circle is a kind of 3D-position marker.
|
||||
// Its shape is 2-dimensional circle.
|
||||
// It inherits G4VMarker. See G4VMarker.hh for more details.
|
||||
// Class Description - End:
|
||||
|
||||
#ifndef G4CIRCLE_HH
|
||||
#define G4CIRCLE_HH
|
||||
|
||||
@@ -18,7 +24,7 @@
|
||||
|
||||
class G4Circle: public G4VMarker {
|
||||
|
||||
public:
|
||||
public: // With description
|
||||
|
||||
G4Circle ();
|
||||
G4Circle (const G4Point3D& pos);
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4Circle.icc,v 1.2 1999/06/05 15:13:11 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4Circle.icc,v 1.2.8.1 1999/12/07 20:48:48 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 17/11/96.
|
||||
|
||||
@@ -1,16 +1,21 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4Color.hh,v 1.1 1999/01/07 16:09:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4Color.hh,v 1.2.2.1 1999/12/07 20:48:48 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 20th October 1996
|
||||
|
||||
// Class Description:
|
||||
// typedef G4Colour G4Color;
|
||||
// Class Description - End:
|
||||
|
||||
|
||||
#ifndef G4COLOR_HH
|
||||
#define G4COLOR_HH
|
||||
|
||||
|
||||
@@ -1,16 +1,58 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4Colour.hh,v 1.2 1999/05/25 09:10:07 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4Colour.hh,v 1.3.2.1 1999/12/07 20:48:48 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 20th October 1996
|
||||
|
||||
// Class Description:
|
||||
// Class G4Colour has 4 fields, which represent the RGBA (red, green, blue,
|
||||
// and alpha) components of colour. Each component takes a value between
|
||||
// 0 and 1. If an irrelevant value, i.e., a value less than 0 or greater
|
||||
// than 1, is given as an argument of the constructor, such a value is
|
||||
// automatically clipped to 0 or 1. Alpha is opacity, which is not used
|
||||
// at present. You can use its default value 1, which means "opaque"
|
||||
// in instantiation of G4Colour.
|
||||
//
|
||||
// A G4Colour object is instantiated by giving red, green, and blue
|
||||
// components to its constructor, i.e.,
|
||||
//
|
||||
// G4Colour::G4Colour ( G4double r = 1.0,
|
||||
// G4double g = 1.0,
|
||||
// G4double b = 1.0,
|
||||
// G4double a = 1.0);
|
||||
// // 0<=red, green, blue <= 1.0
|
||||
//
|
||||
// The default value of each component is 1.0. That is to say, the default
|
||||
// colour is "white". For example, colours which are often used can be
|
||||
// instantiated as follows:
|
||||
//
|
||||
// G4Colour white () ; // white
|
||||
// G4Colour white (1.0, 1.0, 1.0) ; // white
|
||||
// G4Colour gray (0.5, 0.5, 0.5) ; // gray
|
||||
// G4Colour black (0.0, 0.0, 0.0) ; // black
|
||||
// G4Colour red (1.0, 0.0, 0.0) ; // red
|
||||
// G4Colour green (0.0, 1.0, 0.0) ; // green
|
||||
// G4Colour blue (0.0, 0.0, 1.0) ; // blue
|
||||
// G4Colour cyan (0.0, 1.0, 1.0) ; // cyan
|
||||
// G4Colour magenta (1.0, 0.0, 1.0) ; // magenta
|
||||
// G4Colour yellow (1.0, 1.0, 0.0) ; // yellow
|
||||
//
|
||||
// After instantiation of a G4Colour object, you can access to its components
|
||||
// with the following access functions:
|
||||
//
|
||||
// G4double G4Colour::GetRed () const ; // Get the red component.
|
||||
// G4double G4Colour::GetGreen () const ; // Get the green component.
|
||||
// G4double G4Colour::GetBlue () const ; // Get the blue component.
|
||||
//
|
||||
// Class Description - End:
|
||||
|
||||
#ifndef G4COLOUR_HH
|
||||
#define G4COLOUR_HH
|
||||
|
||||
@@ -19,7 +61,9 @@ class ostream;
|
||||
|
||||
class G4Colour {
|
||||
friend ostream& operator << (ostream& os, const G4Colour& c);
|
||||
public:
|
||||
|
||||
public: // With description
|
||||
|
||||
G4Colour (G4double r = 1., G4double g = 1., G4double b = 1.,
|
||||
G4double a = 1.);
|
||||
G4bool operator != (const G4Colour& c) const;
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4NURBS.hh,v 1.3 1999/05/19 08:33:37 stesting Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4NURBS.hh,v 1.4.2.1 1999/12/07 20:48:48 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
// Olivier Crumeyrolle 12 September 1996
|
||||
|
||||
@@ -14,6 +14,13 @@
|
||||
// prototype for class G4NURBS - see documentation in graphics_reps/doc.
|
||||
// OC 280896
|
||||
|
||||
// Class Description:
|
||||
// Base class for shapes with NURBS drawing style.
|
||||
// See documentation in graphics_reps/doc for details.
|
||||
// Class Description - End:
|
||||
|
||||
|
||||
|
||||
#ifndef __C_G4NURBS__
|
||||
#define __C_G4NURBS__ 1
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4NURBSbox.hh,v 1.3 1999/05/19 08:33:38 stesting Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4NURBSbox.hh,v 1.4.2.1 1999/12/07 20:48:48 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// Olivier Crumeyrolle 12 September 1996
|
||||
@@ -14,6 +14,11 @@
|
||||
// Box builder prototype
|
||||
// OC 060996
|
||||
|
||||
// Class Description:
|
||||
// Box builder prototype for NURBS.
|
||||
// See documentation in graphics_reps/doc for details.
|
||||
// Class Description - End:
|
||||
|
||||
#include "G4NURBS.hh"
|
||||
|
||||
#ifndef __C_G4NURBSbox__
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4NURBScylinder.hh,v 1.3 1999/05/19 08:33:39 stesting Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4NURBScylinder.hh,v 1.4.2.1 1999/12/07 20:48:48 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// Olivier Crumeyrolle 12 September 1996
|
||||
@@ -14,6 +14,12 @@
|
||||
// Cylinder builder prototype
|
||||
// OC 090796
|
||||
|
||||
// Class Description:
|
||||
// Cylinder builder prototype for NURBS.
|
||||
// See documentation in graphics_reps/doc for details.
|
||||
// Class Description - End:
|
||||
|
||||
|
||||
#include "G4NURBS.hh"
|
||||
|
||||
#ifndef __C_G4NURBScylinder__
|
||||
|
||||
@@ -1,16 +1,22 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4NURBShexahedron.hh,v 1.3 1999/05/19 08:33:39 stesting Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4NURBShexahedron.hh,v 1.4.2.1 1999/12/07 20:48:49 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
// Hexa hedron builder prototype
|
||||
// OC 17 9 96
|
||||
|
||||
// Class Description:
|
||||
// Hexa hedron builder prototype for NURBS.
|
||||
// See documentation in graphics_reps/doc for details.
|
||||
// Class Description - End:
|
||||
|
||||
|
||||
#include "G4NURBS.hh"
|
||||
|
||||
#include "G4ThreeVector.hh"
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4NURBStube.hh,v 1.3 1999/05/19 08:33:40 stesting Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4NURBStube.hh,v 1.4.2.1 1999/12/07 20:48:49 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// Olivier Crumeyrolle 12 September 1996
|
||||
@@ -14,6 +14,11 @@
|
||||
// Tube builder prototype
|
||||
// OC 090796
|
||||
|
||||
// Class Description:
|
||||
// Tube builder prototype for NURBS.
|
||||
// See documentation in graphics_reps/doc for details.
|
||||
// Class Description - End:
|
||||
|
||||
#include "G4NURBS.hh"
|
||||
|
||||
#ifndef __C_G4NURBStube__
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4NURBStubesector.hh,v 1.2 1999/05/19 08:33:40 stesting Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4NURBStubesector.hh,v 1.3.2.1 1999/12/07 20:48:49 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// Olivier Crumeyrolle 12 September 1996
|
||||
@@ -14,6 +14,13 @@
|
||||
// Tubesector builder prototype
|
||||
// OC 290896
|
||||
|
||||
// Class Description:
|
||||
// Tubesector builder prototype for NURBS.
|
||||
// See documentation in graphics_reps/doc for details.
|
||||
// Class Description - End:
|
||||
|
||||
|
||||
|
||||
#include "G4NURBS.hh"
|
||||
|
||||
#ifndef __C_G4NURBStubesector__
|
||||
|
||||
@@ -0,0 +1,57 @@
|
||||
// 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: G4PlacedPolyhedron.hh,v 1.6.2.1 1999/12/07 20:48:49 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
|
||||
|
||||
// Class Description:
|
||||
// G4Polyhedron placed in the real world.
|
||||
// It has information of its location and orientation.
|
||||
// Class Description - End:
|
||||
|
||||
|
||||
#ifndef G4PLACEDPOLYHEDRON_HH
|
||||
#define G4PLACEDPOLYHEDRON_HH
|
||||
|
||||
#include "G4Polyhedron.hh"
|
||||
#include "G4Transform3D.hh"
|
||||
#include "g4rw/tvordvec.h"
|
||||
|
||||
class G4PlacedPolyhedron {
|
||||
|
||||
public: // With description
|
||||
|
||||
G4PlacedPolyhedron ();
|
||||
G4PlacedPolyhedron (const G4Polyhedron&, const G4Transform3D&);
|
||||
|
||||
// Uses default copy constructor, destructor and assignment.
|
||||
|
||||
G4bool operator == (const G4PlacedPolyhedron& right) const {
|
||||
return this == &right;
|
||||
}
|
||||
|
||||
const G4Polyhedron& GetPolyhedron () const {return fPolyhedron;}
|
||||
const G4Transform3D& GetTransform () const {return fTransform;}
|
||||
|
||||
void SetPolyhedron (const G4Polyhedron& polyhedron) {
|
||||
fPolyhedron = polyhedron;
|
||||
}
|
||||
void SetTransform (const G4Transform3D& transform) {
|
||||
fTransform = transform;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
G4Polyhedron fPolyhedron;
|
||||
G4Transform3D fTransform;
|
||||
|
||||
};
|
||||
|
||||
typedef G4RWTValOrderedVector<G4PlacedPolyhedron> G4PlacedPolyhedronList;
|
||||
|
||||
#endif /* G4PLACEDPOLYHEDRON_HH */
|
||||
@@ -1,25 +1,29 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4Point3DList.hh,v 1.2 1999/05/12 16:10:51 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4Point3DList.hh,v 1.4.2.1 1999/12/07 20:48:49 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison July 1995
|
||||
|
||||
// Class Description:
|
||||
// A set of 3D points.
|
||||
// Class Description - End:
|
||||
|
||||
#ifndef G4POINT3DLIST_HH
|
||||
#define G4POINT3DLIST_HH
|
||||
|
||||
#include <rw/tvordvec.h>
|
||||
#include "g4rw/tvordvec.h"
|
||||
#include "G4Point3D.hh"
|
||||
|
||||
class ostream;
|
||||
|
||||
class G4Point3DList: public RWTValOrderedVector<G4Point3D> {
|
||||
class G4Point3DList: public G4RWTValOrderedVector<G4Point3D> {
|
||||
|
||||
friend ostream& operator << (ostream& os, const G4Point3DList& points);
|
||||
|
||||
|
||||
@@ -1,15 +1,17 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4Polyhedron.hh,v 1.2 1999/05/19 08:33:41 stesting Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4Polyhedron.hh,v 1.3.2.1 1999/12/07 20:48:49 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
//
|
||||
|
||||
// Class Description:
|
||||
// G4Polyhedron is an intermediate class between G4 and visualization
|
||||
// systems. It is intended to provide some service like:
|
||||
// - polygonization of the G4 shapes with triangulization
|
||||
@@ -67,6 +69,8 @@
|
||||
// GetNextEdge(p1, p2, edgeFlag) - get next edge;
|
||||
// returns false for the last edge;
|
||||
// SetNumberOfRotationSteps(G4int n) - Set number of steps for whole circle;
|
||||
// Class Description - End:
|
||||
|
||||
// History:
|
||||
// 20.06.96 Evgeni Chernyaev <Evgueni.Tcherniaev@cern.ch> - initial version
|
||||
//
|
||||
@@ -124,7 +128,8 @@ class G4Facet {
|
||||
struct G4Edge { G4int v,f; };
|
||||
G4Edge edge[4];
|
||||
|
||||
public:
|
||||
public: // With description
|
||||
|
||||
G4Facet(G4int v1=0, G4int f1=0, G4int v2=0, G4int f2=0,
|
||||
G4int v3=0, G4int f3=0, G4int v4=0, G4int f4=0)
|
||||
{ edge[0].v=v1; edge[0].f=f1; edge[1].v=v2; edge[1].f=f2;
|
||||
|
||||
@@ -1,16 +1,23 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4Polyline.hh,v 1.3 1999/05/25 09:10:09 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4Polyline.hh,v 1.4.2.1 1999/12/07 20:48:50 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison July 1995
|
||||
|
||||
// Class Description:
|
||||
// A set of line segments defined with a set of vertices.
|
||||
// G4Polyline is used for visualizing trajectories, steps, coordinate axes,
|
||||
// etc.
|
||||
// Class Description - End:
|
||||
|
||||
|
||||
#ifndef G4POLYLINE_HH
|
||||
#define G4POLYLINE_HH
|
||||
|
||||
@@ -19,7 +26,9 @@
|
||||
|
||||
class G4Polyline: public G4VVisPrim, public G4Point3DList {
|
||||
friend ostream& operator << (ostream& os, const G4Polyline& line);
|
||||
public:
|
||||
|
||||
public: // With description
|
||||
|
||||
G4Polyline ();
|
||||
G4Polyline (const G4VVisPrim& prim);
|
||||
virtual G4Visible& operator = (const G4Visible& right);
|
||||
|
||||
@@ -1,16 +1,21 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4Polymarker.hh,v 1.3 1999/05/25 09:10:10 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4Polymarker.hh,v 1.4.2.1 1999/12/07 20:48:50 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison November 1996
|
||||
|
||||
// Class Description:
|
||||
// A set of markers.
|
||||
// Class Description - End:
|
||||
|
||||
|
||||
#ifndef G4POLYMARKER_HH
|
||||
#define G4POLYMARKER_HH
|
||||
|
||||
@@ -18,7 +23,9 @@
|
||||
#include "G4Point3DList.hh"
|
||||
|
||||
class G4Polymarker: public G4VMarker, public G4Point3DList {
|
||||
public:
|
||||
|
||||
public: // With description
|
||||
|
||||
friend ostream& operator << (ostream& os, const G4Polymarker& marker);
|
||||
enum MarkerType {line, dots, circles, squares};
|
||||
G4Polymarker ();
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4Polymarker.icc,v 1.1 1999/01/07 16:09:12 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4Polymarker.icc,v 1.1.10.1 1999/12/07 20:48:50 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison November 1996
|
||||
|
||||
@@ -1,16 +1,22 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4Square.hh,v 1.2 1999/06/05 15:13:12 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4Square.hh,v 1.3.2.1 1999/12/07 20:48:50 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 17/11/96.
|
||||
|
||||
// Class Description:
|
||||
// G4Square is a kind of 3D-position marker.
|
||||
// Its shape is 2-dimensional right square.
|
||||
// It inherits G4VMarker. See G4VMarker.hh for more details.
|
||||
// Class Description - End:
|
||||
|
||||
#ifndef G4SQUARE_HH
|
||||
#define G4SQUARE_HH
|
||||
|
||||
@@ -18,7 +24,7 @@
|
||||
|
||||
class G4Square: public G4VMarker {
|
||||
|
||||
public:
|
||||
public: // With description
|
||||
|
||||
G4Square ();
|
||||
G4Square (const G4Point3D& pos);
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4Square.icc,v 1.1 1999/01/07 16:09:13 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4Square.icc,v 1.1.10.1 1999/12/07 20:48:50 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 17/11/96.
|
||||
|
||||
@@ -1,16 +1,51 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4Text.hh,v 1.3 1999/05/25 09:10:12 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4Text.hh,v 1.4.2.1 1999/12/07 20:48:50 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 17/11/96.
|
||||
|
||||
// Class Description:
|
||||
// Text, i.e., a character string, is used to visualize various kinds of
|
||||
// description, particle name, energy, coordinate names etc. Text is
|
||||
// described by the class G4Text. The following constructors are supported:
|
||||
//
|
||||
// //----- Constructors of G4Text
|
||||
// G4Text (const G4String& text);
|
||||
// G4Text (const G4String& text, const G4Point3D& pos);
|
||||
//
|
||||
// where the argument text is the text (string) to be visualized, and pos
|
||||
// is the 3D position at which the text is visualized. Note that class
|
||||
// G4Text inherits G4VMarker. Size of text is recognized as "font size",
|
||||
// i.e., height of the text. All the access functions defined for class
|
||||
// G4VMarker are available. In addition, the following access functions
|
||||
// are available, too:
|
||||
//
|
||||
// //----- Set functions of G4Text
|
||||
// void G4Text::SetText ( const G4String& text ) ;
|
||||
// void G4Text::SetOffset ( double dx, double dy ) ;
|
||||
//
|
||||
// //----- Get functions of G4Text
|
||||
// G4String G4Text::GetText () const;
|
||||
// G4double G4Text::GetXOffset () const;
|
||||
// G4double G4Text::GetYOffset () const;
|
||||
//
|
||||
// Method SetText() defines text to be visualized, and GetText() returns
|
||||
// the defined text. Method SetOffset() defines x (horizontal) and
|
||||
// y (vertical) offsets in the screen coordinates. By default, both offsets
|
||||
// are zero, and the text starts from the 3D position given to the
|
||||
// constructor or to the method G4VMarker:SetPosition(). Offsets should be
|
||||
// given with the same units as the one adopted for the size, i.e.,
|
||||
// world-size or screen-size units.
|
||||
// Class Description - End:
|
||||
|
||||
|
||||
#ifndef G4TEXT_HH
|
||||
#define G4TEXT_HH
|
||||
|
||||
@@ -18,7 +53,9 @@
|
||||
#include "globals.hh"
|
||||
|
||||
class G4Text: public G4VMarker {
|
||||
public:
|
||||
|
||||
public: // With description
|
||||
|
||||
enum Layout {left, centre, right};
|
||||
G4Text (const G4String& text);
|
||||
G4Text (const G4String& text, const G4Point3D& pos);
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4Text.icc,v 1.1 1999/01/07 16:09:13 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4Text.icc,v 1.1.10.1 1999/12/07 20:48:51 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 17/11/96.
|
||||
|
||||
@@ -1,17 +1,18 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4VMarker.hh,v 1.4 1999/05/25 09:10:13 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4VMarker.hh,v 1.5.2.1 1999/12/07 20:48:51 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// G4VMarker - base class for markers - circles, squares, etc.
|
||||
// John Allison 17/11/96.
|
||||
|
||||
// Class Description:
|
||||
// G4VMarkers are 2-dimensional G4VVisPrims with the special
|
||||
// properties (a) of always facing the camera and (b) of having the
|
||||
// possibility of a size defined in screen units. The convention is
|
||||
@@ -20,7 +21,7 @@
|
||||
// viewing transformation in effect.
|
||||
//
|
||||
// "Size" means "overall size", e.g., diameter of circle, side of
|
||||
// Square, height of text (but Diameter and Radius access functions
|
||||
// square, height of text (but diameter and radius access functions
|
||||
// are defined to avoid ambiguity).
|
||||
//
|
||||
// So the user who constructs the marker decides whether it should be
|
||||
@@ -38,7 +39,8 @@
|
||||
//
|
||||
// void G4XXXGraphicsSceneHandler::AddPrimitive (const G4Circle& circle) {
|
||||
// G4bool hidden = !(fpView -> GetViewParameters().IsMarkerNotHidden());
|
||||
// const G4Colour& colour = GetColour (circle); // Base class GetColour.
|
||||
// const G4Colour& colour = GetColour (circle);
|
||||
// // Base class GetColour.
|
||||
// G4VMarker::FillStyle style = circle.GetFillStyle();
|
||||
// const G4Point3D& centre = circle.GetPosition();
|
||||
// MarkerSizeType sizeType;
|
||||
@@ -55,6 +57,8 @@
|
||||
// break;
|
||||
// }
|
||||
// }
|
||||
// Class Description - End:
|
||||
|
||||
|
||||
#ifndef G4VMARKER_HH
|
||||
#define G4VMARKER_HH
|
||||
@@ -69,7 +73,7 @@ class G4VMarker: public G4VVisPrim {
|
||||
|
||||
friend ostream& operator << (ostream& os, const G4VMarker& marker);
|
||||
|
||||
public:
|
||||
public: // With description
|
||||
|
||||
enum FillStyle {noFill, hashed, filled};
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4VMarker.icc,v 1.2 1999/05/12 16:10:55 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4VMarker.icc,v 1.2.8.1 1999/12/07 20:48:51 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
|
||||
|
||||
@@ -1,17 +1,20 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4VVisPrim.hh,v 1.3 1999/05/19 08:33:44 stesting Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4VVisPrim.hh,v 1.4.2.1 1999/12/07 20:48:51 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison August 1995
|
||||
|
||||
// Class Description:
|
||||
// Virtual base class for Visualization Primitives
|
||||
// (or Visualization Representations, as they are sometimes called).
|
||||
// Class Description - End:
|
||||
|
||||
#ifndef G4VVISPRIM_HH
|
||||
#define G4VVISPRIM_HH
|
||||
@@ -25,7 +28,7 @@ class G4VVisPrim: public G4Visible {
|
||||
|
||||
friend ostream& operator << (ostream& os, const G4VVisPrim& prim);
|
||||
|
||||
public:
|
||||
public: // With description
|
||||
|
||||
G4VVisPrim ();
|
||||
G4VVisPrim (const G4VVisPrim& prim);
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4VVisPrim.icc,v 1.2 1999/05/12 16:10:57 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4VVisPrim.icc,v 1.2.8.1 1999/12/07 20:48:51 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison August 1995
|
||||
|
||||
@@ -1,16 +1,34 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4VisAttributes.hh,v 1.3 1999/05/25 09:10:14 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4VisAttributes.hh,v 1.4.2.1 1999/12/07 20:48:51 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 23rd October 1996
|
||||
|
||||
// Class Description:
|
||||
// Visualization attributes are a set of information associated with the
|
||||
// visualizable objects. This information is necessary only for
|
||||
// visualization, and is not included in geometrical information such
|
||||
// as shapes, position, and orientation.
|
||||
// A typical example of a visualization attribute is "colour".
|
||||
// For example, in visualizing a box, the Visualization Manager must know
|
||||
// its colour. If an object to be visualized has not been assigned a set of
|
||||
// visualization attributes, then a proper default set is used
|
||||
// automatically. A set of visualization attributes is held by an
|
||||
// instance of class G4VisAttributes defined in the graphics_reps
|
||||
// category. The followings are commonly-used attributes:
|
||||
// - visibility
|
||||
// - force wireframe style, force solid style
|
||||
// - colour
|
||||
// Class Description - End:
|
||||
|
||||
|
||||
#ifndef __G4VISATTRIBUTES_HH__
|
||||
#define __G4VISATTRIBUTES_HH__
|
||||
|
||||
@@ -23,7 +41,7 @@ class G4VisAttributes {
|
||||
|
||||
friend ostream& operator << (ostream& os, const G4VisAttributes& a);
|
||||
|
||||
public:
|
||||
public: // With description
|
||||
|
||||
// Constructors, etc. - begin snippet.
|
||||
enum LineStyle {unbroken, dashed, dotted};
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4VisAttributes.icc,v 1.2 1999/05/19 08:33:45 stesting Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4VisAttributes.icc,v 1.2.8.1 1999/12/07 20:48:51 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 18th November 1996
|
||||
|
||||
@@ -1,18 +1,21 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4VisExtent.hh,v 1.2 1999/05/25 09:10:15 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4VisExtent.hh,v 1.3.2.1 1999/12/07 20:48:51 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// A.Walkden 28/11/95
|
||||
// VisExtent.hh, header file to prototype Extent functions for use in
|
||||
|
||||
// Class Description:
|
||||
// G4VisExtent is a class to prototype extent functions for use in
|
||||
// instantiating Visualisation windows with an appropriate field of
|
||||
// view for the object(s) being drawn.
|
||||
// Class Description - End:
|
||||
|
||||
#ifndef G4VISEXTENT_HH
|
||||
#define G4VISEXTENT_HH
|
||||
@@ -22,7 +25,8 @@
|
||||
|
||||
class G4VisExtent
|
||||
{
|
||||
public:
|
||||
public: // With description
|
||||
|
||||
G4VisExtent (G4double xmin = 0., G4double xmax = 0.,
|
||||
G4double ymin = 0., G4double ymax = 0.,
|
||||
G4double zmin = 0., G4double zmax = 0.);
|
||||
|
||||
@@ -1,19 +1,23 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4Visible.hh,v 1.2 1999/05/12 16:10:58 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4Visible.hh,v 1.4.2.1 1999/12/07 20:48:51 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 30th October 1996
|
||||
// Base class for all things visible, i.e., which have Vis Attributes.
|
||||
|
||||
// Class Description:
|
||||
// Base class for all things visible, i.e., which have Vis Attributes.
|
||||
//
|
||||
// Note: a null pointer implies no attributes. Under those circumstances
|
||||
// the visualization system is free to choose some.
|
||||
// Class Description - End:
|
||||
|
||||
|
||||
#ifndef G4VISIBLE_HH
|
||||
#define G4VISIBLE_HH
|
||||
@@ -27,7 +31,7 @@ class G4Visible {
|
||||
|
||||
friend ostream& operator << (ostream& os, const G4Visible& v);
|
||||
|
||||
public:
|
||||
public: // With description
|
||||
|
||||
G4Visible ();
|
||||
G4Visible (const G4Visible& visible);
|
||||
@@ -42,6 +46,13 @@ public:
|
||||
|
||||
void SetVisAttributes (const G4VisAttributes* pVA);
|
||||
void SetVisAttributes (const G4VisAttributes& VA);
|
||||
// The G4VisAttributes object is not stored in a G4Visible; only a
|
||||
// reference, a const pointer, is kept. Therefore the
|
||||
// G4VisAttributes object to which it refers must have a life long
|
||||
// enough to satisfy all uses of the G4Visible object. E.g., if the
|
||||
// G4Visible object is created on the heap (using `new') then the
|
||||
// associated G4VisAttributes object would normally also be created
|
||||
// on the heap and managed in the same way.
|
||||
|
||||
protected:
|
||||
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
// This code implementation is the intellectual property of
|
||||
// the RD44 GEANT4 collaboration.
|
||||
// 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: G4Visible.icc,v 1.2 1999/05/12 16:11:00 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
// $Id: G4Visible.icc,v 1.2.8.1 1999/12/07 20:48:52 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
//
|
||||
//
|
||||
// John Allison 30th October 1996
|
||||
|
||||
Reference in New Issue
Block a user