Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
PerspectiveVisActionMessenger Class Reference

#include <Doxymodules_visualization.h>

Inheritance diagram for PerspectiveVisActionMessenger:
G4UImessenger

Public Member Functions

 PerspectiveVisActionMessenger (PerspectiveVisAction *)
 
 ~PerspectiveVisActionMessenger ()
 
virtual void SetNewValue (G4UIcommand *, G4String)
 

Private Attributes

PerspectiveVisActionfPVA
 
G4UIdirectoryfpDirectory
 
G4UIcmdWithAStringfpCommandOS
 
G4UIcmdWithAStringfpCommandScene
 

Detailed Description

Definition at line 19 of file Doxymodules_visualization.h.

Constructor & Destructor Documentation

◆ PerspectiveVisActionMessenger()

PerspectiveVisActionMessenger::PerspectiveVisActionMessenger ( PerspectiveVisAction PVA)

Definition at line 42 of file PerspectiveVisActionMessenger.cc.

43 :
45 fPVA(PVA),
46 fpDirectory(0),
47 fpCommandOS(0),
49{
50 G4bool omitable;
51
52 fpDirectory = new G4UIdirectory ("/perspectiveDemo/");
53 fpDirectory -> SetGuidance ("Perspective demonstration commands.");
54
55 fpCommandOS = new G4UIcmdWithAString ("/perspectiveDemo/optionString", this);
56 fpCommandOS -> SetGuidance
57 ("Option string - any combination of \"x\", \"y\", \"z\", \"a[ll]\".");
58 fpCommandOS -> SetGuidance
59 ("Controls direction of perspective lines.");
60 fpCommandOS -> SetParameterName ("option-string", omitable = true);
61 fpCommandOS -> SetDefaultValue("all");
62
63 fpCommandScene = new G4UIcmdWithAString ("/perspectiveDemo/scene", this);
64 fpCommandScene -> SetGuidance
65 ("Scene name.");
66 fpCommandScene -> SetParameterName ("scene-name", omitable = true);
67 fpCommandScene -> SetDefaultValue("room-and-chair");
68 fpCommandScene -> SetCandidates("room-and-chair");
69}

◆ ~PerspectiveVisActionMessenger()

PerspectiveVisActionMessenger::~PerspectiveVisActionMessenger ( )

Definition at line 73 of file PerspectiveVisActionMessenger.cc.

74{
75 delete fpCommandScene;
76 delete fpCommandOS;
77 delete fpDirectory;
78}

Member Function Documentation

◆ SetNewValue()

void PerspectiveVisActionMessenger::SetNewValue ( G4UIcommand command,
G4String  newValue 
)
virtual

Definition at line 82 of file PerspectiveVisActionMessenger.cc.

84{
85 if (command == fpCommandOS)
86 {
87 fPVA->SetOptionString(newValue);
88 }
89
90 else if (command == fpCommandScene)
91 {
92 fPVA->SetScene(newValue);
93 }
94
95 G4UImanager::GetUIpointer()->ApplyCommand("/vis/viewer/rebuild");
96}
void SetScene(const G4String &scene)
void SetOptionString(const G4String &optionString)

Member Data Documentation

◆ fPVA

PerspectiveVisAction* PerspectiveVisActionMessenger::fPVA
private

Definition at line 47 of file PerspectiveVisActionMessenger.hh.

◆ fpDirectory

G4UIdirectory* PerspectiveVisActionMessenger::fpDirectory
private

Definition at line 48 of file PerspectiveVisActionMessenger.hh.

◆ fpCommandOS

G4UIcmdWithAString* PerspectiveVisActionMessenger::fpCommandOS
private

Definition at line 49 of file PerspectiveVisActionMessenger.hh.

◆ fpCommandScene

G4UIcmdWithAString* PerspectiveVisActionMessenger::fpCommandScene
private

Definition at line 50 of file PerspectiveVisActionMessenger.hh.


The documentation for this class was generated from the following files:

Applications | User Support | Publications | Collaboration