#include <G4ModelApplyCommandsT.hh>
Inheritance diagram for G4ModelCmdApplyBool< 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 |
G4UIcmdWithABool * | Command () |
Definition at line 264 of file G4ModelApplyCommandsT.hh.
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 }
G4ModelCmdApplyBool< M >::~G4ModelCmdApplyBool | ( | ) | [virtual] |
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().
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().
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 }