34 #ifdef G4VIS_BUILD_DAWN_DRIVER
80 G4FukuiRendererSceneHandler::G4FukuiRendererSceneHandler (G4FukuiRenderer&
system,
84 fPrimDest (system.GetPrimDest() ) ,
85 FRflag_in_modeling (
false) ,
86 flag_saving_g4_prim (
false) ,
87 COMMAND_BUF_SIZE (G4FRClientServer::SEND_BUFMAX),
88 fPrec (9), fPrec2 (16)
92 if( !fSystem.IsConnected() )
94 if ( std::getenv( FR_ENV_NAMED_PIPE_CONNECTION ) != NULL &&\
95 strcmp( std::getenv( FR_ENV_NAMED_PIPE_CONNECTION ),
"0" ) )
99 fSystem.UseBSDUnixDomainAuto();
100 }
else if( std::getenv( FR_ENV_SERVER_HOST_NAME ) == NULL )
104 fSystem.UseInetDomainAuto();
107 fSystem.UseInetDomain();
112 if( std::getenv(
"G4DAWN_PRECISION" ) != NULL ) {
113 sscanf( std::getenv(
"G4DAWN_PRECISION"),
"%d", &fPrec ) ;
123 G4FukuiRendererSceneHandler::~G4FukuiRendererSceneHandler ()
125 #if defined DEBUG_FR_SCENE
127 G4cout <<
"***** ~G4FukuiRendererSceneHandler" <<
G4endl;
132 void G4FukuiRendererSceneHandler::FRBeginModeling(
void )
134 if( !FRIsInModeling() )
136 #if defined DEBUG_FR_SCENE
138 G4cout <<
"***** G4FukuiRendererSceneHandler::FRBeginModeling (called & started)" <<
G4endl;
155 ((G4FukuiRendererViewer*)fpViewer)->SendDevice( G4FukuiRendererViewer::FRDEV_XWIN ) ;
157 ((G4FukuiRendererViewer*)fpViewer)->SendDevice( G4FukuiRendererViewer::FRDEV_PS ) ;
163 ((G4FukuiRendererViewer*)fpViewer)->SendDrawingStyle() ;
169 ((G4FukuiRendererViewer*)fpViewer)->SendViewParameters();
173 #if defined DEBUG_FR_SCENE
175 G4cout <<
"***** (!SetCamera in FRBeginModeling())" <<
G4endl;
181 #if defined DEBUG_FR_SCENE
183 G4cout <<
"***** (!OpenDevice in FRBeginModeling())" <<
G4endl;
189 #if defined DEBUG_FR_SCENE
191 G4cout <<
"***** (!BeginModeling in FRBeginModeling())" <<
G4endl;
203 #define G4FRSCENEHANDLER G4FukuiRendererSceneHandler
204 #include "G4FRSceneFunc.icc"
205 #undef G4FRSCENEHANDLER
212 G4int G4FukuiRendererSceneHandler::fSceneIdCount = 0;
214 #endif // G4VIS_BUILD_DAWN_DRIVER