35 #define G4GMocrenFile_STRUCTURE_PRIORITY 1.
64 :
G4VViewer (sceneHandler, sceneHandler.IncrementViewCount (), name),
65 kSceneHandler (sceneHandler)
68 std::strncpy( kG4GddViewer,
"gMocren", 8);
69 if( getenv(
"G4GMocrenFile_VIEWER" ) != NULL ) {
70 char * env = getenv(
"G4GMocrenFile_VIEWER" );
71 int len = std::strlen(env);
73 G4Exception(
"G4GMocrenFileViewer::G4GMocrenFileViewer(*)",
75 "Invalid length of string set in G4GMocrenFile_VIEWER");
77 std::strncpy( kG4GddViewer, env, len);
82 if ( !std::strcmp( kG4GddViewer,
"NONE" ) ) {
85 kG4GddViewerInvocation[0] =
'\0';
88 std::strncpy( kG4GddViewerInvocation, kG4GddViewer, std::strlen(kG4GddViewer));
89 std::strncat( kG4GddViewerInvocation,
" ", 1);
91 int len = std::strlen(gddfname);
93 G4Exception(
"G4GMocrenFileViewer::G4GMocrenFileViewer(*)",
95 "Invalid length of the GDD file name");
97 std::strncat( kG4GddViewerInvocation, gddfname, len );
111 G4cout <<
"***** G4GMocrenFileViewer::SetView(): No effects" <<
G4endl;
124 G4cout <<
"***** G4GMocrenFileViewer::ClearView (): No effects " <<
G4endl;
130 kSceneHandler.kFlagInModeling =
false;
141 G4cout <<
"***** G4GMocrenFileViewer::DrawView () " <<
G4endl;
161 G4cout <<
"***** G4GMocrenFileViewer::ShowView () " <<
G4endl;
174 if ( !strcmp( kG4GddViewer,
"NONE" ) ) {
176 kG4GddViewerInvocation[0] =
'\0';
180 std::strncpy( kG4GddViewerInvocation, kG4GddViewer, std::strlen(kG4GddViewer));
181 std::strncat( kG4GddViewerInvocation,
" ", 1);
183 int len = std::strlen(gddfname);
187 "Invalid length of the GDD file name");
189 std::strncat( kG4GddViewerInvocation, gddfname, len);
G4GMocrenFileViewer(G4GMocrenFileSceneHandler &scene, G4GMocrenMessenger &messenger, const G4String &name="")
G4GLOB_DLL std::ostream G4cout
const char * GetGddFileName()
void G4Exception(const char *originOfException, const char *exceptionCode, G4ExceptionSeverity severity, const char *comments)
static Verbosity GetVerbosity()
virtual ~G4GMocrenFileViewer()