Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 09:59:23

0001 //
0002 // ********************************************************************
0003 // * License and Disclaimer                                           *
0004 // *                                                                  *
0005 // * The  Geant4 software  is  copyright of the Copyright Holders  of *
0006 // * the Geant4 Collaboration.  It is provided  under  the terms  and *
0007 // * conditions of the Geant4 Software License,  included in the file *
0008 // * LICENSE and available at  http://cern.ch/geant4/license .  These *
0009 // * include a list of copyright holders.                             *
0010 // *                                                                  *
0011 // * Neither the authors of this software system, nor their employing *
0012 // * institutes,nor the agencies providing financial support for this *
0013 // * work  make  any representation or  warranty, express or implied, *
0014 // * regarding  this  software system or assume any liability for its *
0015 // * use.  Please see the license in the file  LICENSE  and URL above *
0016 // * for the full disclaimer and the limitation of liability.         *
0017 // *                                                                  *
0018 // * This  code  implementation is the result of  the  scientific and *
0019 // * technical work of the GEANT4 collaboration.                      *
0020 // * By using,  copying,  modifying or  distributing the software (or *
0021 // * any work based  on the software)  you  agree  to acknowledge its *
0022 // * use  in  resulting  scientific  publications,  and indicate your *
0023 // * acceptance of all terms of the Geant4 Software license.          *
0024 // ********************************************************************
0025 //
0026 //
0027 
0028 // /vis/set - John Allison  21st March 2012
0029 // Set quantities for use in appropriate future commands.
0030 
0031 #ifndef G4VISCOMMANDSSET_HH
0032 #define G4VISCOMMANDSSET_HH
0033 
0034 #include "G4VVisCommand.hh"
0035 
0036 class G4UIcommand;
0037 class G4UIcmdWithAnInteger;
0038 class G4UIcmdWithADouble;
0039 class G4UIcmdWithAString;
0040 
0041 class G4VisCommandSetArrow3DLineSegmentsPerCircle: public G4VVisCommand {
0042 public:
0043   G4VisCommandSetArrow3DLineSegmentsPerCircle ();
0044   virtual ~G4VisCommandSetArrow3DLineSegmentsPerCircle ();
0045   G4String GetCurrentValue (G4UIcommand* command);
0046   void SetNewValue (G4UIcommand* command, G4String newValue);
0047 private:
0048   G4VisCommandSetArrow3DLineSegmentsPerCircle (const G4VisCommandSetArrow3DLineSegmentsPerCircle&);
0049   G4VisCommandSetArrow3DLineSegmentsPerCircle& operator = (const G4VisCommandSetArrow3DLineSegmentsPerCircle&);
0050   G4UIcmdWithAnInteger* fpCommand;
0051 };
0052 
0053 class G4VisCommandSetColour: public G4VVisCommand {
0054 public:
0055   G4VisCommandSetColour ();
0056   virtual ~G4VisCommandSetColour ();
0057   G4String GetCurrentValue (G4UIcommand* command);
0058   void SetNewValue (G4UIcommand* command, G4String newValue);
0059 private:
0060   G4VisCommandSetColour (const G4VisCommandSetColour&);
0061   G4VisCommandSetColour& operator = (const G4VisCommandSetColour&);
0062   G4UIcommand* fpCommand;
0063 };
0064 
0065 class G4VisCommandSetExtentForField: public G4VVisCommand {
0066 public:
0067   G4VisCommandSetExtentForField ();
0068   virtual ~G4VisCommandSetExtentForField ();
0069   G4String GetCurrentValue (G4UIcommand* command);
0070   void SetNewValue (G4UIcommand* command, G4String newValue);
0071 private:
0072   G4VisCommandSetExtentForField (const G4VisCommandSetExtentForField&);
0073   G4VisCommandSetExtentForField& operator = (const G4VisCommandSetExtentForField&);
0074   G4UIcommand* fpCommand;
0075 };
0076 
0077 class G4VisCommandSetLineWidth: public G4VVisCommand {
0078 public:
0079   G4VisCommandSetLineWidth ();
0080   virtual ~G4VisCommandSetLineWidth ();
0081   G4String GetCurrentValue (G4UIcommand* command);
0082   void SetNewValue (G4UIcommand* command, G4String newValue);
0083 private:
0084   G4VisCommandSetLineWidth (const G4VisCommandSetLineWidth&);
0085   G4VisCommandSetLineWidth& operator = (const G4VisCommandSetLineWidth&);
0086   G4UIcmdWithADouble* fpCommand;
0087 };
0088 
0089 class G4VisCommandSetTextColour: public G4VVisCommand {
0090 public:
0091   G4VisCommandSetTextColour ();
0092   virtual ~G4VisCommandSetTextColour ();
0093   G4String GetCurrentValue (G4UIcommand* command);
0094   void SetNewValue (G4UIcommand* command, G4String newValue);
0095 private:
0096   G4VisCommandSetTextColour (const G4VisCommandSetTextColour&);
0097   G4VisCommandSetTextColour& operator = (const G4VisCommandSetTextColour&);
0098   G4UIcommand* fpCommand;
0099 };
0100 
0101 class G4VisCommandSetTextLayout: public G4VVisCommand {
0102 public:
0103   G4VisCommandSetTextLayout ();
0104   virtual ~G4VisCommandSetTextLayout ();
0105   G4String GetCurrentValue (G4UIcommand* command);
0106   void SetNewValue (G4UIcommand* command, G4String newValue);
0107 private:
0108   G4VisCommandSetTextLayout (const G4VisCommandSetTextLayout&);
0109   G4VisCommandSetTextLayout& operator = (const G4VisCommandSetTextLayout&);
0110   G4UIcmdWithAString* fpCommand;
0111 };
0112 
0113 class G4VisCommandSetTextSize: public G4VVisCommand {
0114 public:
0115   G4VisCommandSetTextSize ();
0116   virtual ~G4VisCommandSetTextSize ();
0117   G4String GetCurrentValue (G4UIcommand* command);
0118   void SetNewValue (G4UIcommand* command, G4String newValue);
0119 private:
0120   G4VisCommandSetTextSize (const G4VisCommandSetTextSize&);
0121   G4VisCommandSetTextSize& operator = (const G4VisCommandSetTextSize&);
0122   G4UIcmdWithADouble* fpCommand;
0123 };
0124 
0125 class G4VisCommandSetTouchable: public G4VVisCommand {
0126 public:
0127   G4VisCommandSetTouchable ();
0128   virtual ~G4VisCommandSetTouchable ();
0129   G4String GetCurrentValue (G4UIcommand* command);
0130   void SetNewValue (G4UIcommand* command, G4String newValue);
0131 private:
0132   G4VisCommandSetTouchable (const G4VisCommandSetTouchable&);
0133   G4VisCommandSetTouchable& operator = (const G4VisCommandSetTouchable&);
0134   G4UIcommand* fpCommand;
0135 };
0136 
0137 class G4VisCommandSetVolumeForField: public G4VVisCommand {
0138 public:
0139   G4VisCommandSetVolumeForField ();
0140   virtual ~G4VisCommandSetVolumeForField ();
0141   G4String GetCurrentValue (G4UIcommand* command);
0142   void SetNewValue (G4UIcommand* command, G4String newValue);
0143 private:
0144   G4VisCommandSetVolumeForField (const G4VisCommandSetVolumeForField&);
0145   G4VisCommandSetVolumeForField& operator = (const G4VisCommandSetVolumeForField&);
0146   G4UIcommand* fpCommand;
0147 };
0148 
0149 #endif