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 std::strncpy( kG4GddViewer, env, std::strlen(env));
76 if ( !std::strcmp( kG4GddViewer,
"NONE" ) ) {
79 kG4GddViewerInvocation[0] =
'\0';
82 std::strncpy( kG4GddViewerInvocation, kG4GddViewer, std::strlen(kG4GddViewer));
83 std::strncat( kG4GddViewerInvocation,
" ", 1);
85 std::strncat( kG4GddViewerInvocation, gddfname, std::strlen(gddfname) );
99 G4cout <<
"***** G4GMocrenFileViewer::SetView(): No effects" <<
G4endl;
112 G4cout <<
"***** G4GMocrenFileViewer::ClearView (): No effects " <<
G4endl;
118 kSceneHandler.kFlagInModeling =
false;
129 G4cout <<
"***** G4GMocrenFileViewer::DrawView () " <<
G4endl;
149 G4cout <<
"***** G4GMocrenFileViewer::ShowView () " <<
G4endl;
162 if ( !strcmp( kG4GddViewer,
"NONE" ) ) {
164 kG4GddViewerInvocation[0] =
'\0';
168 std::strncpy( kG4GddViewerInvocation, kG4GddViewer, std::strlen(kG4GddViewer));
169 std::strncat( kG4GddViewerInvocation,
" ", 1);
171 std::strncat( kG4GddViewerInvocation, gddfname, std::strlen(gddfname));
G4GMocrenFileViewer(G4GMocrenFileSceneHandler &scene, G4GMocrenMessenger &messenger, const G4String &name="")
G4GLOB_DLL std::ostream G4cout
const char * GetGddFileName()
static Verbosity GetVerbosity()
virtual ~G4GMocrenFileViewer()