Import Geant4 8.1.0 source tree
This commit is contained in:
@@ -1,38 +1,43 @@
|
||||
//
|
||||
// ********************************************************************
|
||||
// * DISCLAIMER *
|
||||
// * License and 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 *
|
||||
// * The Geant4 software is copyright of the Copyright Holders of *
|
||||
// * the Geant4 Collaboration. It is provided under the terms and *
|
||||
// * conditions of the Geant4 Software License, included in the file *
|
||||
// * LICENSE and available at http://cern.ch/geant4/license . These *
|
||||
// * include a list of copyright holders. *
|
||||
// * *
|
||||
// * 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. *
|
||||
// * use. Please see the license in the file LICENSE and URL above *
|
||||
// * for the full disclaimer and the limitation of liability. *
|
||||
// * *
|
||||
// * 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. *
|
||||
// * This code implementation is the result of the scientific and *
|
||||
// * technical work of the GEANT4 collaboration. *
|
||||
// * By using, copying, modifying or distributing the software (or *
|
||||
// * any work based on the software) you agree to acknowledge its *
|
||||
// * use in resulting scientific publications, and indicate your *
|
||||
// * acceptance of all terms of the Geant4 Software license. *
|
||||
// ********************************************************************
|
||||
//
|
||||
// $Id: G4TrajectoryDrawByCharge.hh,v 1.3 2005/11/23 05:19:23 tinslay Exp $
|
||||
// GEANT4 tag $Name: geant4-08-00 $
|
||||
// $Id: G4TrajectoryDrawByCharge.hh,v 1.7 2006/06/29 21:31:49 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-08-01 $
|
||||
//
|
||||
// Jane Tinslay, John Allison, Joseph Perl November 2005
|
||||
//
|
||||
// Class Description:
|
||||
// Trajectory model which colours a trajectory according to
|
||||
// charge. Guts taken from G4VTrajectory::DrawTrajectory method.
|
||||
// charge.
|
||||
// Class Description - End:
|
||||
|
||||
#ifndef G4TRAJECTORYDRAWBYCHARGE_HH
|
||||
#define G4TRAJECTORYDRAWBYCHARGE_HH
|
||||
|
||||
#include "G4Colour.hh"
|
||||
#include "G4ModelColourMap.hh"
|
||||
#include "G4VTrajectoryModel.hh"
|
||||
#include <map>
|
||||
|
||||
@@ -42,7 +47,7 @@ public: // With description
|
||||
|
||||
enum Charge {Negative=-1, Neutral=0, Positive=1};
|
||||
|
||||
G4TrajectoryDrawByCharge(const G4String& name = "Unspecified");
|
||||
G4TrajectoryDrawByCharge(const G4String& name = "Unspecified", G4VisTrajContext* context=0);
|
||||
|
||||
G4TrajectoryDrawByCharge(const G4String& name,
|
||||
const G4Colour& positive,
|
||||
@@ -51,20 +56,26 @@ public: // With description
|
||||
|
||||
virtual ~G4TrajectoryDrawByCharge();
|
||||
|
||||
virtual void Draw(const G4VTrajectory& trajectory, G4int i_mode = 0) const;
|
||||
// Draw the trajectory with optional i_mode parameter
|
||||
virtual void Draw(const G4VTrajectory& trajectory, const G4int& i_mode = 0,
|
||||
const G4bool& visible = true) const;
|
||||
|
||||
virtual void Print(std::ostream& ostr) const;
|
||||
// Print configuration
|
||||
virtual void Print(std::ostream& ostr) const;
|
||||
|
||||
void Set(Charge charge, const G4String& colour);
|
||||
void Set(Charge charge, const G4Colour& colour);
|
||||
void Set(const Charge& charge, const G4Colour& colour);
|
||||
void Set(const Charge& charge, const G4String& colour);
|
||||
|
||||
void Set(const G4String& charge, const G4Colour& colour);
|
||||
void Set(const G4String& charge, const G4String& colour);
|
||||
// Configuration functions
|
||||
|
||||
private:
|
||||
|
||||
G4bool ConvertToCharge(const G4String&, Charge&);
|
||||
|
||||
// Data member
|
||||
std::map<Charge, G4Colour> fMap;
|
||||
G4ModelColourMap<Charge> fMap;
|
||||
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user