G4ModelCmdSetAuxPtsFillStyle< M > Class Template Reference

#include <G4ModelCommandsT.hh>

Inheritance diagram for G4ModelCmdSetAuxPtsFillStyle< M >:

G4ModelCmdApplyString< M > G4VModelCommand< M > G4UImessenger

Public Member Functions

 G4ModelCmdSetAuxPtsFillStyle (M *model, const G4String &placement, const G4String &cmdName="setAuxPtsFillStyle")

Protected Member Functions

void Apply (const G4String &type)

Detailed Description

template<typename M>
class G4ModelCmdSetAuxPtsFillStyle< M >

Definition at line 654 of file G4ModelCommandsT.hh.


Constructor & Destructor Documentation

template<typename M>
G4ModelCmdSetAuxPtsFillStyle< M >::G4ModelCmdSetAuxPtsFillStyle ( M *  model,
const G4String placement,
const G4String cmdName = "setAuxPtsFillStyle" 
) [inline]

Definition at line 658 of file G4ModelCommandsT.hh.

References G4ModelCmdApplyString< M >::Command(), G4UIcmdWithAString::SetCandidates(), and G4UIcommand::SetGuidance().

00660     :G4ModelCmdApplyString<M>(model, placement, cmdName)
00661   {
00662     G4UIcmdWithAString* cmd = G4ModelCmdApplyString<M>::Command();
00663     cmd->SetGuidance("Set auxiliary fill style.");
00664     cmd->SetCandidates("noFill hashed filled");
00665   }


Member Function Documentation

template<typename M>
void G4ModelCmdSetAuxPtsFillStyle< M >::Apply ( const G4String type  )  [inline, protected, virtual]

Implements G4ModelCmdApplyString< M >.

Definition at line 669 of file G4ModelCommandsT.hh.

References G4VMarker::filled, G4Exception(), G4VMarker::hashed, JustWarning, G4VModelCommand< T >::Model(), and G4VMarker::noFill.

00669                                    {
00670     G4VMarker::FillStyle myFillStyle;
00671     
00672     if (type == "noFill") {myFillStyle = G4VMarker::noFill;}
00673     else if (type == "hashed") {myFillStyle = G4VMarker::hashed;}
00674     else if (type == "filled") {myFillStyle = G4VMarker::filled;}
00675     else {
00676       G4ExceptionDescription ed;
00677       ed << "Invalid argument. See command guidance for options.";
00678       G4Exception
00679         ("G4ModelCmdSetAuxPtsFillStyle::Apply",
00680          "modeling0114", JustWarning, ed);
00681       return;
00682     }
00683     G4VModelCommand<M>::Model()->SetAuxPtsFillStyle(myFillStyle);
00684   }


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