#include <G4UIcmdWith3VectorAndUnit.hh>
|
| G4UIcmdWith3VectorAndUnit (const char *theCommandPath, G4UImessenger *theMessenger) |
|
virtual G4int | DoIt (G4String parameterList) |
|
G4String | ConvertToStringWithBestUnit (G4ThreeVector vec) |
|
G4String | ConvertToStringWithDefaultUnit (G4ThreeVector vec) |
|
void | SetParameterName (const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false) |
|
void | SetDefaultValue (G4ThreeVector defVal) |
|
void | SetUnitCategory (const char *unitCategory) |
|
void | SetUnitCandidates (const char *candidateList) |
|
void | SetDefaultUnit (const char *defUnit) |
|
Public Member Functions inherited from G4UIcommand |
| G4UIcommand () |
|
| G4UIcommand (const char *theCommandPath, G4UImessenger *theMessenger, G4bool tBB=true) |
|
virtual | ~G4UIcommand () |
|
G4int | operator== (const G4UIcommand &right) const |
|
G4int | operator!= (const G4UIcommand &right) const |
|
G4String | GetCurrentValue () |
|
void | AvailableForStates (G4ApplicationState s1) |
|
void | AvailableForStates (G4ApplicationState s1, G4ApplicationState s2) |
|
void | AvailableForStates (G4ApplicationState s1, G4ApplicationState s2, G4ApplicationState s3) |
|
void | AvailableForStates (G4ApplicationState s1, G4ApplicationState s2, G4ApplicationState s3, G4ApplicationState s4) |
|
void | AvailableForStates (G4ApplicationState s1, G4ApplicationState s2, G4ApplicationState s3, G4ApplicationState s4, G4ApplicationState s5) |
|
G4bool | IsAvailable () |
|
virtual void | List () |
|
void | SetRange (const char *rs) |
|
const G4String & | GetRange () const |
|
G4int | GetGuidanceEntries () const |
|
const G4String & | GetGuidanceLine (G4int i) const |
|
const G4String & | GetCommandPath () const |
|
const G4String & | GetCommandName () const |
|
G4int | GetParameterEntries () const |
|
G4UIparameter * | GetParameter (G4int i) const |
|
std::vector< G4ApplicationState > * | GetStateList () |
|
G4UImessenger * | GetMessenger () const |
|
void | SetParameter (G4UIparameter *const newParameter) |
|
void | SetGuidance (const char *aGuidance) |
|
const G4String | GetTitle () const |
|
void | SetToBeBroadcasted (G4bool val) |
|
G4bool | ToBeBroadcasted () const |
|
void | SetToBeFlushed (G4bool val) |
|
G4bool | ToBeFlushed () const |
|
void | SetWorkerThreadOnly (G4bool val=true) |
|
G4bool | IsWorkerThreadOnly () const |
|
G4UIcmdWith3VectorAndUnit::G4UIcmdWith3VectorAndUnit |
( |
const char * |
theCommandPath, |
|
|
G4UImessenger * |
theMessenger |
|
) |
| |
Definition at line 38 of file G4UIcmdWith3VectorAndUnit.cc.
void SetParameter(G4UIparameter *const newParameter)
void SetParameterName(const char *theName)
Definition at line 120 of file G4UIcmdWith3VectorAndUnit.cc.
125 G4String aToken = candidateTokenizer();
127 std::ostringstream os;
G4String GetParameterCandidates() const
#define G4BestUnit(a, b)
#define G4_USE_G4BESTUNIT_FOR_VERBOSE 1
G4UIparameter * GetParameter(G4int i) const
static G4String CategoryOf(const char *unitName)
Definition at line 134 of file G4UIcmdWith3VectorAndUnit.cc.
static G4String ConvertToString(G4bool boolVal)
G4bool IsOmittable() const
G4UIparameter * GetParameter(G4int i) const
G4String GetDefaultValue() const
G4String ConvertToStringWithBestUnit(G4ThreeVector vec)
Reimplemented from G4UIcommand.
Definition at line 52 of file G4UIcmdWith3VectorAndUnit.cc.
54 std::vector<G4String> token_vector;
57 while( (str = tkn()) !=
"" ) {
58 token_vector.push_back(str);
64 if (default_unit !=
"" && token_vector.size() >= 4) {
75 converted_parameter +=
" ";
77 converted_parameter +=
" ";
79 converted_parameter +=
" ";
80 converted_parameter += default_unit;
81 for (
size_t i=4 ; i< token_vector.size(); i++) {
82 converted_parameter +=
" ";
83 converted_parameter += token_vector[i];
86 converted_parameter = parameterList;
static G4String ConvertToString(G4bool boolVal)
G4UIparameter * GetParameter(G4int i) const
static G4double ConvertToDouble(const char *st)
static G4double ValueOf(const char *unitName)
static G4String CategoryOf(const char *unitName)
virtual G4int DoIt(G4String parameterList)
G4ThreeVector G4UIcmdWith3VectorAndUnit::GetNew3VectorRawValue |
( |
const char * |
paramString | ) |
|
|
static |
Definition at line 97 of file G4UIcmdWith3VectorAndUnit.cc.
103 std::istringstream is(paramString);
104 is >> vx >> vy >> vz >> unts;
CLHEP::Hep3Vector G4ThreeVector
G4ThreeVector G4UIcmdWith3VectorAndUnit::GetNew3VectorValue |
( |
const char * |
paramString | ) |
|
|
static |
G4double G4UIcmdWith3VectorAndUnit::GetNewUnitValue |
( |
const char * |
paramString | ) |
|
|
static |
Definition at line 108 of file G4UIcmdWith3VectorAndUnit.cc.
114 std::istringstream is(paramString);
115 is >> vx >> vy >> vz >> unts;
static G4double ValueOf(const char *unitName)
void G4UIcmdWith3VectorAndUnit::SetDefaultUnit |
( |
const char * |
defUnit | ) |
|
Definition at line 185 of file G4UIcmdWith3VectorAndUnit.cc.
void SetOmittable(G4bool om)
void SetUnitCategory(const char *unitCategory)
void SetDefaultValue(const char *theDefaultValue)
G4UIparameter * GetParameter(G4int i) const
static G4String CategoryOf(const char *unitName)
void G4UIcmdWith3VectorAndUnit::SetParameterName |
( |
const char * |
theNameX, |
|
|
const char * |
theNameY, |
|
|
const char * |
theNameZ, |
|
|
G4bool |
omittable, |
|
|
G4bool |
currentAsDefault = false |
|
) |
| |
Definition at line 146 of file G4UIcmdWith3VectorAndUnit.cc.
void SetOmittable(G4bool om)
void SetParameterName(const char *theName)
void SetCurrentAsDefault(G4bool val)
G4UIparameter * GetParameter(G4int i) const
void G4UIcmdWith3VectorAndUnit::SetUnitCandidates |
( |
const char * |
candidateList | ) |
|
Definition at line 178 of file G4UIcmdWith3VectorAndUnit.cc.
void SetParameterCandidates(const char *theString)
G4UIparameter * GetParameter(G4int i) const
void G4UIcmdWith3VectorAndUnit::SetUnitCategory |
( |
const char * |
unitCategory | ) |
|
Definition at line 173 of file G4UIcmdWith3VectorAndUnit.cc.
static G4String UnitsList(const char *unitCategory)
void SetUnitCandidates(const char *candidateList)
The documentation for this class was generated from the following files: