75 lines
2.8 KiB
C++
75 lines
2.8 KiB
C++
// ********************************************************************
|
|
// * 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: G4ModelCommandsDrawByCharge.hh,v 1.2 2005/11/23 05:19:23 tinslay Exp $
|
|
// GEANT4 tag $Name: geant4-08-00 $
|
|
//
|
|
// Jane Tinslay, John Allison, Joseph Perl November 2005
|
|
//
|
|
// Class Description
|
|
// Trajectory model commands.
|
|
// Class Description - End:
|
|
|
|
#ifndef G4MODELCOMMANDDRAWBYCHARGE_HH
|
|
#define G4MODELCOMMANDDRAWBYCHARGE_HH
|
|
|
|
#include "G4String.hh"
|
|
#include "G4VModelCommand.hh"
|
|
|
|
class G4TrajectoryDrawByCharge;
|
|
class G4UIcmdWithAString;
|
|
class G4UIcommand;
|
|
|
|
// Command to set positive/negative/neutral trajectory colouring through a string
|
|
class G4ModelCommandDrawByChargeSet : public G4VModelCommand<G4TrajectoryDrawByCharge> {
|
|
|
|
public: // With description
|
|
|
|
G4ModelCommandDrawByChargeSet(G4TrajectoryDrawByCharge* model, const G4String& placement);
|
|
|
|
virtual ~G4ModelCommandDrawByChargeSet();
|
|
|
|
void SetNewValue(G4UIcommand* command, G4String newValue);
|
|
|
|
private:
|
|
|
|
G4UIcmdWithAString* fpCommand;
|
|
|
|
};
|
|
|
|
// Command to set positive/negative/neutral trajectory colouring through G4Colour components
|
|
class G4ModelCommandDrawByChargeSetRGBA : public G4VModelCommand<G4TrajectoryDrawByCharge> {
|
|
|
|
public:
|
|
|
|
G4ModelCommandDrawByChargeSetRGBA(G4TrajectoryDrawByCharge* model, const G4String& placement) ;
|
|
virtual ~G4ModelCommandDrawByChargeSetRGBA();
|
|
|
|
void SetNewValue(G4UIcommand* command, G4String newValue);
|
|
|
|
private:
|
|
|
|
G4UIcmdWithAString* fpCommand;
|
|
|
|
};
|
|
|
|
#endif
|