- Timestamp:
- Jun 18, 2010, 11:42:07 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/visualization/HepRep/src/G4HepRepMessenger.cc
r1228 r1315 24 24 // ******************************************************************** 25 25 // 26 // $Id: G4HepRepMessenger.cc,v 1.1 1 2009/11/23 05:42:28perl Exp $27 // GEANT4 tag $Name: $26 // $Id: G4HepRepMessenger.cc,v 1.12 2010/06/05 06:25:03 perl Exp $ 27 // GEANT4 tag $Name: geant4-09-04-beta-cand-01 $ 28 28 // 29 29 #include "G4HepRepMessenger.hh" … … 100 100 } 101 101 setCullInvisiblesCommand->AvailableForStates(G4State_Idle); 102 103 renderCylAsPolygonsCommand = new G4UIcmdWithABool("/vis/heprep/renderCylAsPolygons", this); 104 renderCylAsPolygonsCommand->SetGuidance("Render cylinders and cones as polygons."); 105 renderCylAsPolygonsCommand->SetGuidance("This command is used by HepRepFile, not by HepRepXML."); 106 renderCylAsPolygonsCommand->SetParameterName("flag",false); 107 renderCylAsPolygonsCommand->SetDefaultValue(true); 108 renderCylAsPolygonsCommand->AvailableForStates(G4State_Idle); 102 109 103 110 setEventNumberSuffixCommand = new G4UIcmdWithAString("/vis/heprep/setEventNumberSuffix", this); … … 122 129 addPointAttributesCommand->SetDefaultValue(false); 123 130 addPointAttributesCommand->AvailableForStates(G4State_Idle); 124 125 126 127 useSolidsCommand->SetGuidance("This command is used by HepRepXML, not by HepRepFile. ");128 129 130 131 132 useSolidsCommand = new G4UIcmdWithABool("/vis/heprep/useSolids", this); 133 useSolidsCommand->SetGuidance("Use HepRep Solids, rather than Geant4 Primitives."); 134 useSolidsCommand->SetGuidance("This command is used by HepRepXML, not by HepRepFile.."); 135 useSolidsCommand->SetParameterName("flag",false); 136 useSolidsCommand->SetDefaultValue(true); 137 useSolidsCommand->AvailableForStates(G4State_Idle); 131 138 } 132 139 … … 136 143 delete setOverwriteCommand; 137 144 delete setCullInvisiblesCommand; 145 delete renderCylAsPolygonsCommand; 138 146 delete setEventNumberSuffixCommand; 139 147 delete appendGeometryCommand; … … 152 160 } else if (command==setCullInvisiblesCommand) { 153 161 return cullInvisibles; 162 } else if (command==renderCylAsPolygonsCommand) { 163 return renderCylAsPolygonsCommand->ConvertToString(cylAsPolygons); 154 164 } else if (command==setEventNumberSuffixCommand) { 155 165 return suffix; … … 174 184 } else if (command==setCullInvisiblesCommand) { 175 185 cullInvisibles = setCullInvisiblesCommand->GetNewBoolValue(newValue); 186 } else if (command==renderCylAsPolygonsCommand) { 187 cylAsPolygons = renderCylAsPolygonsCommand->GetNewBoolValue(newValue); 176 188 } else if (command==setEventNumberSuffixCommand) { 177 189 suffix = newValue; … … 201 213 } 202 214 215 G4bool G4HepRepMessenger::renderCylAsPolygons() { 216 return cylAsPolygons; 217 } 218 203 219 G4String G4HepRepMessenger::getEventNumberSuffix() { 204 220 return suffix;
Note: See TracChangeset
for help on using the changeset viewer.