|
Lines 434-442
void G4VisCommandSceneAddDate::SetNewValue (G4UIcommand*, G4String newValue)
Link Here
|
| 434 |
is.getline(remainder, NREMAINDER); |
434 |
is.getline(remainder, NREMAINDER); |
| 435 |
dateString += remainder; |
435 |
dateString += remainder; |
| 436 |
G4Text::Layout layout = G4Text::right; |
436 |
G4Text::Layout layout = G4Text::right; |
| 437 |
if (layoutString[0] == 'l') layout = G4Text::left; |
437 |
if (layoutString.at(0) == 'l') layout = G4Text::left; |
| 438 |
else if (layoutString[0] == 'c') layout = G4Text::centre; |
438 |
else if (layoutString.at(0) == 'c') layout = G4Text::centre; |
| 439 |
else if (layoutString[0] == 'r') layout = G4Text::right; |
439 |
else if (layoutString.at(0) == 'r') layout = G4Text::right; |
| 440 |
|
440 |
|
| 441 |
Date* date = new Date(fpVisManager, size, x, y, layout, dateString); |
441 |
Date* date = new Date(fpVisManager, size, x, y, layout, dateString); |
| 442 |
G4VModel* model = |
442 |
G4VModel* model = |
|
Lines 676-684
void G4VisCommandSceneAddEventID::SetNewValue (G4UIcommand*, G4String newValue)
Link Here
|
| 676 |
is >> size >> x >> y >> layoutString; |
676 |
is >> size >> x >> y >> layoutString; |
| 677 |
|
677 |
|
| 678 |
G4Text::Layout layout = G4Text::right; |
678 |
G4Text::Layout layout = G4Text::right; |
| 679 |
if (layoutString[0] == 'l') layout = G4Text::left; |
679 |
if (layoutString.at(0) == 'l') layout = G4Text::left; |
| 680 |
else if (layoutString[0] == 'c') layout = G4Text::centre; |
680 |
else if (layoutString.at(0) == 'c') layout = G4Text::centre; |
| 681 |
else if (layoutString[0] == 'r') layout = G4Text::right; |
681 |
else if (layoutString.at(0) == 'r') layout = G4Text::right; |
| 682 |
|
682 |
|
| 683 |
// For End of Event (only for reviewing kept events one by one) |
683 |
// For End of Event (only for reviewing kept events one by one) |
| 684 |
EventID* eoeEventID |
684 |
EventID* eoeEventID |
|
Lines 1656-1668
void G4VisCommandSceneAddLogo::SetNewValue (G4UIcommand*, G4String newValue) {
Link Here
|
| 1656 |
else if (vp.z() > vp.x() && vp.z() > vp.y()) logoDirection = Z; |
1656 |
else if (vp.z() > vp.x() && vp.z() > vp.y()) logoDirection = Z; |
| 1657 |
else if (vp.z() < vp.x() && vp.z() < vp.y()) logoDirection = minusZ; |
1657 |
else if (vp.z() < vp.x() && vp.z() < vp.y()) logoDirection = minusZ; |
| 1658 |
} |
1658 |
} |
| 1659 |
else if (direction[0] == 'x') logoDirection = X; |
1659 |
else if (direction.at(0) == 'x') logoDirection = X; |
| 1660 |
else if (direction[0] == 'y') logoDirection = Y; |
1660 |
else if (direction.at(0) == 'y') logoDirection = Y; |
| 1661 |
else if (direction[0] == 'z') logoDirection = Z; |
1661 |
else if (direction.at(0) == 'z') logoDirection = Z; |
| 1662 |
else if (direction[0] == '-') { |
1662 |
else if (direction.at(0) == '-') { |
| 1663 |
if (direction[1] == 'x') logoDirection = minusX; |
1663 |
if (direction.at(0) == 'x') logoDirection = minusX; |
| 1664 |
else if (direction[1] == 'y') logoDirection = minusY; |
1664 |
else if (direction.at(0) == 'y') logoDirection = minusY; |
| 1665 |
else if (direction[1] == 'z') logoDirection = minusZ; |
1665 |
else if (direction.at(0) == 'z') logoDirection = minusZ; |
| 1666 |
} else { |
1666 |
} else { |
| 1667 |
if (verbosity >= G4VisManager::errors) { |
1667 |
if (verbosity >= G4VisManager::errors) { |
| 1668 |
G4cerr << "ERROR: Unrecogniseed direction: \"" |
1668 |
G4cerr << "ERROR: Unrecogniseed direction: \"" |
|
Lines 1975-1983
void G4VisCommandSceneAddLogo2D::SetNewValue (G4UIcommand*, G4String newValue)
Link Here
|
| 1975 |
std::istringstream is(newValue); |
1975 |
std::istringstream is(newValue); |
| 1976 |
is >> size >> x >> y >> layoutString; |
1976 |
is >> size >> x >> y >> layoutString; |
| 1977 |
G4Text::Layout layout = G4Text::right; |
1977 |
G4Text::Layout layout = G4Text::right; |
| 1978 |
if (layoutString[0] == 'l') layout = G4Text::left; |
1978 |
if (layoutString.at(0) == 'l') layout = G4Text::left; |
| 1979 |
else if (layoutString[0] == 'c') layout = G4Text::centre; |
1979 |
else if (layoutString.at(0) == 'c') layout = G4Text::centre; |
| 1980 |
else if (layoutString[0] == 'r') layout = G4Text::right; |
1980 |
else if (layoutString.at(0) == 'r') layout = G4Text::right; |
| 1981 |
|
1981 |
|
| 1982 |
Logo2D* logo2D = new Logo2D(fpVisManager, size, x, y, layout); |
1982 |
Logo2D* logo2D = new Logo2D(fpVisManager, size, x, y, layout); |
| 1983 |
G4VModel* model = |
1983 |
G4VModel* model = |
|
Lines 2265-2272
void G4VisCommandSceneAddScale::SetNewValue (G4UIcommand*, G4String newValue) {
Link Here
|
| 2265 |
xmid *= unit; ymid *= unit; zmid *= unit; |
2265 |
xmid *= unit; ymid *= unit; zmid *= unit; |
| 2266 |
|
2266 |
|
| 2267 |
Scale::Direction scaleDirection (Scale::x); |
2267 |
Scale::Direction scaleDirection (Scale::x); |
| 2268 |
if (direction[0] == 'y') scaleDirection = Scale::y; |
2268 |
if (direction.at(0) == 'y') scaleDirection = Scale::y; |
| 2269 |
if (direction[0] == 'z') scaleDirection = Scale::z; |
2269 |
if (direction.at(0) == 'z') scaleDirection = Scale::z; |
| 2270 |
|
2270 |
|
| 2271 |
G4VViewer* pViewer = fpVisManager->GetCurrentViewer(); |
2271 |
G4VViewer* pViewer = fpVisManager->GetCurrentViewer(); |
| 2272 |
if (!pViewer) { |
2272 |
if (!pViewer) { |