#include <G4HepRepMessenger.hh>
Inheritance diagram for G4HepRepMessenger:
Public Member Functions | |
virtual | ~G4HepRepMessenger () |
virtual G4String | GetCurrentValue (G4UIcommand *command) |
virtual void | SetNewValue (G4UIcommand *command, G4String newValue) |
virtual G4String | getFileDir () |
virtual G4String | getFileName () |
virtual G4bool | getOverwrite () |
virtual G4bool | getCullInvisibles () |
virtual G4bool | renderCylAsPolygons () |
virtual G4double | getScale () |
virtual G4ThreeVector | getCenter () |
virtual G4String | getEventNumberSuffix () |
virtual G4bool | appendGeometry () |
virtual G4bool | addPointAttributes () |
virtual G4bool | useSolids () |
virtual G4bool | writeInvisibles () |
Static Public Member Functions | |
static G4HepRepMessenger * | GetInstance () |
Definition at line 41 of file G4HepRepMessenger.hh.
G4HepRepMessenger::~G4HepRepMessenger | ( | ) | [virtual] |
Definition at line 153 of file G4HepRepMessenger.cc.
00153 { 00154 delete setFileDirCommand; 00155 delete setFileNameCommand; 00156 delete setOverwriteCommand; 00157 delete setCullInvisiblesCommand; 00158 delete renderCylAsPolygonsCommand; 00159 delete setScaleCommand; 00160 delete setCenterCommand; 00161 delete setEventNumberSuffixCommand; 00162 delete appendGeometryCommand; 00163 delete addPointAttributesCommand; 00164 delete useSolidsCommand; 00165 delete heprepDirectory; 00166 }
G4bool G4HepRepMessenger::addPointAttributes | ( | ) | [virtual] |
G4bool G4HepRepMessenger::appendGeometry | ( | ) | [virtual] |
Definition at line 254 of file G4HepRepMessenger.cc.
Referenced by G4HepRepSceneHandler::closeHepRep(), and G4HepRepViewer::ShowView().
G4ThreeVector G4HepRepMessenger::getCenter | ( | ) | [virtual] |
Definition at line 246 of file G4HepRepMessenger.cc.
Referenced by G4HepRepFileXMLWriter::addPoint().
G4bool G4HepRepMessenger::getCullInvisibles | ( | ) | [virtual] |
Definition at line 234 of file G4HepRepMessenger.cc.
Referenced by G4HepRepFileSceneHandler::AddPrimitive(), and G4HepRepFileSceneHandler::AddSolid().
G4String G4HepRepMessenger::GetCurrentValue | ( | G4UIcommand * | command | ) | [virtual] |
Reimplemented from G4UImessenger.
Definition at line 168 of file G4HepRepMessenger.cc.
References G4UIcommand::ConvertToString().
00168 { 00169 if (command==setFileDirCommand) { 00170 return fileDir; 00171 } else if (command==setFileNameCommand) { 00172 return fileName; 00173 } else if (command==setOverwriteCommand) { 00174 return overwrite; 00175 } else if (command==setCullInvisiblesCommand) { 00176 return cullInvisibles; 00177 } else if (command==renderCylAsPolygonsCommand) { 00178 return renderCylAsPolygonsCommand->ConvertToString(cylAsPolygons); 00179 } else if (command==setScaleCommand) { 00180 return setScaleCommand->ConvertToString(scale); 00181 } else if (command==setCenterCommand) { 00182 return setCenterCommand->ConvertToString(center,"m"); 00183 } else if (command==setEventNumberSuffixCommand) { 00184 return suffix; 00185 } else if (command==appendGeometryCommand) { 00186 return appendGeometryCommand->ConvertToString(geometry); 00187 } else if (command==addPointAttributesCommand) { 00188 return addPointAttributesCommand->ConvertToString(pointAttributes); 00189 } else if (command==useSolidsCommand) { 00190 return useSolidsCommand->ConvertToString(solids); 00191 } else { 00192 return ""; 00193 } 00194 }
G4String G4HepRepMessenger::getEventNumberSuffix | ( | ) | [virtual] |
G4String G4HepRepMessenger::getFileDir | ( | ) | [virtual] |
G4String G4HepRepMessenger::getFileName | ( | ) | [virtual] |
G4HepRepMessenger * G4HepRepMessenger::GetInstance | ( | ) | [static] |
Definition at line 34 of file G4HepRepMessenger.cc.
Referenced by G4HepRepFileXMLWriter::addPoint(), G4HepRepFileSceneHandler::AddPrimitive(), G4HepRepSceneHandler::AddSolid(), G4HepRepFileSceneHandler::AddSolid(), G4HepRepSceneHandler::closeHepRep(), G4HepRep::G4HepRep(), G4HepRepFile::G4HepRepFile(), and G4HepRepViewer::ShowView().
00035 { 00036 if (!fpInstance) fpInstance = new G4HepRepMessenger; 00037 return fpInstance; 00038 }
G4bool G4HepRepMessenger::getOverwrite | ( | ) | [virtual] |
G4double G4HepRepMessenger::getScale | ( | ) | [virtual] |
Definition at line 242 of file G4HepRepMessenger.cc.
Referenced by G4HepRepFileXMLWriter::addPoint(), and G4HepRepFileSceneHandler::AddSolid().
G4bool G4HepRepMessenger::renderCylAsPolygons | ( | ) | [virtual] |
Definition at line 238 of file G4HepRepMessenger.cc.
Referenced by G4HepRepFileSceneHandler::AddSolid().
void G4HepRepMessenger::SetNewValue | ( | G4UIcommand * | command, | |
G4String | newValue | |||
) | [virtual] |
Reimplemented from G4UImessenger.
Definition at line 196 of file G4HepRepMessenger.cc.
References G4UIcmdWith3VectorAndUnit::GetNew3VectorValue(), G4UIcmdWithABool::GetNewBoolValue(), and G4UIcmdWithADouble::GetNewDoubleValue().
00196 { 00197 if (command==setFileDirCommand) { 00198 fileDir = newValue; 00199 } else if (command==setFileNameCommand) { 00200 fileName = newValue; 00201 } else if (command==setOverwriteCommand) { 00202 overwrite = setOverwriteCommand->GetNewBoolValue(newValue); 00203 } else if (command==setCullInvisiblesCommand) { 00204 cullInvisibles = setCullInvisiblesCommand->GetNewBoolValue(newValue); 00205 } else if (command==renderCylAsPolygonsCommand) { 00206 cylAsPolygons = renderCylAsPolygonsCommand->GetNewBoolValue(newValue); 00207 } else if (command==setScaleCommand) { 00208 scale = setScaleCommand->GetNewDoubleValue(newValue); 00209 } else if (command==setCenterCommand) { 00210 center = setCenterCommand->GetNew3VectorValue(newValue); 00211 } else if (command==setEventNumberSuffixCommand) { 00212 suffix = newValue; 00213 } else if (command==appendGeometryCommand) { 00214 geometry = appendGeometryCommand->GetNewBoolValue(newValue); 00215 } else if (command==addPointAttributesCommand) { 00216 pointAttributes = addPointAttributesCommand->GetNewBoolValue(newValue); 00217 } else if (command==useSolidsCommand) { 00218 solids = useSolidsCommand->GetNewBoolValue(newValue); 00219 } 00220 }
G4bool G4HepRepMessenger::useSolids | ( | ) | [virtual] |
Definition at line 262 of file G4HepRepMessenger.cc.
Referenced by G4HepRepSceneHandler::AddSolid().
G4bool G4HepRepMessenger::writeInvisibles | ( | ) | [virtual] |