Import Geant4 10.4.0.beta source tree
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4Colour.cc 78955 2014-02-05 09:45:46Z gcosmo $
|
||||
// $Id: G4Colour.cc 104093 2017-05-11 07:29:45Z gcosmo $
|
||||
//
|
||||
//
|
||||
// John Allison 20th October 1996
|
||||
@@ -48,6 +48,30 @@ red (v.x()), green (v.y()), blue (v.z()), alpha (1.)
|
||||
if( blue > 1.0 ){blue = 1.0;} if( blue < 0.0 ){blue = 0.0;}
|
||||
}
|
||||
|
||||
void G4Colour::SetRed (G4double r)
|
||||
{
|
||||
red = r;
|
||||
if( red > 1.0 ){red = 1.0;} if( red < 0.0 ){red = 0.0;}
|
||||
}
|
||||
|
||||
void G4Colour::SetGreen (G4double gr)
|
||||
{
|
||||
green = gr;
|
||||
if( green > 1.0 ){green = 1.0;} if( green < 0.0 ){green = 0.0;}
|
||||
}
|
||||
|
||||
void G4Colour::SetBlue (G4double b)
|
||||
{
|
||||
blue = b;
|
||||
if( blue > 1.0 ){blue = 1.0;} if( blue < 0.0 ){blue = 0.0;}
|
||||
}
|
||||
|
||||
void G4Colour::SetAlpha (G4double a)
|
||||
{
|
||||
alpha = a;
|
||||
if( alpha > 1.0 ){alpha = 1.0;} if( alpha < 0.0 ){alpha = 0.0;}
|
||||
}
|
||||
|
||||
G4Colour::operator G4ThreeVector() {
|
||||
return G4ThreeVector(red,green,blue);
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VGraphicsScene.cc 73125 2013-08-19 07:57:38Z gcosmo $
|
||||
// $Id: G4VGraphicsScene.cc 102801 2017-02-22 15:17:53Z gcosmo $
|
||||
// John Allison 19th July 1996
|
||||
|
||||
#include "G4VGraphicsScene.hh"
|
||||
@@ -37,5 +37,6 @@ G4VGraphicsScene::~G4VGraphicsScene() {}
|
||||
|
||||
const G4VisExtent& G4VGraphicsScene::GetExtent() const
|
||||
{
|
||||
return G4VisExtent::NullExtent;
|
||||
static const G4VisExtent defaultExtent = G4VisExtent();
|
||||
return defaultExtent;
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VisExtent.cc 78955 2014-02-05 09:45:46Z gcosmo $
|
||||
// $Id: G4VisExtent.cc 102801 2017-02-22 15:17:53Z gcosmo $
|
||||
//
|
||||
//
|
||||
// A.Walkden 28/11/95
|
||||
@@ -35,8 +35,6 @@
|
||||
|
||||
#include "G4ios.hh"
|
||||
|
||||
const G4VisExtent G4VisExtent::NullExtent; // Default extent is null.
|
||||
|
||||
G4VisExtent::G4VisExtent (G4double xmin, G4double xmax,
|
||||
G4double ymin, G4double ymax,
|
||||
G4double zmin, G4double zmax):
|
||||
|
||||
Reference in New Issue
Block a user