G4ModelCmdSetStepPtsFillStyle< M > Class Template Reference

#include <G4ModelCommandsT.hh>

Inheritance diagram for G4ModelCmdSetStepPtsFillStyle< M >:

G4ModelCmdApplyString< M > G4VModelCommand< M > G4UImessenger

Public Member Functions

 G4ModelCmdSetStepPtsFillStyle (M *model, const G4String &placement, const G4String &cmdName="setStepPtsFillStyle")

Protected Member Functions

void Apply (const G4String &type)

Detailed Description

template<typename M>
class G4ModelCmdSetStepPtsFillStyle< M >

Definition at line 617 of file G4ModelCommandsT.hh.


Constructor & Destructor Documentation

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

Definition at line 621 of file G4ModelCommandsT.hh.

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

00623     :G4ModelCmdApplyString<M>(model, placement, cmdName)
00624   {
00625     G4UIcmdWithAString* cmd = G4ModelCmdApplyString<M>::Command();
00626     cmd->SetGuidance("Set step fill style type.");
00627     cmd->SetCandidates("noFill hashed filled");
00628   }


Member Function Documentation

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

Implements G4ModelCmdApplyString< M >.

Definition at line 632 of file G4ModelCommandsT.hh.

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

00632                                    {
00633     G4VMarker::FillStyle myFillStyle;
00634     
00635     if (type == "noFill") {myFillStyle = G4VMarker::noFill;}
00636     else if (type == "hashed") {myFillStyle = G4VMarker::hashed;}
00637     else if (type == "filled") {myFillStyle = G4VMarker::filled;}
00638     else {
00639       G4ExceptionDescription ed;
00640       ed << "Invalid argument. See command guidance for options.";
00641       G4Exception
00642         ("G4ModelCmdSetStepPtsFillStyle::Apply",
00643          "modeling0113", JustWarning, ed);
00644       return;
00645     }
00646     G4VModelCommand<M>::Model()->SetStepPtsFillStyle(myFillStyle);
00647   }


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