G4HepRepMessenger Class Reference

#include <G4HepRepMessenger.hh>

Inheritance diagram for G4HepRepMessenger:

G4UImessenger

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 G4HepRepMessengerGetInstance ()

Detailed Description

Definition at line 41 of file G4HepRepMessenger.hh.


Constructor & Destructor Documentation

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 }


Member Function Documentation

G4bool G4HepRepMessenger::addPointAttributes (  )  [virtual]

Definition at line 258 of file G4HepRepMessenger.cc.

00258                                              {
00259     return pointAttributes;
00260 }

G4bool G4HepRepMessenger::appendGeometry (  )  [virtual]

Definition at line 254 of file G4HepRepMessenger.cc.

Referenced by G4HepRepSceneHandler::closeHepRep(), and G4HepRepViewer::ShowView().

00254                                          {
00255     return geometry;
00256 }

G4ThreeVector G4HepRepMessenger::getCenter (  )  [virtual]

Definition at line 246 of file G4HepRepMessenger.cc.

Referenced by G4HepRepFileXMLWriter::addPoint().

00246                                            {
00247     return center;
00248 }

G4bool G4HepRepMessenger::getCullInvisibles (  )  [virtual]

Definition at line 234 of file G4HepRepMessenger.cc.

Referenced by G4HepRepFileSceneHandler::AddPrimitive(), and G4HepRepFileSceneHandler::AddSolid().

00234                                             {
00235     return cullInvisibles;
00236 }

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]

Definition at line 250 of file G4HepRepMessenger.cc.

00250                                                  {
00251     return suffix;
00252 }

G4String G4HepRepMessenger::getFileDir (  )  [virtual]

Definition at line 222 of file G4HepRepMessenger.cc.

00222                                        {
00223     return fileDir;
00224 }

G4String G4HepRepMessenger::getFileName (  )  [virtual]

Definition at line 226 of file G4HepRepMessenger.cc.

00226                                         {
00227     return fileName;
00228 }

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]

Definition at line 230 of file G4HepRepMessenger.cc.

00230                                        {
00231     return overwrite;
00232 }

G4double G4HepRepMessenger::getScale (  )  [virtual]

Definition at line 242 of file G4HepRepMessenger.cc.

Referenced by G4HepRepFileXMLWriter::addPoint(), and G4HepRepFileSceneHandler::AddSolid().

00242                                      {
00243     return scale;
00244 }

G4bool G4HepRepMessenger::renderCylAsPolygons (  )  [virtual]

Definition at line 238 of file G4HepRepMessenger.cc.

Referenced by G4HepRepFileSceneHandler::AddSolid().

00238                                               {
00239     return cylAsPolygons;
00240 }

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().

00262                                     {
00263     return solids;
00264 }

G4bool G4HepRepMessenger::writeInvisibles (  )  [virtual]

Definition at line 266 of file G4HepRepMessenger.cc.

00266                                           {
00267     return invisibles;
00268 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:52:12 2013 for Geant4 by  doxygen 1.4.7