Ignore:
Timestamp:
Jun 18, 2010, 11:42:07 AM (14 years ago)
Author:
garnier
Message:

update geant4-09-04-beta-cand-01 interfaces-V09-03-09 vis-V09-03-08

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/visualization/HepRep/src/G4HepRepMessenger.cc

    r1228 r1315  
    2424// ********************************************************************
    2525//
    26 // $Id: G4HepRepMessenger.cc,v 1.11 2009/11/23 05:42:28 perl 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 $
    2828//
    2929#include "G4HepRepMessenger.hh"
     
    100100        }
    101101        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);
    102109               
    103110    setEventNumberSuffixCommand = new G4UIcmdWithAString("/vis/heprep/setEventNumberSuffix", this);
     
    122129    addPointAttributesCommand->SetDefaultValue(false);
    123130    addPointAttributesCommand->AvailableForStates(G4State_Idle);
    124 
    125     useSolidsCommand = new G4UIcmdWithABool("/vis/heprep/useSolids", this);
    126     useSolidsCommand->SetGuidance("Use HepRep Solids, rather than Geant4 Primitives.");
    127         useSolidsCommand->SetGuidance("This command is used by HepRepXML, not by HepRepFile.");
    128     useSolidsCommand->SetParameterName("flag",false);
    129     useSolidsCommand->SetDefaultValue(true);
    130     useSolidsCommand->AvailableForStates(G4State_Idle);
     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);
    131138}
    132139
     
    136143        delete setOverwriteCommand;
    137144        delete setCullInvisiblesCommand;
     145    delete renderCylAsPolygonsCommand;
    138146    delete setEventNumberSuffixCommand;
    139147    delete appendGeometryCommand;
     
    152160    } else if (command==setCullInvisiblesCommand) {
    153161        return cullInvisibles;
     162    } else if (command==renderCylAsPolygonsCommand) {
     163        return renderCylAsPolygonsCommand->ConvertToString(cylAsPolygons);
    154164    } else if (command==setEventNumberSuffixCommand) {
    155165        return suffix;
     
    174184    } else if (command==setCullInvisiblesCommand) {
    175185                cullInvisibles = setCullInvisiblesCommand->GetNewBoolValue(newValue);
     186    } else if (command==renderCylAsPolygonsCommand) {
     187        cylAsPolygons = renderCylAsPolygonsCommand->GetNewBoolValue(newValue);
    176188    } else if (command==setEventNumberSuffixCommand) {
    177189        suffix = newValue;
     
    201213}
    202214
     215G4bool G4HepRepMessenger::renderCylAsPolygons() {
     216    return cylAsPolygons;
     217}
     218
    203219G4String G4HepRepMessenger::getEventNumberSuffix() {
    204220    return suffix;
Note: See TracChangeset for help on using the changeset viewer.