35 #ifdef G4VIS_BUILD_DAWN_DRIVER
81 G4FukuiRendererSceneHandler::G4FukuiRendererSceneHandler (G4FukuiRenderer&
system,
85 fPrimDest (system.GetPrimDest() ) ,
86 FRflag_in_modeling (false) ,
87 flag_saving_g4_prim (false) ,
88 COMMAND_BUF_SIZE (G4FRClientServer::SEND_BUFMAX),
89 fPrec (9), fPrec2 (16)
93 if( !fSystem.IsConnected() )
95 if ( getenv( FR_ENV_NAMED_PIPE_CONNECTION ) != NULL &&\
96 strcmp( getenv( FR_ENV_NAMED_PIPE_CONNECTION ),
"0" ) )
100 fSystem.UseBSDUnixDomainAuto();
101 }
else if( getenv( FR_ENV_SERVER_HOST_NAME ) == NULL )
105 fSystem.UseInetDomainAuto();
108 fSystem.UseInetDomain();
113 if( getenv(
"G4DAWN_PRECISION" ) != NULL ) {
114 sscanf( getenv(
"G4DAWN_PRECISION"),
"%d", &fPrec ) ;
124 G4FukuiRendererSceneHandler::~G4FukuiRendererSceneHandler ()
126 #if defined DEBUG_FR_SCENE
128 G4cout <<
"***** ~G4FukuiRendererSceneHandler" <<
G4endl;
133 void G4FukuiRendererSceneHandler::FRBeginModeling(
void )
135 if( !FRIsInModeling() )
137 #if defined DEBUG_FR_SCENE
139 G4cout <<
"***** G4FukuiRendererSceneHandler::FRBeginModeling (called & started)" <<
G4endl;
156 ((G4FukuiRendererViewer*)fpViewer)->SendDevice( G4FukuiRendererViewer::FRDEV_XWIN ) ;
158 ((G4FukuiRendererViewer*)fpViewer)->SendDevice( G4FukuiRendererViewer::FRDEV_PS ) ;
164 ((G4FukuiRendererViewer*)fpViewer)->SendDrawingStyle() ;
170 ((G4FukuiRendererViewer*)fpViewer)->SendViewParameters();
174 #if defined DEBUG_FR_SCENE
176 G4cout <<
"***** (!SetCamera in FRBeginModeling())" <<
G4endl;
182 #if defined DEBUG_FR_SCENE
184 G4cout <<
"***** (!OpenDevice in FRBeginModeling())" <<
G4endl;
190 #if defined DEBUG_FR_SCENE
192 G4cout <<
"***** (!BeginModeling in FRBeginModeling())" <<
G4endl;
204 #define G4FRSCENEHANDLER G4FukuiRendererSceneHandler
205 #include "G4FRSceneFunc.icc"
206 #undef G4FRSCENEHANDLER
213 G4int G4FukuiRendererSceneHandler::fSceneIdCount = 0;
215 #endif // G4VIS_BUILD_DAWN_DRIVER
system("rm -rf microbeam.root")
const char FR_ENV_CULL_INVISIBLE_OBJECTS[]
const char FR_BEGIN_MODELING[]
const char FR_SET_CAMERA[]
static Verbosity GetVerbosity()
G4GLOB_DLL std::ostream G4cout
const char FR_ENV_MULTI_WINDOW[]
const char FR_OPEN_DEVICE[]