64 :
G4VViewer (sceneHandler, sceneHandler.IncrementViewCount (), name),
65 kSceneHandler (sceneHandler),
66 kMessenger(messenger)
67{
68
69 std::strncpy( kG4GddViewer, "gMocren", 7);
70 if( getenv( "G4GMocrenFile_VIEWER" ) != NULL ) {
71 char * env = getenv( "G4GMocrenFile_VIEWER" );
72 std::strncpy( kG4GddViewer, env, std::strlen(env));
73
74 }
75
76
77 if ( !std::strcmp( kG4GddViewer, "NONE" ) ) {
78
79
80 kG4GddViewerInvocation[0] = '\0';
81 } else {
82
83 std::strncpy( kG4GddViewerInvocation, kG4GddViewer, std::strlen(kG4GddViewer));
84 std::strncat( kG4GddViewerInvocation, " ", 1);
86 std::strncat( kG4GddViewerInvocation, gddfname, std::strlen(gddfname) );
87 }
88
89}
const char * GetGddFileName()