Import Geant4 10.4.0.beta source tree
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4Colour.hh 78955 2014-02-05 09:45:46Z gcosmo $
|
||||
// $Id: G4Colour.hh 104093 2017-05-11 07:29:45Z gcosmo $
|
||||
//
|
||||
//
|
||||
// John Allison 20th October 1996
|
||||
@@ -98,12 +98,23 @@ public: // With description
|
||||
|
||||
G4bool operator != (const G4Colour& c) const;
|
||||
G4bool operator == (const G4Colour& c) const {return !(operator != (c));}
|
||||
G4Colour& operator += (const G4Colour&) {return *this;} // Dummy
|
||||
|
||||
G4Colour& operator += (const G4Colour& rhs) {*this = rhs; return *this;}
|
||||
// Note: This is required by RayTracer in its use of G4THitsMap.
|
||||
// Adding colours, without also taking brightness into account, does not make
|
||||
// sense, so let us make it synonymous with operator=, which is, I guess,
|
||||
// equivalent to covering the old colour with the new, like a coat of paint.
|
||||
|
||||
G4double GetRed () const;
|
||||
G4double GetGreen () const;
|
||||
G4double GetBlue () const;
|
||||
G4double GetAlpha () const; // alpha = opacity = 1. - transparency.
|
||||
|
||||
void SetRed (G4double);
|
||||
void SetGreen (G4double);
|
||||
void SetBlue (G4double);
|
||||
void SetAlpha (G4double); // alpha = opacity = 1. - transparency.
|
||||
|
||||
static G4Colour White();
|
||||
static G4Colour Gray();
|
||||
static G4Colour Grey();
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VGraphicsScene.hh 99153 2016-09-07 08:05:30Z gcosmo $
|
||||
// $Id: G4VGraphicsScene.hh 102801 2017-02-22 15:17:53Z gcosmo $
|
||||
// John Allison 19th July 1996
|
||||
//
|
||||
// Class Description:
|
||||
@@ -160,8 +160,7 @@ public: // With description
|
||||
virtual void AddPrimitive (const G4Polyhedron&) = 0;
|
||||
|
||||
virtual const G4VisExtent& GetExtent() const;
|
||||
// The concrete class should overload this or
|
||||
// G4VisExtent::NullExtent will be returned.
|
||||
// The concrete class should overload this or a null extent will be returned.
|
||||
// See G4VScenHandler for example.
|
||||
|
||||
};
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
// ********************************************************************
|
||||
//
|
||||
//
|
||||
// $Id: G4VisExtent.hh 78955 2014-02-05 09:45:46Z gcosmo $
|
||||
// $Id: G4VisExtent.hh 102801 2017-02-22 15:17:53Z gcosmo $
|
||||
//
|
||||
//
|
||||
// A.Walkden 28/11/95
|
||||
@@ -77,7 +77,6 @@ public: // With description
|
||||
void SetZmin (G4double zmin);
|
||||
void SetZmax (G4double zmax);
|
||||
friend std::ostream& operator << (std::ostream& os, const G4VisExtent& e);
|
||||
static const G4VisExtent NullExtent;
|
||||
|
||||
private:
|
||||
G4double fXmin, fXmax, fYmin, fYmax, fZmin, fZmax;
|
||||
|
||||
Reference in New Issue
Block a user