| 916 | } |
| 917 | |
| 918 | void G4VSceneHandler::DrawEndOfRunModels() |
| 919 | { |
| 920 | if(!fpViewer->ReadyToDraw()) return; |
| 921 | const std::vector<G4Scene::Model>& EORModelList = |
| 922 | fpScene -> GetEndOfRunModelList (); |
| 923 | std::size_t nModels = EORModelList.size(); |
| 924 | if (nModels) { |
| 925 | G4ModelingParameters* pMP = CreateModelingParameters(); |
| 926 | pMP->SetEvent(0); |
| 927 | for (std::size_t i = 0; i < nModels; ++i) { |
| 928 | if (EORModelList[i].fActive) { |
| 929 | fpModel = EORModelList[i].fpModel; |
| 930 | fpModel -> SetModelingParameters(pMP); |
| 931 | |
| 932 | // Describe to the current scene handler |
| 933 | fpModel -> DescribeYourselfTo (*this); |
| 934 | |
| 935 | // Enter models in the scene tree |
| 936 | fpViewer->InsertModelInSceneTree(fpModel); |
| 937 | |
| 938 | // Reset modeling parameters pointer |
| 939 | fpModel -> SetModelingParameters(0); |
| 940 | } |
| 941 | } |
| 942 | fpModel = 0; |
| 943 | delete pMP; |
| 944 | } |
| 945 | } |
| 946 | |
| 947 | G4ModelingParameters* G4VSceneHandler::CreateModelingParameters () |
| 948 | { |
no test coverage detected