26#ifdef G4VIS_BUILD_OIX_DRIVER
40G4OpenInventorXtExaminerViewerMessenger*
41 G4OpenInventorXtExaminerViewerMessenger::fpInstance = 0;
43G4OpenInventorXtExaminerViewerMessenger*
44G4OpenInventorXtExaminerViewerMessenger::GetInstance()
46 if (!fpInstance) fpInstance =
new G4OpenInventorXtExaminerViewerMessenger;
51G4OpenInventorXtExaminerViewerMessenger::
52 G4OpenInventorXtExaminerViewerMessenger()
57 fpDirectory->SetGuidance(
"G4OpenInventorXtExaminerViewer commands.");
60 fpCommandPathLookahead->SetGuidance(
"Look-ahead for flying along a path.");
61 fpCommandPathLookahead->SetParameterName(
"npoints", omitable =
false);
62 fpCommandPathLookahead->SetRange(
"npoints > 0");
65G4OpenInventorXtExaminerViewerMessenger::
66 ~G4OpenInventorXtExaminerViewerMessenger()
68 delete fpCommandPathLookahead;
72void G4OpenInventorXtExaminerViewerMessenger::
81 "G4OpenInventorXtExaminerViewerMessenger::SetNewValue: "
82 "No current viewer." <<
G4endl <<
83 "Use /vis/open, or similar, to get one." <<
G4endl;
92 "G4OpenInventorXtExaminerViewerMessenger::SetNewValue:" <<
G4endl <<
93 "Current viewer is not of type OIXE." <<
G4endl <<
94 "Use /vis/viewer/select or /vis/open." <<
G4endl;
98 if (command == fpCommandPathLookahead) {
100 fpCommandPathLookahead->GetNewIntValue(newValue);
101 if (lookahead > 0) pViewer->pathLookahead = lookahead;
G4GLOB_DLL std::ostream G4cout
G4VViewer * GetCurrentViewer() const
static G4VisManager * GetInstance()