328{
329 if(command==listCmd) {
331 } else if(command==dumpCmd) {
333 } else if(command==drawCmd) {
339 fSMan->
DrawMesh(meshName,psName,colorMapName,axflg);
340 } else if(command==drawColumnCmd) {
347 fSMan->
DrawMesh(meshName,psName,iPlane,iColumn,colorMapName);
348 } else if(command==chartCmd ){
352
354
355
356 } else if(command==dumpQtyToFileCmd) {
363 } else if(command==dumpAllQtsToFileCmd) {
369 } else if(command==verboseCmd) {
371 } else if(command==meshBoxCreateCmd) {
373 if ( currentmesh ){
376 <<
"> is still open. Close it first. Command ignored." <<
G4endl;
377 } else {
378
380 if ( !mesh ){
383 }else{
385 << "] : Scoring mesh <" << newVal
386 <<
"> already exists. Command ignored." <<
G4endl;
387 }
388 }
389 } else if(command==meshCylinderCreateCmd) {
391 if ( currentmesh ){
394 <<
"> is still open. Close it first. Command ignored." <<
G4endl;
395 } else {
396
398 if ( !mesh ){
401 }else{
403 << "] : Scoring mesh <" << newVal
404 <<
"> already exists. Command ignored." <<
G4endl;
405 }
406 }
407 } else if(command==listColorMapCmd) {
409 } else if(command==floatMinMaxCmd) {
411 if(colorMap)
413 else
415 << "] : color map <" << newVal << "> is not defined. Command ignored."
417 }
418 } else if(command==colorMapMinMaxCmd) {
424 if(colorMap)
427 else
429 << "] : color map <" << newVal << "> is not defined. Command ignored."
431 }
432 } else if(command==meshOpnCmd) {
434 if ( currentmesh ){
436 <<
"] : Mesh <" << currentmesh->
GetWorldName() <<
"> is still open. Close it first. Command ignored." <<
G4endl;
437 } else {
439 if ( !mesh ){
441 <<
"] : Scoring mesh <" << newVal <<
"> does not exist. Command ignored." <<
G4endl;
442 } else {
444 }
445 }
446 } else if(command==meshClsCmd) {
448 } else {
449
450
451
453
454
455 if ( mesh ){
456
459
460
461
462
463
464
465 if(command==mBoxSizeCmd) {
474 } else {
476 <<
"] : This mesh is not Box. Command ignored." <<
G4endl;
477 }
478 }else if(command==mCylinderSizeCmd) {
482 vsize[0] =
StoD(token[0]);
483 vsize[1] =
StoD(token[1]);
485 vsize[0] *= unt;
486 vsize[1] *= unt;
487 vsize[2] = 0.0;
489 } else {
491 <<
"] : This mesh is not Box. Command ignored." <<
G4endl;
492 }
493 } else if(command==mBinCmd) {
495 } else if(command==mTResetCmd) {
496 G4double centerPosition[3] ={ 0., 0., 0.};
498 } else if(command==mTXyzCmd) {
501 centerPosition[0] = xyz.
x();
502 centerPosition[1] = xyz.
y();
503 centerPosition[2] = xyz.
z();
505 } else if(command==mRResetCmd) {
506 } else if(command==mRotXCmd) {
509 } else if(command==mRotYCmd) {
512 } else if(command==mRotZCmd) {
515 }
516 }else{
517 G4cerr <<
"ERROR: No mesh is currently open. Open/create a mesh first. Command ignored." <<
G4endl;
518 }
519 }
520}
std::vector< G4String > G4TokenVec
G4DLLIMPORT std::ostream G4cerr
G4VScoringMesh * FindMesh(const G4String &)
void RegisterScoringMesh(G4VScoringMesh *scm)
void SetVerboseLevel(G4int vl)
G4VScoreColorMap * GetScoreColorMap(const G4String &mapName)
void DumpAllQuantitiesToFile(const G4String &meshName, const G4String &fileName, const G4String &option="")
void SetCurrentMesh(G4VScoringMesh *scm)
void DrawMesh(const G4String &meshName, const G4String &psName, const G4String &colorMapName, G4int axflg=111)
G4VScoringMesh * GetCurrentMesh() const
void ListScoreColorMaps()
void DumpQuantityToFile(const G4String &meshName, const G4String &psName, const G4String &fileName, const G4String &option="")
void FillTokenVec(G4String newValues, G4TokenVec &token)
void MeshBinCommand(G4VScoringMesh *mesh, G4TokenVec &token)
static G4ThreeVector GetNew3VectorValue(const char *paramString)
static G4double GetNewDoubleValue(const char *paramString)
static G4int GetNewIntValue(const char *paramString)
static G4double ValueOf(const char *unitName)
const G4String & GetCommandPath() const
G4double StoD(G4String s)
void SetMinMax(G4double minVal, G4double maxVal)
void SetFloatingMinMax(G4bool vl=true)
MeshShape GetShape() const
void RotateY(G4double delta)
const G4String & GetWorldName() const
void SetCenterPosition(G4double centerPosition[3])
void RotateX(G4double delta)
void SetSize(G4double size[3])
void RotateZ(G4double delta)