G4ModelCmdApplyBool< M > Class Template Reference

#include <G4ModelApplyCommandsT.hh>

Inheritance diagram for G4ModelCmdApplyBool< M >:

G4VModelCommand< M > G4UImessenger G4ModelCmdActive< M > G4ModelCmdDraw< M > G4ModelCmdInvert< M > G4ModelCmdSetAuxPtsVisible< M > G4ModelCmdSetDrawAuxPts< M > G4ModelCmdSetDrawLine< M > G4ModelCmdSetDrawStepPts< M > G4ModelCmdSetLineVisible< M > G4ModelCmdSetStepPtsVisible< M > G4ModelCmdVerbose< M >

Public Member Functions

 G4ModelCmdApplyBool (M *model, const G4String &placement, const G4String &cmdName)
virtual ~G4ModelCmdApplyBool ()
void SetNewValue (G4UIcommand *command, G4String newValue)

Protected Member Functions

virtual void Apply (const G4bool &)=0
G4UIcmdWithABoolCommand ()

Detailed Description

template<typename M>
class G4ModelCmdApplyBool< M >

Definition at line 264 of file G4ModelApplyCommandsT.hh.


Constructor & Destructor Documentation

template<typename M>
G4ModelCmdApplyBool< M >::G4ModelCmdApplyBool ( M *  model,
const G4String placement,
const G4String cmdName 
)

Definition at line 287 of file G4ModelApplyCommandsT.hh.

References G4UIcmdWithABool::SetParameterName().

00288   :G4VModelCommand<M>(model, placement)
00289 {
00290   G4String dir = placement+"/"+model->Name()+"/"+cmdName;
00291   fpCmd = new G4UIcmdWithABool(dir, this);
00292 
00293   fpCmd->SetParameterName("Bool", false);
00294 }

template<typename M>
G4ModelCmdApplyBool< M >::~G4ModelCmdApplyBool (  )  [virtual]

Definition at line 297 of file G4ModelApplyCommandsT.hh.

00298 {  
00299   delete fpCmd;
00300 }


Member Function Documentation

template<typename M>
virtual void G4ModelCmdApplyBool< M >::Apply ( const G4bool  )  [protected, pure virtual]

Implemented in G4ModelCmdInvert< M >, G4ModelCmdActive< M >, G4ModelCmdVerbose< M >, G4ModelCmdSetDrawLine< M >, G4ModelCmdSetLineVisible< M >, G4ModelCmdSetDrawAuxPts< M >, G4ModelCmdSetAuxPtsVisible< M >, G4ModelCmdSetDrawStepPts< M >, G4ModelCmdSetStepPtsVisible< M >, and G4ModelCmdDraw< M >.

Referenced by G4ModelCmdApplyBool< M >::SetNewValue().

template<typename M>
G4UIcmdWithABool* G4ModelCmdApplyBool< M >::Command (  )  [inline, protected]

Definition at line 278 of file G4ModelApplyCommandsT.hh.

Referenced by G4ModelCmdActive< M >::G4ModelCmdActive(), G4ModelCmdDraw< M >::G4ModelCmdDraw(), G4ModelCmdInvert< M >::G4ModelCmdInvert(), G4ModelCmdSetAuxPtsVisible< M >::G4ModelCmdSetAuxPtsVisible(), G4ModelCmdSetDrawAuxPts< M >::G4ModelCmdSetDrawAuxPts(), G4ModelCmdSetDrawLine< M >::G4ModelCmdSetDrawLine(), G4ModelCmdSetDrawStepPts< M >::G4ModelCmdSetDrawStepPts(), G4ModelCmdSetLineVisible< M >::G4ModelCmdSetLineVisible(), G4ModelCmdSetStepPtsVisible< M >::G4ModelCmdSetStepPtsVisible(), and G4ModelCmdVerbose< M >::G4ModelCmdVerbose().

00278 {return fpCmd;}

template<typename M>
void G4ModelCmdApplyBool< M >::SetNewValue ( G4UIcommand command,
G4String  newValue 
) [virtual]

Reimplemented from G4UImessenger.

Definition at line 303 of file G4ModelApplyCommandsT.hh.

References G4ModelCmdApplyBool< M >::Apply(), G4VVisManager::GetConcreteInstance(), and G4UIcmdWithABool::GetNewBoolValue().

00304 {
00305   Apply(fpCmd->GetNewBoolValue(newValue));
00306   G4VVisManager* visManager = G4VVisManager::GetConcreteInstance();
00307   if (visManager) visManager->NotifyHandlers();
00308 }


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