34#ifdef G4VIS_BUILD_DAWN_DRIVER
80G4FukuiRendererSceneHandler::G4FukuiRendererSceneHandler (G4FukuiRenderer& system,
84fPrimDest (system.GetPrimDest() ) ,
85FRflag_in_modeling (false) ,
86flag_saving_g4_prim (false) ,
87COMMAND_BUF_SIZE (G4FRClientServer::SEND_BUFMAX),
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 ) ;
123G4FukuiRendererSceneHandler::~G4FukuiRendererSceneHandler ()
125#if defined DEBUG_FR_SCENE
127 G4cout <<
"***** ~G4FukuiRendererSceneHandler" <<
G4endl;
132void 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
212G4int G4FukuiRendererSceneHandler::fSceneIdCount = 0;
const char FR_ENV_CULL_INVISIBLE_OBJECTS[]
const char FR_ENV_MULTI_WINDOW[]
const char FR_OPEN_DEVICE[]
const char FR_BEGIN_MODELING[]
const char FR_SET_CAMERA[]
G4GLOB_DLL std::ostream G4cout
static Verbosity GetVerbosity()
const char * name(G4int ptype)