35#ifdef G4VIS_BUILD_DAWN_DRIVER
81G4FukuiRendererSceneHandler::G4FukuiRendererSceneHandler (G4FukuiRenderer& system,
85fPrimDest (system.GetPrimDest() ) ,
86FRflag_in_modeling (false) ,
87flag_saving_g4_prim (false) ,
88COMMAND_BUF_SIZE (G4FRClientServer::SEND_BUFMAX),
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 ) ;
124G4FukuiRendererSceneHandler::~G4FukuiRendererSceneHandler ()
126#if defined DEBUG_FR_SCENE
128 G4cout <<
"***** ~G4FukuiRendererSceneHandler" <<
G4endl;
133void 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
213G4int 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[]
G4DLLIMPORT std::ostream G4cout
static Verbosity GetVerbosity()