#include <G4UIcmdWith3Vector.hh>
Inheritance diagram for G4UIcmdWith3Vector:
Public Member Functions | |
G4UIcmdWith3Vector (const char *theCommandPath, G4UImessenger *theMessenger) | |
void | SetParameterName (const char *theNameX, const char *theNameY, const char *theNameZ, G4bool omittable, G4bool currentAsDefault=false) |
void | SetDefaultValue (G4ThreeVector defVal) |
Static Public Member Functions | |
static G4ThreeVector | GetNew3VectorValue (const char *paramString) |
Definition at line 42 of file G4UIcmdWith3Vector.hh.
G4UIcmdWith3Vector::G4UIcmdWith3Vector | ( | const char * | theCommandPath, | |
G4UImessenger * | theMessenger | |||
) |
Definition at line 34 of file G4UIcmdWith3Vector.cc.
00035 :G4UIcommand(theCommandPath,theMessenger) 00036 { 00037 G4UIparameter * dblParamX = new G4UIparameter('d'); 00038 SetParameter(dblParamX); 00039 G4UIparameter * dblParamY = new G4UIparameter('d'); 00040 SetParameter(dblParamY); 00041 G4UIparameter * dblParamZ = new G4UIparameter('d'); 00042 SetParameter(dblParamZ); 00043 }
G4ThreeVector G4UIcmdWith3Vector::GetNew3VectorValue | ( | const char * | paramString | ) | [static] |
Definition at line 45 of file G4UIcmdWith3Vector.cc.
References G4UIcommand::ConvertTo3Vector().
Referenced by G4VisCommandViewerScale::SetNewValue(), G4RTMessenger::SetNewValue(), G4RadioactiveDecaymessenger::SetNewValue(), G4ParticleGunMessenger::SetNewValue(), G4MatScanMessenger::SetNewValue(), G4GeometryMessenger::SetNewValue(), and G4GeneralParticleSourceMessenger::SetNewValue().
00046 { 00047 return ConvertTo3Vector(paramString); 00048 }
void G4UIcmdWith3Vector::SetDefaultValue | ( | G4ThreeVector | defVal | ) |
Definition at line 68 of file G4UIcmdWith3Vector.cc.
References G4UIcommand::GetParameter(), and G4UIparameter::SetDefaultValue().
Referenced by G4GeometryMessenger::G4GeometryMessenger().
00069 { 00070 G4UIparameter * theParamX = GetParameter(0); 00071 theParamX->SetDefaultValue(vec.x()); 00072 G4UIparameter * theParamY = GetParameter(1); 00073 theParamY->SetDefaultValue(vec.y()); 00074 G4UIparameter * theParamZ = GetParameter(2); 00075 theParamZ->SetDefaultValue(vec.z()); 00076 }
void G4UIcmdWith3Vector::SetParameterName | ( | const char * | theNameX, | |
const char * | theNameY, | |||
const char * | theNameZ, | |||
G4bool | omittable, | |||
G4bool | currentAsDefault = false | |||
) |
Definition at line 51 of file G4UIcmdWith3Vector.cc.
References G4UIparameter::SetCurrentAsDefault(), G4UIparameter::SetOmittable(), and G4UIparameter::SetParameterName().
Referenced by G4GeometryMessenger::G4GeometryMessenger(), G4MatScanMessenger::G4MatScanMessenger(), and G4ParticleGunMessenger::G4ParticleGunMessenger().
00053 { 00054 G4UIparameter * theParamX = GetParameter(0); 00055 theParamX->SetParameterName(theNameX); 00056 theParamX->SetOmittable(omittable); 00057 theParamX->SetCurrentAsDefault(currentAsDefault); 00058 G4UIparameter * theParamY = GetParameter(1); 00059 theParamY->SetParameterName(theNameY); 00060 theParamY->SetOmittable(omittable); 00061 theParamY->SetCurrentAsDefault(currentAsDefault); 00062 G4UIparameter * theParamZ = GetParameter(2); 00063 theParamZ->SetParameterName(theNameZ); 00064 theParamZ->SetOmittable(omittable); 00065 theParamZ->SetCurrentAsDefault(currentAsDefault); 00066 }