Import Geant4 1.1.0 source tree

This commit is contained in:
Gabriele Cosmo
2016-06-08 15:34:16 +02:00
parent ca1c8cb059
commit 103bda00c8
2654 changed files with 29719 additions and 20203 deletions
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4DAWNFILE.hh,v 1.4.8.1 1999/12/07 20:53:08 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4DAWNFILE.hh,v 1.5 1999/12/15 14:54:00 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// Satoshi TANAKA
// DAWNFILE driver factory.
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4DAWNFILESceneHandler.hh,v 1.3.4.1 1999/12/07 20:53:08 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4DAWNFILESceneHandler.hh,v 1.5 1999/12/16 17:24:48 johna Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// Satoshi TANAKA
@@ -64,6 +64,12 @@ public:
void AddThis ( const G4Sphere& sphere );
void AddThis ( const G4Para& para );
void AddThis ( const G4Torus& torus );
void AddThis ( const G4Polycone& polycone ) {
G4VSceneHandler::AddThis (polycone);
}
void AddThis ( const G4Polyhedra& polyhedra) {
G4VSceneHandler::AddThis (polyhedra);
}
void AddThis ( const G4VSolid& solid );
void ClearStore (){}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4DAWNFILEViewer.hh,v 1.4.4.1 1999/12/07 20:53:08 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4DAWNFILEViewer.hh,v 1.5 1999/12/15 14:54:00 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// Satoshi TANAKA
// DAWNFILE viewer - opens window, hard copy, etc.
@@ -44,7 +44,7 @@ public:
const char* GetG4PrimViewer () { return fG4PrimViewer ;}
const char* GetG4PrimViewerInvocation() { return fG4PrimViewerInvocation ;}
const char* GetPSViewer () { return fPSViewer ;}
void SendDrawingStyleToDAWNGUI( ostream& out ) ;
void SendDrawingStyleToDAWNGUI( G4std::ostream& out ) ;
private:
G4DAWNFILESceneHandler& fSceneHandler; // Reference to Graphics Scene for this view.
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4FRClientServer.hh,v 1.2.8.1 1999/12/07 20:53:09 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4FRClientServer.hh,v 1.3 1999/12/15 14:54:00 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// Satoshi TANAKA, Wed Jul 3 14:13:52 JST 1996
////////////////////////////////
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4FRConst.hh,v 1.3.4.1 1999/12/07 20:53:09 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4FRConst.hh,v 1.4 1999/12/15 14:54:00 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// Satoshi TANAKA, Tue Jul 2 15:30:49 JST 1996
///////////////////////////////////
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4FRFeatures.hh,v 1.2.8.1 1999/12/07 20:53:09 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4FRFeatures.hh,v 1.3 1999/12/15 14:54:00 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
#if !defined G4_FR_FEATURES_HH
#define G4_FR_FEATURES_HH
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4FRSocketConfig.hh,v 1.2.8.1 1999/12/07 20:53:09 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4FRSocketConfig.hh,v 1.3 1999/12/15 14:54:00 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
////////////////////////////////
///// G4FRSocketConfig.h /////
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4FRSocketMacro.hh,v 1.2.8.1 1999/12/07 20:53:09 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4FRSocketMacro.hh,v 1.3 1999/12/15 14:54:00 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
///////////////////////////////
///// G4FRSocketMacro.hh /////
@@ -5,10 +5,10 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4FRofstream.hh,v 1.2.8.1 1999/12/07 20:53:10 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4FRofstream.hh,v 1.3 1999/12/15 14:54:01 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
#include<fstream.h>
#include"g4std/fstream"
#if !defined G4_FR_OFSTREAM_HH
#define G4_FR_OFSTREAM_HH
@@ -49,7 +49,7 @@ class G4FRofstream {
protected:
G4bool flag_file_open ;
ofstream fout ;
G4std::ofstream fout ;
} ;
@@ -73,7 +73,7 @@ inline void G4FRofstream::Close ()
inline void G4FRofstream::SendLine ( const char* message )
{
if ( IsOpen() ) {
fout << message << endl;
fout << message << G4endl;
}
}
@@ -82,7 +82,7 @@ inline G4bool G4FRofstream::DoesFileExist ( const char* filename )
{
G4bool status = false ;
ifstream fout_tmp( filename ) ;
G4std::ifstream fout_tmp( filename ) ;
if( fout_tmp ) { status = true ; }
fout_tmp.close();
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4FukuiRenderer.hh,v 1.4.8.1 1999/12/07 20:53:10 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4FukuiRenderer.hh,v 1.5 1999/12/15 14:54:01 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Satoshi TANAKA
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4FukuiRendererSceneHandler.hh,v 1.3.4.1 1999/12/07 20:53:10 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4FukuiRendererSceneHandler.hh,v 1.5 1999/12/16 17:24:49 johna Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Satoshi TANAKA, Fri Jun 28 11:19:19 JST 1996
@@ -63,6 +63,12 @@ public:
void AddThis ( const G4Sphere& sphere );
void AddThis ( const G4Para& para );
void AddThis ( const G4Torus& torus );
void AddThis ( const G4Polycone& polycone) {
G4VSceneHandler::AddThis (polycone);
}
void AddThis ( const G4Polyhedra& polyhedra) {
G4VSceneHandler::AddThis (polyhedra);
}
void AddThis ( const G4VSolid& solid );
void ClearStore (){}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4FukuiRendererViewer.hh,v 1.4.4.1 1999/12/07 20:53:10 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4FukuiRendererViewer.hh,v 1.5 1999/12/15 14:54:01 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Satoshi TANAKA, Fri Jun 28 12:10:14 JST 1996
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4DAWNFILE.cc,v 1.4.4.1 1999/12/07 20:53:10 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4DAWNFILE.cc,v 1.5 1999/12/15 14:54:01 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// Satoshi TANAKA
// DAWNFILE factory.
@@ -49,7 +49,7 @@ G4VSceneHandler* G4DAWNFILE::CreateSceneHandler (const G4String& name)
G4VSceneHandler* p = new G4DAWNFILESceneHandler (*this, name);
G4cout << G4DAWNFILESceneHandler::GetSceneCount ()
<< ' ' << fName << " scenes extanct." << endl;
<< ' ' << fName << " scenes extanct." << G4endl;
return p;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4DAWNFILESceneHandler.cc,v 1.2.4.1 1999/12/07 20:53:10 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4DAWNFILESceneHandler.cc,v 1.3 1999/12/15 14:54:01 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// Satoshi TANAKA
// DAWNFILE scene.
@@ -22,7 +22,7 @@
// #define DEBUG_FR_SCENE
//----- header files
#include <fstream.h>
#include "g4std/fstream"
#include <stdlib.h>
#include <string.h>
#include "globals.hh"
@@ -95,7 +95,7 @@ COMMAND_BUF_SIZE (G4FRofstream::SEND_BUFMAX)
G4DAWNFILESceneHandler::~G4DAWNFILESceneHandler ()
{
#if defined DEBUG_FR_SCENE
G4cerr << "***** ~G4DAWNFILESceneHandler" << endl;
G4cerr << "***** ~G4DAWNFILESceneHandler" << G4endl;
#endif
fSceneCount--;
ClearStore (); // clear current scene
@@ -119,13 +119,13 @@ void G4DAWNFILESceneHandler::SetG4PrimFileName()
// Message
if( fMaxFileNum > 1 && i == MAX_FILE_INDEX ) {
G4cerr << "===========================================" << endl;
G4cerr << "WARNING MESSAGE from DAWNFILE driver: " << endl;
G4cerr << " This file name is the final one in the " << endl;
G4cerr << " automatic updation of the output file name." << endl;
G4cerr << " You may overwrite an existing file of " << endl;
G4cerr << " the same name. " << endl;
G4cerr << "===========================================" << endl;
G4cerr << "===========================================" << G4endl;
G4cerr << "WARNING MESSAGE from DAWNFILE driver: " << G4endl;
G4cerr << " This file name is the final one in the " << G4endl;
G4cerr << " automatic updation of the output file name." << G4endl;
G4cerr << " You may overwrite an existing file of " << G4endl;
G4cerr << " the same name. " << G4endl;
G4cerr << "===========================================" << G4endl;
}
// re-determine file to G4DAWNFILE_DEST_DIR/g4_i.prim for i>0
@@ -134,7 +134,7 @@ void G4DAWNFILESceneHandler::SetG4PrimFileName()
}
// check validity of the file name
ifstream fin ;
G4std::ifstream fin ;
fin.open(fG4PrimFileName) ;
if(!fin) {
// new file
@@ -147,11 +147,11 @@ void G4DAWNFILESceneHandler::SetG4PrimFileName()
} // for
G4cerr << "===========================================" << endl;
G4cerr << "Output file: " << fG4PrimFileName << endl;
G4cerr << "Muximal number of file in the destination directory: " << fMaxFileNum << endl;
G4cerr << " (Customizable as: setenv G4DAWNFILE_MAX_FILE_NUM number) " << endl;
G4cerr << "===========================================" << endl;
G4cerr << "===========================================" << G4endl;
G4cerr << "Output file: " << fG4PrimFileName << G4endl;
G4cerr << "Muximal number of file in the destination directory: " << fMaxFileNum << G4endl;
G4cerr << " (Customizable as: setenv G4DAWNFILE_MAX_FILE_NUM number) " << G4endl;
G4cerr << "===========================================" << G4endl;
} // G4DAWNFILESceneHandler::SetG4PrimFileName()
@@ -167,7 +167,7 @@ void G4DAWNFILESceneHandler::BeginSavingG4Prim( void )
{
#if defined DEBUG_FR_SCENE
G4cerr << "***** (started) " ;
G4cerr << "(open g4.prim, ##)" << endl;
G4cerr << "(open g4.prim, ##)" << G4endl;
#endif
SetG4PrimFileName() ; // returned to fG4PrimFileName
fPrimDest.Open(fG4PrimFileName) ;
@@ -186,7 +186,7 @@ void G4DAWNFILESceneHandler::EndSavingG4Prim ( void )
if( IsSavingG4Prim() )
{
#if defined DEBUG_FR_SCENE
G4cerr << "***** (started) (close g4.prim)" << endl;
G4cerr << "***** (started) (close g4.prim)" << G4endl;
#endif
fPrimDest.Close() ;
flag_saving_g4_prim = false ;
@@ -200,7 +200,7 @@ void G4DAWNFILESceneHandler::FRBeginModeling( void )
if( !FRIsInModeling() )
{
#if defined DEBUG_FR_SCENE
G4cerr << "***** G4DAWNFILESceneHandler::FRBeginModeling (called & started)" << endl;
G4cerr << "***** G4DAWNFILESceneHandler::FRBeginModeling (called & started)" << G4endl;
#endif
//----- Send saving command and heading comment
@@ -211,19 +211,19 @@ void G4DAWNFILESceneHandler::FRBeginModeling( void )
//----- send SET_CAMERA command
#if defined DEBUG_FR_SCENE
G4cerr << "***** (!SetCamera in FRBeginModeling())" << endl;
G4cerr << "***** (!SetCamera in FRBeginModeling())" << G4endl;
#endif
SendStr( FR_SET_CAMERA );
//----- open device
#if defined DEBUG_FR_SCENE
G4cerr << "***** (!OpenDevice in FRBeginModeling())" << endl;
G4cerr << "***** (!OpenDevice in FRBeginModeling())" << G4endl;
#endif
SendStr( FR_OPEN_DEVICE );
//----- begin sending primitives
#if defined DEBUG_FR_SCENE
G4cerr << "***** (!BeginModeling in FRBeginModeling())" << endl;
G4cerr << "***** (!BeginModeling in FRBeginModeling())" << G4endl;
#endif
SendStr( FR_BEGIN_MODELING ); FRflag_in_modeling = true ;
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4DAWNFILEViewer.cc,v 1.5.4.1 1999/12/07 20:53:10 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4DAWNFILEViewer.cc,v 1.6 1999/12/15 14:54:01 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// Satoshi TANAKA
// DAWNFILE view - opens window, hard copy, etc.
@@ -81,7 +81,7 @@ G4DAWNFILEViewer::~G4DAWNFILEViewer ()
void G4DAWNFILEViewer::SetView ()
{
#if defined DEBUG_FR_VIEW
G4cerr << "***** G4DAWNFILEViewer::SetView(): No effects" << endl;
G4cerr << "***** G4DAWNFILEViewer::SetView(): No effects" << G4endl;
#endif
// Do nothing, since DAWN is running as a different process.
// SendViewParameters () will do this job instead.
@@ -93,7 +93,7 @@ void
G4DAWNFILEViewer::ClearView( void )
{
#if defined DEBUG_FR_VIEW
G4cerr << "***** G4DAWNFILEViewer::ClearView (): No effects " << endl;
G4cerr << "***** G4DAWNFILEViewer::ClearView (): No effects " << G4endl;
#endif
}
@@ -103,7 +103,7 @@ G4DAWNFILEViewer::ClearView( void )
void G4DAWNFILEViewer::DrawView ()
{
#if defined DEBUG_FR_VIEW
G4cerr << "***** G4DAWNFILEViewer::DrawView () " << endl;
G4cerr << "***** G4DAWNFILEViewer::DrawView () " << G4endl;
#endif
//-----
fSceneHandler.FRBeginModeling() ;
@@ -122,7 +122,7 @@ void G4DAWNFILEViewer::DrawView ()
void G4DAWNFILEViewer::ShowView( void )
{
#if defined DEBUG_FR_VIEW
G4cerr << "***** G4DAWNFILEViewer::ShowView () " << endl;
G4cerr << "***** G4DAWNFILEViewer::ShowView () " << G4endl;
#endif
if( fSceneHandler.FRIsInModeling() )
@@ -151,19 +151,19 @@ void G4DAWNFILEViewer::ShowView( void )
if( false == G4FRofstream::DoesFileExist( fSceneHandler.GetG4PrimFileName() ) )
{
G4cout << "ERROR: Failed to generate file ";
G4cout << fSceneHandler.GetG4PrimFileName() << endl;
G4cout << fSceneHandler.GetG4PrimFileName() << G4endl;
} else if( strcmp( GetG4PrimViewerInvocation(), "" ) )
{
G4cout << "File " << fSceneHandler.GetG4PrimFileName() ;
G4cout << " is generated." << endl;
G4cout << GetG4PrimViewerInvocation() << endl;
G4cout << " is generated." << G4endl;
G4cout << GetG4PrimViewerInvocation() << G4endl;
system( GetG4PrimViewerInvocation() );
} else { // no view, i.e., only file generation
G4cout << "File " << fSceneHandler.GetG4PrimFileName() ;
G4cout << " is generated." << endl;
G4cout << "No viewer is invoked." << endl;
G4cout << " is generated." << G4endl;
G4cout << "No viewer is invoked." << G4endl;
}
}
@@ -171,12 +171,12 @@ void G4DAWNFILEViewer::ShowView( void )
} // G4DAWNFILEViewer::ShowView()
//----- G4DAWNFILEViewer::SendDrawingStyleToDAWNGUI( ostream& out )
void G4DAWNFILEViewer::SendDrawingStyleToDAWNGUI( ostream& out )
//----- G4DAWNFILEViewer::SendDrawingStyleToDAWNGUI( G4std::ostream& out )
void G4DAWNFILEViewer::SendDrawingStyleToDAWNGUI( G4std::ostream& out )
{
///////////////////////
//#if defined DEBUG_FR_VIEW
// G4cerr << "***** G4DAWNFILEViewer::SendDrawingStyleToDAWNGUI()" << endl;
// G4cerr << "***** G4DAWNFILEViewer::SendDrawingStyleToDAWNGUI()" << G4endl;
//#endif
//////////////////////
@@ -188,17 +188,17 @@ void G4DAWNFILEViewer::SendDrawingStyleToDAWNGUI( ostream& out )
switch( style )
{
case G4ViewParameters::wireframe:
out << FR_WIREFRAME << endl;
out << FR_WIREFRAME << G4endl;
break;
case G4ViewParameters::hlr:
out << FR_HID2 << endl; // LINE
out << FR_HID2 << G4endl; // LINE
break;
case G4ViewParameters::hsr:
case G4ViewParameters::hlhsr:
out << FR_HID << endl; // SURFACE
out << FR_HID << G4endl; // SURFACE
break;
default:
out << FR_WIREFRAME << endl;
out << FR_WIREFRAME << G4endl;
break;
}
@@ -215,7 +215,7 @@ void G4DAWNFILEViewer::SendViewParameters ()
#if defined DEBUG_FR_VIEW
G4cerr << "***** G4DAWNFILEViewer::SendViewParameters() ";
G4cerr << "(GUI parameters)" << endl;
G4cerr << "(GUI parameters)" << G4endl;
#endif
//----- Magic number to decide camera distance automatically
@@ -243,8 +243,8 @@ void G4DAWNFILEViewer::SendViewParameters ()
}
if ( camera_distance < radius ) {
G4cerr << "WARNING from DAWNFILE driver:" << endl;
G4cerr << " Camera cannot enter inside objects" << endl;
G4cerr << "WARNING from DAWNFILE driver:" << G4endl;
G4cerr << " Camera cannot enter inside objects" << G4endl;
camera_distance = radius ;
}
@@ -257,27 +257,27 @@ void G4DAWNFILEViewer::SendViewParameters ()
//########### Generation of the file .DAWN.history for DAWN GUI
//-----
ofstream gui_out (".DAWN_1.history") ;
G4std::ofstream gui_out (".DAWN_1.history") ;
// ######### P1
//----- camera position
gui_out << camera_distance << endl;
gui_out << v_angle << endl ;
gui_out << h_angle << endl ;
gui_out << "0" << endl ; // auto target
gui_out << camera_distance << G4endl;
gui_out << v_angle << G4endl ;
gui_out << h_angle << G4endl ;
gui_out << "0" << G4endl ; // auto target
//----- target point
const G4Point3D& target_point = fVP.GetCurrentTargetPoint();
gui_out << target_point.x() << endl ;
gui_out << target_point.y() << endl ;
gui_out << target_point.z() << endl ;
gui_out << target_point.x() << G4endl ;
gui_out << target_point.y() << G4endl ;
gui_out << target_point.z() << G4endl ;
//----- Magnification
const G4double zoom_factor = fVP.GetZoomFactor();
if( half_view_angle < MIN_HALF_ANGLE ) {
gui_out << zoom_factor << endl;
gui_out << zoom_factor << G4endl;
} else {
const G4double FR_HALF_SCREEN_SIZE = 0.5 ;
@@ -285,33 +285,33 @@ void G4DAWNFILEViewer::SendViewParameters ()
= FR_HALF_SCREEN_SIZE / tan( half_view_angle );
focal_distance *= zoom_factor ;
gui_out << "fd" << focal_distance << endl;
gui_out << "fd" << focal_distance << G4endl;
}
SendDrawingStyleToDAWNGUI( gui_out ) ; // gui_out, viewing mode
gui_out << "0.001" << endl ; // 3D Tolerance
gui_out << "0" << endl ; // not display parameters
gui_out << "0.001" << G4endl ; // 3D Tolerance
gui_out << "0" << G4endl ; // not display parameters
// ######### P2
gui_out << 1 << endl; // Source light
gui_out << 1 << endl;
gui_out << 1 << endl;
gui_out << 0.5 << endl; // Ambient light
gui_out << 0.5 << endl;
gui_out << 0.5 << endl;
gui_out << 19.0 << endl; // Light direction (Polar)
gui_out << 71.0 << endl; // Light direction (Azimuthal)
gui_out << 1 << G4endl; // Source light
gui_out << 1 << G4endl;
gui_out << 1 << G4endl;
gui_out << 0.5 << G4endl; // Ambient light
gui_out << 0.5 << G4endl;
gui_out << 0.5 << G4endl;
gui_out << 19.0 << G4endl; // Light direction (Polar)
gui_out << 71.0 << G4endl; // Light direction (Azimuthal)
// ######### P3
gui_out << 0.1 << endl; // Real edge width
gui_out << 0.1 << endl; // outline width
gui_out << 0.1 << endl; // aux edge width
gui_out << 3 << endl; // aux edge style
gui_out << 70.0<< endl; // aux-edge threshold angle
gui_out << 0.1 << endl; // line width
gui_out << 0 << endl; // haloing
gui_out << 1 << endl; // Dashed edged for back faces
gui_out << 0.1 << G4endl; // Real edge width
gui_out << 0.1 << G4endl; // outline width
gui_out << 0.1 << G4endl; // aux edge width
gui_out << 3 << G4endl; // aux edge style
gui_out << 70.0<< G4endl; // aux-edge threshold angle
gui_out << 0.1 << G4endl; // line width
gui_out << 0 << G4endl; // haloing
gui_out << 1 << G4endl; // Dashed edged for back faces
//######### P4
//----- drawing device
@@ -321,14 +321,14 @@ void G4DAWNFILEViewer::SendViewParameters ()
( ( getenv( FR_ENV_MULTI_WINDOW2 ) != NULL ) && \
( strcmp( getenv( FR_ENV_MULTI_WINDOW2 ),"0" ) ) ) )
{
gui_out << 2 << endl; // OpenWindow
gui_out << 2 << G4endl; // OpenWindow
} else {
gui_out << 1 << endl; // Invoke PS viewer
gui_out << 1 << G4endl; // Invoke PS viewer
}
gui_out << GetPSViewer() << endl; // PS viewer
gui_out << 0 << endl ; // Do not add showpage
gui_out << 0 << endl ; // Non-append mode
gui_out << GetPSViewer() << G4endl; // PS viewer
gui_out << 0 << G4endl ; // Do not add showpage
gui_out << 0 << G4endl ; // Non-append mode
gui_out.close();
//########### end of generating file .DAWN.history
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4FRClientServer.cc,v 1.2.8.1 1999/12/07 20:53:11 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4FRClientServer.cc,v 1.3 1999/12/15 14:54:01 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
// Satoshi TANAKA, Wed Jul 3 14:14:29 JST 1996
////////////////////////////////
@@ -101,7 +101,7 @@ void G4FRClientServer::Receive()
}
#if defined DEBUG_CLIENT_SERVER
G4cerr << ">>>>> receivedMessage = " << fReceivedMessage << endl;
G4cerr << ">>>>> receivedMessage = " << fReceivedMessage << G4endl;
#endif
}
@@ -132,7 +132,7 @@ void G4FRClientServer::Send()
}
#if defined DEBUG_CLIENT_SERVER
G4cerr << "<<<<< SentMessage = " << fSendingMessage << endl;
G4cerr << "<<<<< SentMessage = " << fSendingMessage << G4endl;
#endif
} // G4FRClientServer::Send()
@@ -253,7 +253,7 @@ int G4FRClientServer::ConnectINET()
// #if defined DEBUG_CLIENT_SERVER
G4cerr << "***** Trying connection to " << server_hostname << endl;
G4cerr << "***** Trying connection to " << server_hostname << G4endl;
// #endif
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4FRSceneFunc.icc,v 1.9.2.1 1999/12/07 20:53:11 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4FRSceneFunc.icc,v 1.10 1999/12/15 14:54:01 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
@@ -113,8 +113,8 @@ void G4FRSCENE::AddPrimitive ( const G4Text& text )
//----- create buffer and copy the string there
int MAX_STR_LENGTH = COMMAND_BUF_SIZE - 100 ;
if ( MAX_STR_LENGTH <= 0 ) {
G4cerr << "ERROR (FukuiRenderer) : Not enough buffer size for data transferring." << endl;
G4cerr << " G4Text Visualization is aborted" << endl;
G4cerr << "ERROR (FukuiRenderer) : Not enough buffer size for data transferring." << G4endl;
G4cerr << " G4Text Visualization is aborted" << G4endl;
return ;
}
char* buf = new char [ (MAX_STR_LENGTH + 1) ] ;
@@ -301,7 +301,7 @@ void G4FRSCENE::SendNdiv ( void )
{
//////////////////////////////////////////////////
//#if defined DEBUG_FR_SCENE
// G4cerr << "***** SendNdiv() (/Ndiv)" << endl;
// G4cerr << "***** SendNdiv() (/Ndiv)" << G4endl;
//#endif
//////////////////////////////////////////////////
@@ -315,7 +315,7 @@ void G4FRSCENE::SendNdiv ( void )
#if defined DEBUG_FR_SCENE
G4cerr << "WARNING: GetNoOfSides() failed. " ;
G4cerr << "The default value " << num_division ;
G4cerr << " is assigned." << endl;
G4cerr << " is assigned." << G4endl;
#endif
}
@@ -324,7 +324,7 @@ void G4FRSCENE::SendNdiv ( void )
//////////////////////////////////////////////////
//#if defined DEBUG_FR_SCENE
// G4cerr << "Ndiv = " << num_division << endl;
// G4cerr << "Ndiv = " << num_division << G4endl;
//#endif
//////////////////////////////////////////////////
@@ -339,13 +339,13 @@ void G4FRSCENE::FREndModeling ()
{
//-----
#if defined DEBUG_FR_SCENE
G4cerr << "***** FREndModeling (called)" << endl;
G4cerr << "***** FREndModeling (called)" << G4endl;
#endif
if( FRIsInModeling() ) {
#if defined DEBUG_FR_SCENE
G4cerr << "***** FREndModeling (started) " ;
G4cerr << "(/EndModeling, /DrawAll, /CloseDevice)" << endl;
G4cerr << "(/EndModeling, /DrawAll, /CloseDevice)" << G4endl;
#endif
SendStr( "#--------------------" );
@@ -653,9 +653,9 @@ void G4FRSCENE::AddThis (const G4Para& para)
//----- parameters preprocessing
G4double cosTheta = para.GetSymAxis().z() ;
if( cosTheta < epsilon ) {
G4cerr << "WARNING from FukuiRenderer (DAWN) driver:" << endl;
G4cerr << " Invalid parameter for parallelepiped." << endl;
G4cerr << " Drawing is skipped." << endl;
G4cerr << "WARNING from FukuiRenderer (DAWN) driver:" << G4endl;
G4cerr << " Invalid parameter for parallelepiped." << G4endl;
G4cerr << " Drawing is skipped." << G4endl;
return ;
}
G4double tanTheta_cosPhi_cosTheta = para.GetSymAxis().x() ;
@@ -709,9 +709,9 @@ void G4FRSCENE::AddThis (const G4Trap& trap)
//----- parameters preprocessing
G4double cosTheta = trap.GetSymAxis().z() ;
if( cosTheta < epsilon ) {
G4cerr << "WARNING from FukuiRenderer (DAWN) driver:" << endl;
G4cerr << " Invalid parameter for trap, 1" << endl;
G4cerr << " Drawing is skipped." << endl;
G4cerr << "WARNING from FukuiRenderer (DAWN) driver:" << G4endl;
G4cerr << " Invalid parameter for trap, 1" << G4endl;
G4cerr << " Drawing is skipped." << G4endl;
return ;
}
@@ -897,7 +897,7 @@ G4bool G4FRSCENE::IsVisible()
void G4FRSCENE::SendBoundingBox( void )
{
#if defined DEBUG_FR_SCENE
G4cerr << "***** SendBoundingBox () (/BoundingBox)" << endl;
G4cerr << "***** SendBoundingBox () (/BoundingBox)" << G4endl;
#endif
//----- (1A) CALC bounding box of the bounding sphere
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4FukuiRenderer.cc,v 1.3.8.1 1999/12/07 20:53:11 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4FukuiRenderer.cc,v 1.4 1999/12/15 14:54:01 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Satoshi TANAKA
@@ -77,7 +77,7 @@ G4VSceneHandler* G4FukuiRenderer::CreateSceneHandler (const G4String& name)
if(!flag_connected) { delete p ; p = NULL ; }
G4cout << G4FukuiRendererSceneHandler::GetSceneCount ()
<< ' ' << fName << " scenes extanct." << endl;
<< ' ' << fName << " scenes extanct." << G4endl;
return p;
}
@@ -97,7 +97,7 @@ void G4FukuiRenderer::UseInetDomainAuto()
int pid ;
#if defined DEBUG_FR_SYSTEM
G4cerr << "***** Unix Inet Domain (AUTO mode)" << endl;
G4cerr << "***** Unix Inet Domain (AUTO mode)" << G4endl;
#endif
fIPMode = G4FukuiRenderer::IP_UNIX ;
@@ -127,11 +127,11 @@ void G4FukuiRenderer::UseInetDomainAuto()
}
if(!flag_connected) {
G4cerr << "***** ERROR: Connection failed" << endl;
G4cerr << "***** ERROR: Connection failed" << G4endl;
}
else {
G4cerr << "***** GEANT4 is connected to FukuiRenderer DAWN ";
G4cerr << "in the same host" << endl;
G4cerr << "in the same host" << G4endl;
}
} // G4FukuiRenderer::UseInetDomainAuto()
@@ -142,18 +142,18 @@ void
G4FukuiRenderer::UseInetDomain()
{
#if defined DEBUG_FR_SYSTEM
G4cerr << "***** INET Domain " << endl;
G4cerr << "***** INET Domain " << G4endl;
#endif
fIPMode = G4FukuiRenderer::IP_INET ;
this->ConnectPort();
if(!flag_connected) {
G4cerr << "***** ERROR: Connection failed" << endl;
G4cerr << "***** ERROR: Connection failed" << G4endl;
}
else {
G4cerr << "GEANT4 is connected to FukuiRenderer DAWN via socket" ;
G4cerr << endl;
G4cerr << G4endl;
}
} // G4FukuiRenderer::UseInetDomain()
@@ -166,10 +166,10 @@ G4FukuiRenderer::ConnectPort( int max_port_incr )
while(1) {
if ( ++connect_trial > max_port_incr ) {
this->flag_connected = 0 ;
G4cerr << "***** INET Connection failed." << endl;
G4cerr << " Maybe, you have not invoked DAWN yet," << endl;
G4cerr << " or too many DAWN's are already running" << endl;
G4cerr << " in the server host." << endl;
G4cerr << "***** INET Connection failed." << G4endl;
G4cerr << " Maybe, you have not invoked DAWN yet," << G4endl;
G4cerr << " or too many DAWN's are already running" << G4endl;
G4cerr << " in the server host." << G4endl;
fPrimDest.IncrementPortNumber( (- FR_MAX_PORT_INCR) );
return ;
} else if ( fPrimDest.ConnectINET() ) {
@@ -177,14 +177,14 @@ G4FukuiRenderer::ConnectPort( int max_port_incr )
this->flag_connected = 1 ;
G4cerr << "***** GEANT4 is connected to port " ;
G4cerr << fPrimDest.GetPortNumber() ;
G4cerr << " of server" << endl;
G4cerr << " of server" << G4endl;
break ;
} else {
// Connection failed. Try the next port.
this->flag_connected = 0 ;
fPrimDest.IncrementPortNumber();
G4cerr << "***** GEANT4 incremented targeting port to " ;
G4cerr << fPrimDest.GetPortNumber() << endl;
G4cerr << fPrimDest.GetPortNumber() << G4endl;
} // if-elseif-else
@@ -198,7 +198,7 @@ void G4FukuiRenderer::UseBSDUnixDomainAuto()
int pid ;
#if defined DEBUG_FR_SYSTEM
G4cerr << "***** UseBSDUnixDomainAuto " << endl;
G4cerr << "***** UseBSDUnixDomainAuto " << G4endl;
#endif
fIPMode = G4FukuiRenderer::IP_UNIX ; // Unix domain
@@ -224,10 +224,10 @@ void G4FukuiRenderer::UseBSDUnixDomainAuto()
//----- display status
if(!flag_connected) {
G4cerr << "***** ERROR: Connection failed" << endl;
G4cerr << "***** ERROR: Connection failed" << G4endl;
} else {
G4cerr << "*** GEANT4 is connected to FukuiRenderer DAWN ";
G4cerr << "in the same host" << endl;
G4cerr << "in the same host" << G4endl;
}
} // if--else
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4FukuiRendererSceneHandler.cc,v 1.2.4.1 1999/12/07 20:53:11 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4FukuiRendererSceneHandler.cc,v 1.3 1999/12/15 14:54:01 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Satoshi TANAKA, Fri Jun 28 11:34:24 JST 1996
@@ -23,7 +23,7 @@
// #define DEBUG_FR_SCENE
//----- header files
#include <fstream.h>
#include "g4std/fstream"
//#include <strstream.h>
#include <string.h>
#include "globals.hh"
@@ -96,7 +96,7 @@ COMMAND_BUF_SIZE (G4FRClientServer::SEND_BUFMAX)
G4FukuiRendererSceneHandler::~G4FukuiRendererSceneHandler ()
{
#if defined DEBUG_FR_SCENE
G4cerr << "***** ~G4FukuiRendererSceneHandler" << endl;
G4cerr << "***** ~G4FukuiRendererSceneHandler" << G4endl;
#endif
fSceneCount--;
ClearStore (); // clear current scene
@@ -109,7 +109,7 @@ void G4FukuiRendererSceneHandler::FRBeginModeling( void )
if( !FRIsInModeling() )
{
#if defined DEBUG_FR_SCENE
G4cerr << "***** G4FukuiRendererSceneHandler::FRBeginModeling (called & started)" << endl;
G4cerr << "***** G4FukuiRendererSceneHandler::FRBeginModeling (called & started)" << G4endl;
#endif
//----- Begin Saving g4.prim file
@@ -145,21 +145,21 @@ void G4FukuiRendererSceneHandler::FRBeginModeling( void )
//----- send SET_CAMERA command
// !SetCamera
#if defined DEBUG_FR_SCENE
G4cerr << "***** (!SetCamera in FRBeginModeling())" << endl;
G4cerr << "***** (!SetCamera in FRBeginModeling())" << G4endl;
#endif
SendStr( FR_SET_CAMERA );
//----- open device
// !OpenDevice
#if defined DEBUG_FR_SCENE
G4cerr << "***** (!OpenDevice in FRBeginModeling())" << endl;
G4cerr << "***** (!OpenDevice in FRBeginModeling())" << G4endl;
#endif
SendStr( FR_OPEN_DEVICE );
//----- begin sending primitives
// !BeginModeling
#if defined DEBUG_FR_SCENE
G4cerr << "***** (!BeginModeling in FRBeginModeling())" << endl;
G4cerr << "***** (!BeginModeling in FRBeginModeling())" << G4endl;
#endif
SendStr( FR_BEGIN_MODELING ); FRflag_in_modeling = true ;
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4FukuiRendererViewer.cc,v 1.3.4.1 1999/12/07 20:53:11 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4FukuiRendererViewer.cc,v 1.4 1999/12/15 14:54:01 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Satoshi TANAKA, Fri Jun 28 12:09:11 JST 1996
@@ -53,7 +53,7 @@ G4FukuiRendererViewer::~G4FukuiRendererViewer ()
void G4FukuiRendererViewer::SetView ()
{
#if defined DEBUG_FR_VIEW
G4cerr << "***** G4FukuiRendererViewer::SetView(): No effects" << endl;
G4cerr << "***** G4FukuiRendererViewer::SetView(): No effects" << G4endl;
#endif
// Do nothing, since DAWN is running as a different process.
// SendViewParameters () will do this job instead.
@@ -64,7 +64,7 @@ void
G4FukuiRendererViewer::ClearView( void )
{
#if defined DEBUG_FR_VIEW
G4cerr << "***** G4FukuiRendererViewer::ClearView (): No effects " << endl;
G4cerr << "***** G4FukuiRendererViewer::ClearView (): No effects " << G4endl;
#endif
}
@@ -74,7 +74,7 @@ G4FukuiRendererViewer::ClearView( void )
void G4FukuiRendererViewer::DrawView ()
{
#if defined DEBUG_FR_VIEW
G4cerr << "***** G4FukuiRendererViewer::DrawView () " << endl;
G4cerr << "***** G4FukuiRendererViewer::DrawView () " << G4endl;
#endif
//----- Begin modeling 3D
@@ -93,7 +93,7 @@ void G4FukuiRendererViewer::DrawView ()
void G4FukuiRendererViewer::ShowView( void )
{
#if defined DEBUG_FR_VIEW
G4cerr << "***** G4FukuiRendererViewer::ShowView () " << endl;
G4cerr << "***** G4FukuiRendererViewer::ShowView () " << G4endl;
#endif
if( fSceneHandler.FRIsInModeling() )
@@ -114,12 +114,12 @@ void G4FukuiRendererViewer::ShowView( void )
void G4FukuiRendererViewer::Wait()
{
#if defined DEBUG_FR_VIEW
G4cerr << "***** G4FukuiRendererViewer::Wait () : Begin" << endl;
G4cerr << "***** G4FukuiRendererViewer::Wait () : Begin" << G4endl;
#endif
fSceneHandler.SendStr ( FR_WAIT );
fSceneHandler.GetPrimDest().WaitSendBack( FR_WAIT );
#if defined DEBUG_FR_VIEW
G4cerr << "***** G4FukuiRendererViewer::Wait () : end" << endl;
G4cerr << "***** G4FukuiRendererViewer::Wait () : end" << G4endl;
#endif
}
@@ -130,7 +130,7 @@ void
G4FukuiRendererViewer::SendDevice( FRDEV dev )
{
#if defined DEBUG_FR_VIEW
G4cerr << "***** G4FukuiRendererViewer::SendDevice() " << endl;
G4cerr << "***** G4FukuiRendererViewer::SendDevice() " << G4endl;
#endif
// enum {PS=1, XWIN=2, PS2=3, XWIN2=4, OPEN_GL=5, DEVICE_END=6};
@@ -145,7 +145,7 @@ G4FukuiRendererViewer::SendDevice( FRDEV dev )
void G4FukuiRendererViewer::SendDrawingStyle()
{
#if defined DEBUG_FR_VIEW
G4cerr << "***** G4FukuiRendererViewer::SendDrawingStyle() " << endl;
G4cerr << "***** G4FukuiRendererViewer::SendDrawingStyle() " << G4endl;
#endif
G4int style = fVP.GetDrawingStyle();
@@ -178,7 +178,7 @@ void G4FukuiRendererViewer::SendViewParameters ()
// later due to user interaction via visualization system's GUI.)
#if defined DEBUG_FR_VIEW
G4cerr << "***** G4FukuiRendererViewer::SendViewParameters()" << endl;
G4cerr << "***** G4FukuiRendererViewer::SendViewParameters()" << G4endl;
#endif
//----- Magic number to decide camera distance automatically
@@ -206,8 +206,8 @@ void G4FukuiRendererViewer::SendViewParameters ()
}
if ( camera_distance < radius ) {
G4cerr << "WARNING from FukuiRenderer (DAWN) driver:" << endl;
G4cerr << " Camera cannot enter inside objects" << endl;
G4cerr << "WARNING from FukuiRenderer (DAWN) driver:" << G4endl;
G4cerr << " Camera cannot enter inside objects" << G4endl;
camera_distance = radius ;
}
+26 -1
View File
@@ -1,4 +1,4 @@
$Id: History,v 1.54 1999/12/07 11:05:52 johna Exp $
$Id: History,v 1.59 2000/01/17 10:36:40 johna Exp $
-------------------------------------------------------------------
=========================================================
@@ -24,6 +24,31 @@ committal in the CVS repository !
History file for visualization category
---------------------------------------
vis-V01-00-03 17th January 2000 John Allison
- Added protection for no voxelisation in G4LogicalVolumeModel.cc.
- Changed endl to G4endl in G4VisCommandsViewer.cc and G4GoSceneHandler.cc.
14th January 2000 John Allison
- Added protection for no viewer in G4VisCommandsViewer.cc.
vis-V01-00-02 11th January 2000 John Allison
- General handling of displaced solid (G4PhysicalVolumeModel).
- Introduced /vis/viewer/show (/vis/viewer/update is synonym).
- Improved printing in /vis/camera/reset.
vis-V01-00-01 27th December 1999 Satoshi Tanaka
- VRML-V01-00-00 27th December 1999 Satoshi Tanaka
- G4endl ==> "\n" for fDest objects ... for ISO standard C++ compiler
vis-V01-00-00 16th December 1999 John Allison
- (Note: NOT FOR SYSTEM TESTING - this tag still has problems with
displaying logical volumes and text.)
- Added /vis/viewer/refresh.
- Rationalised command lists for keeping parameter lists up to date,
G4VVisCommand::sceneNameCommands, etc.
- Added AddThis(const G4Polycone&), etc., to prevent hiding warnings.
- Developments in test - see test/History.
vis-V00-01-14a 7th December 1999 John Allison
- Added `class' keyword in friend statement in G4VisStateDependent.hh
to keep HP happy.
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4GoSceneHandler.hh,v 1.3.8.1 1999/12/07 20:53:12 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4GoSceneHandler.hh,v 1.5 1999/12/16 17:25:02 johna Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Guy Barrand 04 November 1996
@@ -47,6 +47,8 @@ public:
void AddThis (const G4Sphere&);
void AddThis (const G4Para&);
void AddThis (const G4Torus&);
void AddThis (const G4Polycone&);
void AddThis (const G4Polyhedra&);
void AddThis (const G4VSolid&);
void BeginPrimitives (const G4Transform3D& objectTransformation);
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Wo.hh,v 1.4.8.1 1999/12/07 20:53:12 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4Wo.hh,v 1.5 1999/12/15 14:54:02 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Guy Barrand 04 November 1996
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4WoViewer.hh,v 1.3.8.1 1999/12/07 20:53:12 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4WoViewer.hh,v 1.4 1999/12/15 14:54:02 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Guy Barrand 04 November 1996
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Xo.hh,v 1.4.8.1 1999/12/07 20:53:12 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4Xo.hh,v 1.5 1999/12/15 14:54:02 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Guy Barrand 04 November 1996
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4XoViewer.hh,v 1.3.8.1 1999/12/07 20:53:12 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4XoViewer.hh,v 1.4 1999/12/15 14:54:02 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Guy Barrand 04 November 1996
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4GoSceneHandler.cc,v 1.4.4.1 1999/12/07 20:53:13 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4GoSceneHandler.cc,v 1.7 2000/01/17 10:28:50 johna Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Guy Barrand 04 November 1996
@@ -59,7 +59,7 @@ G4GoSceneHandler::G4GoSceneHandler (
/*.........................................................................*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::G4GoSceneHandler" << endl;
G4cout << "G4GoSceneHandler::G4GoSceneHandler" << G4endl;
#endif
fSceneCount++;
}
@@ -87,7 +87,7 @@ void G4GoSceneHandler::AddPrimitive (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::AddPrimitive(G4Polyline&) " << line.entries () << endl;
G4cout << "G4GoSceneHandler::AddPrimitive(G4Polyline&) " << line.entries () << G4endl;
#endif
SetColour (GetColour(line));
int nPoints = line.entries ();
@@ -111,7 +111,7 @@ void G4GoSceneHandler::AddPrimitive (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::AddPrimitive(G4Polymarker&) " << line.entries () << endl;
G4cout << "G4GoSceneHandler::AddPrimitive(G4Polymarker&) " << line.entries () << G4endl;
#endif
SetColour (GetColour(line));
int nPoints = line.entries ();
@@ -142,7 +142,7 @@ void G4GoSceneHandler::AddPrimitive (
<< " x : " << center.x()
<< " y : " << center.y()
<< " z : " << center.z()
<< " ,radius : " << radius << endl;
<< " ,radius : " << radius << G4endl;
#endif
// Direction of circle ?
//GoAddCircleToNode (fGoNode,radius,center.x(),center.y(),center.z(),0.,0.,1.);
@@ -157,7 +157,7 @@ void G4GoSceneHandler::AddPrimitive (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::AddPrimitive(G4Polyhedron&) " << endl;
G4cout << "G4GoSceneHandler::AddPrimitive(G4Polyhedron&) " << G4endl;
#endif
SetColour (GetColour(polyhedron));
@@ -227,7 +227,7 @@ void G4GoSceneHandler::AddPrimitive (
{
SetColour (GetTextColour(text));
#ifdef DEBUG
G4cout << "G4GoSceneHandler::AddPrimitive(G4Text&) " << endl;
G4cout << "G4GoSceneHandler::AddPrimitive(G4Text&) " << G4endl;
#endif
CWarnF ("G4GoSceneHandler::AddPrimitive G4Text : not yet implemented.\n");
}
@@ -241,7 +241,7 @@ void G4GoSceneHandler::AddPrimitive (
{
SetColour (GetColour(Square));
#ifdef DEBUG
G4cout << "G4GoSceneHandler::AddPrimitive(G4Square&) " << endl;
G4cout << "G4GoSceneHandler::AddPrimitive(G4Square&) " << G4endl;
#endif
CWarnF ("G4GoSceneHandler::AddPrimitive G4Square : not yet implemented.\n");
}
@@ -256,7 +256,7 @@ void G4GoSceneHandler::AddPrimitive (
{
SetColour (GetColour(nurb));
#ifdef DEBUG
G4cout << "G4GoSceneHandler::AddPrimitive(G4NURBS&) " << endl;
G4cout << "G4GoSceneHandler::AddPrimitive(G4NURBS&) " << G4endl;
#endif
CWarnF ("G4GoSceneHandler::AddPrimitive G4NURBS : not yet implemented.\n");
}
@@ -268,7 +268,7 @@ void G4GoSceneHandler::AddThis (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::AddThis(G4Box&) " << endl;
G4cout << "G4GoSceneHandler::AddThis(G4Box&) " << G4endl;
#endif
G4VSceneHandler::AddThis (box);
}
@@ -280,7 +280,7 @@ void G4GoSceneHandler::AddThis (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::AddThis(G4Cons&) " << endl;
G4cout << "G4GoSceneHandler::AddThis(G4Cons&) " << G4endl;
#endif
G4VSceneHandler::AddThis (cons);
}
@@ -292,7 +292,7 @@ void G4GoSceneHandler::AddThis (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::AddThis(G4Tubs&) " << endl;
G4cout << "G4GoSceneHandler::AddThis(G4Tubs&) " << G4endl;
#endif
G4VSceneHandler::AddThis (tubs);
}
@@ -304,7 +304,7 @@ void G4GoSceneHandler::AddThis (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::AddThis(G4Trd&) " << endl;
G4cout << "G4GoSceneHandler::AddThis(G4Trd&) " << G4endl;
#endif
G4VSceneHandler::AddThis (trd);
}
@@ -316,7 +316,7 @@ void G4GoSceneHandler::AddThis (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::AddThis(G4Trap&) " << endl;
G4cout << "G4GoSceneHandler::AddThis(G4Trap&) " << G4endl;
#endif
G4VSceneHandler::AddThis (trap);
}
@@ -328,7 +328,7 @@ void G4GoSceneHandler::AddThis (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::AddThis(G4Sphere&) " << endl;
G4cout << "G4GoSceneHandler::AddThis(G4Sphere&) " << G4endl;
#endif
G4VSceneHandler::AddThis (sphere);
}
@@ -340,7 +340,7 @@ void G4GoSceneHandler::AddThis (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::AddThis(G4Para&) " << endl;
G4cout << "G4GoSceneHandler::AddThis(G4Para&) " << G4endl;
#endif
G4VSceneHandler::AddThis (para);
}
@@ -352,11 +352,35 @@ void G4GoSceneHandler::AddThis (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::AddThis(G4Torus&) " << endl;
G4cout << "G4GoSceneHandler::AddThis(G4Torus&) " << G4endl;
#endif
G4VSceneHandler::AddThis (torus);
}
/***************************************************************************/
void G4GoSceneHandler::AddThis (
const G4Polycone& polycone
)
/***************************************************************************/
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::AddThis(G4Polycone&) " << G4endl;
#endif
G4VSceneHandler::AddThis (polycone);
}
/***************************************************************************/
void G4GoSceneHandler::AddThis (
const G4Polyhedra& polyhedra
)
/***************************************************************************/
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::AddThis(G4Polyhedra&) " << G4endl;
#endif
G4VSceneHandler::AddThis (polyhedra);
}
/***************************************************************************/
void G4GoSceneHandler::AddThis (
const G4VSolid& solid
)
@@ -364,7 +388,7 @@ void G4GoSceneHandler::AddThis (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::AddThis(G4VSolid&) " << endl;
G4cout << "G4GoSceneHandler::AddThis(G4VSolid&) " << G4endl;
#endif
G4VSceneHandler::AddThis (solid);
}
@@ -388,7 +412,7 @@ void G4GoSceneHandler::PreAddThis (
nodeName = CStringCreateF (15+64,"PhysicalVolume/%lu",currentPhysicalVolume );
#ifdef DEBUG
G4cout << "G4GoSceneHandler::PreAddThis : " << nodeName << endl;
G4cout << "G4GoSceneHandler::PreAddThis : " << nodeName << G4endl;
#endif
}
/***************************************************************************/
@@ -398,7 +422,7 @@ void G4GoSceneHandler::PostAddThis (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::PostAddThis" << endl;
G4cout << "G4GoSceneHandler::PostAddThis" << G4endl;
#endif
CStringDelete (nodeName);
nodeName = NULL;
@@ -412,7 +436,7 @@ void G4GoSceneHandler::BeginPrimitives (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::BeginPrimitives" << endl;
G4cout << "G4GoSceneHandler::BeginPrimitives" << G4endl;
#endif
G4VSceneHandler::BeginPrimitives (objectTransformation);
@@ -439,7 +463,7 @@ void G4GoSceneHandler::EndPrimitives (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::EndPrimitives" << endl;
G4cout << "G4GoSceneHandler::EndPrimitives" << G4endl;
#endif
HepRotation rot = transformation.getRotation();
Hep3Vector tra = transformation.getTranslation();
@@ -460,7 +484,7 @@ void G4GoSceneHandler::ClearStore (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::ClearStore" << endl;
G4cout << "G4GoSceneHandler::ClearStore" << G4endl;
#endif
if(ONodeIsValid(fTransientRootGoNode)==0) fTransientRootGoNode = NULL;
ONodeDestroyChildren (fTransientRootGoNode);
@@ -474,7 +498,7 @@ void G4GoSceneHandler::ClearTransientStore (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::ClearTransientStore" << endl;
G4cout << "G4GoSceneHandler::ClearTransientStore" << G4endl;
#endif
if(ONodeIsValid(fTransientRootGoNode)==0) fTransientRootGoNode = NULL;
ONodeDestroyChildren (fTransientRootGoNode);
@@ -489,7 +513,7 @@ void G4GoSceneHandler::RequestPrimitives (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::RequestPrimitives" << endl;
G4cout << "G4GoSceneHandler::RequestPrimitives" << G4endl;
#endif
G4VSceneHandler::RequestPrimitives (solid);
}
@@ -500,7 +524,7 @@ ONode G4GoSceneHandler::GetRootNode (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4GoSceneHandler::RequestPrimitives" << endl;
G4cout << "G4GoSceneHandler::RequestPrimitives" << G4endl;
#endif
if(ONodeIsValid(fRootGoNode)==0) {
fRootGoNode = NULL;
@@ -522,7 +546,7 @@ void G4GoSceneHandler::SetColour (
G4cout << "G4GoSceneHandler::SetColour : red : " << a_colour.GetRed () <<
" green : " << a_colour.GetGreen () <<
" blue : " << a_colour.GetBlue () <<
" index : " << index << endl;
" index : " << index << G4endl;
#endif
OContextSetColorIndex (OContextGetStaticInstance(),index);
}
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Wo.cc,v 1.3.8.1 1999/12/07 20:53:14 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4Wo.cc,v 1.4 1999/12/15 14:54:02 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Guy Barrand 04 November 1996
+8 -8
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4WoViewer.cc,v 1.2.8.1 1999/12/07 20:53:14 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4WoViewer.cc,v 1.3 1999/12/15 14:54:02 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Guy Barrand 04 November 1996
@@ -47,7 +47,7 @@ G4WoViewer::G4WoViewer (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4WoViewer::G4WoViewer" << endl;
G4cout << "G4WoViewer::G4WoViewer" << G4endl;
#endif
if(WoIsInitialized()==0) {
@@ -149,13 +149,13 @@ void G4WoViewer::SetView (
target + cameraDistance * fVP.GetViewpointDirection().unit();
#ifdef DEBUG
G4cout << "G4WoViewer::SetView : target.x " << target.x() << " target.y " << target.y() << " target.z " << target.z() << endl;
G4cout << "G4WoViewer::SetView : target.x " << target.x() << " target.y " << target.y() << " target.z " << target.z() << G4endl;
G4cout << "G4WoViewer::SetView : dir.x " << fVP.GetViewpointDirection().unit().x() <<
" dir.y " << fVP.GetViewpointDirection().unit().y() <<
" dir.z " << fVP.GetViewpointDirection().unit().z() << endl;
G4cout << "G4WoViewer::SetView : cameraDistance " << cameraDistance << endl;
G4cout << "G4WoViewer::SetView : pCamera.x " << pCamera.x() << " pCamera.y " << pCamera.y() << " pCamera.z " << pCamera.z() << endl;
G4cout << "G4WoViewer::SetView : pCamera.x " << pCamera.x() << " pCamera.y " << pCamera.y() << " pCamera.z " << pCamera.z() << endl;
" dir.z " << fVP.GetViewpointDirection().unit().z() << G4endl;
G4cout << "G4WoViewer::SetView : cameraDistance " << cameraDistance << G4endl;
G4cout << "G4WoViewer::SetView : pCamera.x " << pCamera.x() << " pCamera.y " << pCamera.y() << " pCamera.z " << pCamera.z() << G4endl;
G4cout << "G4WoViewer::SetView : pCamera.x " << pCamera.x() << " pCamera.y " << pCamera.y() << " pCamera.z " << pCamera.z() << G4endl;
#endif
OCameraSetCenter (fGoCamera,target.x() ,target.y() ,target.z());
+2 -2
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4Xo.cc,v 1.4.4.1 1999/12/07 20:53:14 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4Xo.cc,v 1.5 1999/12/15 14:54:03 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Guy Barrand 04 November 1996
+7 -7
View File
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4XoViewer.cc,v 1.3.8.1 1999/12/07 20:53:14 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4XoViewer.cc,v 1.4 1999/12/15 14:54:03 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Guy Barrand 04 November 1996
@@ -53,7 +53,7 @@ G4XoViewer::G4XoViewer (
/*!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!*/
{
#ifdef DEBUG
G4cout << "G4XoViewer::G4XoViewer" << endl;
G4cout << "G4XoViewer::G4XoViewer" << G4endl;
#endif
G4VInteractorManager* interactorManager = G4Xo::GetInteractorManager();
@@ -153,12 +153,12 @@ void G4XoViewer::SetView (
target + cameraDistance * fVP.GetViewpointDirection().unit();
#ifdef DEBUG
G4cout << "G4XoViewer::SetView : target.x " << target.x() << " target.y " << target.y() << " target.z " << target.z() << endl;
G4cout << "G4XoViewer::SetView : target.x " << target.x() << " target.y " << target.y() << " target.z " << target.z() << G4endl;
G4cout << "G4XoViewer::SetView : dir.x " << fVP.GetViewpointDirection().unit().x() <<
" dir.y " << fVP.GetViewpointDirection().unit().y() <<
" dir.z " << fVP.GetViewpointDirection().unit().z() << endl;
G4cout << "G4XoViewer::SetView : cameraDistance " << cameraDistance << endl;
G4cout << "G4XoViewer::SetView : pCamera.x " << pCamera.x() << " pCamera.y " << pCamera.y() << " pCamera.z " << pCamera.z() << endl;
" dir.z " << fVP.GetViewpointDirection().unit().z() << G4endl;
G4cout << "G4XoViewer::SetView : cameraDistance " << cameraDistance << G4endl;
G4cout << "G4XoViewer::SetView : pCamera.x " << pCamera.x() << " pCamera.y " << pCamera.y() << " pCamera.z " << pCamera.z() << G4endl;
#endif
OCameraSetCenter (fGoCamera,target.x() ,target.y() ,target.z());
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateSceneHandler.hh,v 1.2.8.1 1999/12/07 20:53:14 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLImmediateSceneHandler.hh,v 1.3 1999/12/15 14:54:03 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateViewer.hh,v 1.3.2.1 1999/12/07 20:53:15 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLImmediateViewer.hh,v 1.4 1999/12/15 14:54:03 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 7th February 1997
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateWin32.hh,v 1.3.8.1 1999/12/07 20:53:15 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLImmediateWin32.hh,v 1.4 1999/12/15 14:54:03 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// OpenGLImmediateWin32 graphics system factory.
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateWin32Viewer.hh,v 1.2.2.1 1999/12/07 20:53:15 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLImmediateWin32Viewer.hh,v 1.3 1999/12/15 14:54:03 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Class G4OpenGLImmediateWin32Viewer : a class derived from
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateX.hh,v 1.4.8.1 1999/12/07 20:53:16 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLImmediateX.hh,v 1.5 1999/12/15 14:54:03 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateXViewer.hh,v 1.3.2.1 1999/12/07 20:53:16 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLImmediateXViewer.hh,v 1.4 1999/12/15 14:54:03 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 7th February 1997
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateXm.hh,v 1.3.8.1 1999/12/07 20:53:17 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLImmediateXm.hh,v 1.4 1999/12/15 14:54:04 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateXmViewer.hh,v 1.2.2.1 1999/12/07 20:53:17 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLImmediateXmViewer.hh,v 1.3 1999/12/15 14:54:04 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLSceneHandler.hh,v 1.3.8.1 1999/12/07 20:53:17 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLSceneHandler.hh,v 1.5 1999/12/16 17:25:05 johna Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 27th March 1996
@@ -47,6 +47,8 @@ public:
void AddThis (const G4Sphere&);
void AddThis (const G4Para&);
void AddThis (const G4Torus&);
void AddThis (const G4Polycone&);
void AddThis (const G4Polyhedra&);
void AddThis (const G4VSolid&);
protected:
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLSceneHandler.icc,v 1.1.8.1 1999/12/07 20:53:17 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLSceneHandler.icc,v 1.3 1999/12/16 17:25:06 johna Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 20th January 1998
@@ -43,6 +43,14 @@ inline void G4OpenGLSceneHandler::AddThis (const G4Torus& torus) {
G4VSceneHandler::AddThis (torus);
}
inline void G4OpenGLSceneHandler::AddThis (const G4Polycone& polycone) {
G4VSceneHandler::AddThis (polycone);
}
inline void G4OpenGLSceneHandler::AddThis (const G4Polyhedra& polyhedra) {
G4VSceneHandler::AddThis (polyhedra);
}
inline void G4OpenGLSceneHandler::AddThis (const G4VSolid& vsolid) {
G4VSceneHandler::AddThis (vsolid);
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredSceneHandler.hh,v 1.6.2.1 1999/12/07 20:53:18 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLStoredSceneHandler.hh,v 1.7 1999/12/15 14:54:04 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -59,7 +59,7 @@ friend class G4OpenGLStoredViewer;
// Stop-gap solution of structure re-use.
// A proper implementation would use geometry hierarchy.
G4std::map <const G4VSolid*, G4int, less <const G4VSolid*> > fSolidMap;
G4std::map <const G4VSolid*, G4int, G4std::less <const G4VSolid*> > fSolidMap;
};
inline G4int G4OpenGLStoredSceneHandler::GetSceneCount () {
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredViewer.hh,v 1.4.2.1 1999/12/07 20:53:18 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLStoredViewer.hh,v 1.5 1999/12/15 14:54:04 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 7th February 1997
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredWin32.hh,v 1.3.8.1 1999/12/07 20:53:18 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLStoredWin32.hh,v 1.4 1999/12/15 14:54:04 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// OpenGLStoredWin32 graphics system factory.
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredWin32Viewer.hh,v 1.1.8.1 1999/12/07 20:53:18 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLStoredWin32Viewer.hh,v 1.2 1999/12/15 14:54:04 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Class G4OpenGLStoredWin32Viewer : a class derived from
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredX.hh,v 1.4.8.1 1999/12/07 20:53:18 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLStoredX.hh,v 1.5 1999/12/15 14:54:04 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredXViewer.hh,v 1.2.8.1 1999/12/07 20:53:18 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLStoredXViewer.hh,v 1.3 1999/12/15 14:54:04 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 7th February 1997
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredXm.hh,v 1.3.8.1 1999/12/07 20:53:18 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLStoredXm.hh,v 1.4 1999/12/15 14:54:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredXmViewer.hh,v 1.1.8.1 1999/12/07 20:53:18 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLStoredXmViewer.hh,v 1.2 1999/12/15 14:54:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLTransform3D.hh,v 1.2.8.1 1999/12/07 20:53:18 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLTransform3D.hh,v 1.3 1999/12/15 14:54:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 24th October 1996
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLViewer.hh,v 1.4.2.1 1999/12/07 20:53:19 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLViewer.hh,v 1.5 1999/12/15 14:54:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 27th March 1996
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLWin32Viewer.hh,v 1.2.2.1 1999/12/07 20:53:19 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLWin32Viewer.hh,v 1.3 1999/12/15 14:54:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// G4OpenGLWin32Viewer : Class to provide WindowsNT specific
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXViewer.hh,v 1.5.2.1 1999/12/07 20:53:20 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXViewer.hh,v 1.6 1999/12/15 14:54:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 7th February 1997
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmBox.hh,v 1.2.8.1 1999/12/07 20:53:20 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmBox.hh,v 1.3 1999/12/15 14:54:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
//Box container class
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmConvenienceRoutines.hh,v 1.2.8.1 1999/12/07 20:53:20 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmConvenienceRoutines.hh,v 1.3 1999/12/15 14:54:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmFourArrowButtons.hh,v 1.2.8.1 1999/12/07 20:53:20 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmFourArrowButtons.hh,v 1.3 1999/12/15 14:54:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
//Four arrow buttons class. Inherits from G4OpenGLXmVWidgetComponent
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmFramedBox.hh,v 1.2.8.1 1999/12/07 20:53:20 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmFramedBox.hh,v 1.3 1999/12/15 14:54:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
//Framed box container class
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmMainMenubarCallbacks.hh,v 1.2.8.1 1999/12/07 20:53:20 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmMainMenubarCallbacks.hh,v 1.3 1999/12/15 14:54:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmPanningCallbacks.hh,v 1.2.8.1 1999/12/07 20:53:20 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmPanningCallbacks.hh,v 1.3 1999/12/15 14:54:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmPushButton.hh,v 1.2.8.1 1999/12/07 20:53:20 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmPushButton.hh,v 1.3 1999/12/15 14:54:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
//Push button class. Inherits from G4OpenGLXmVWidgetComponent
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmRadioButton.hh,v 1.2.8.1 1999/12/07 20:53:20 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmRadioButton.hh,v 1.3 1999/12/15 14:54:05 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
//Radio button class. Inherits from G4OpenGLXmVWidgetComponent
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmResources.hh,v 1.2.8.1 1999/12/07 20:53:20 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmResources.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Default resources file for GEANT4 OpenGL Motif windows.
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmRotationCallbacks.hh,v 1.2.8.1 1999/12/07 20:53:21 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmRotationCallbacks.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmSeparator.hh,v 1.2.8.1 1999/12/07 20:53:21 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmSeparator.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
//Separator class. Inherits from G4OpenGLXmVWidgetComponent
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmSliderBar.hh,v 1.2.8.1 1999/12/07 20:53:21 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmSliderBar.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
//Slider bar class. Inherits from G4OpenGLXmVWidgetComponent
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmStyleCallbacks.hh,v 1.2.8.1 1999/12/07 20:53:21 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmStyleCallbacks.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmTextField.hh,v 1.2.8.1 1999/12/07 20:53:21 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmTextField.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
//Text field class. Inherits from G4OpenGLXmVWidgetComponent
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmTopLevelShell.hh,v 1.2.8.1 1999/12/07 20:53:21 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmTopLevelShell.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
//Top level shell class
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmVWidgetComponent.hh,v 1.2.8.1 1999/12/07 20:53:21 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmVWidgetComponent.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
//Base class for all Motif component widgets
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmVWidgetContainer.hh,v 1.2.8.1 1999/12/07 20:53:21 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmVWidgetContainer.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
//Base class for all Motif container widgets
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmVWidgetObject.hh,v 1.2.8.1 1999/12/07 20:53:21 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmVWidgetObject.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
//Virtual base class for all Motif widgets.
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmVWidgetShell.hh,v 1.2.8.1 1999/12/07 20:53:22 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmVWidgetShell.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
//Base class for all Motif window widgets (shells)
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmViewer.hh,v 1.2.2.1 1999/12/07 20:53:22 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmViewer.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmWindowHandlingCallbacks.hh,v 1.2.8.1 1999/12/07 20:53:22 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmWindowHandlingCallbacks.hh,v 1.3 1999/12/15 14:54:06 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateSceneHandler.cc,v 1.2.8.1 1999/12/07 20:53:22 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLImmediateSceneHandler.cc,v 1.3 1999/12/15 14:54:07 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -54,7 +54,7 @@ G4OpenGLImmediateSceneHandler::~G4OpenGLImmediateSceneHandler ()
fSceneCount--;
}
#include <iomanip.h>
#include "g4std/iomanip"
void G4OpenGLImmediateSceneHandler::BeginPrimitives
(const G4Transform3D& objectTransformation) {
@@ -67,9 +67,9 @@ void G4OpenGLImmediateSceneHandler::BeginPrimitives
G4cout << "G4OpenGLTransform3D matrix:";
for (int i = 0; i < 16; i++) {
if ((i % 4) == 0) G4cout << '\n';
G4cout << setw (15) << m[i];
G4cout << G4std::setw (15) << m[i];
}
G4cout << endl;
G4cout << G4endl;
*****************************************/
glMultMatrixd (oglt.GetGLMatrix ());
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateViewer.cc,v 1.2.8.1 1999/12/07 20:53:23 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLImmediateViewer.cc,v 1.3 1999/12/15 14:54:07 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 7th February 1997
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateWin32.cc,v 1.3.8.1 1999/12/07 20:53:23 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLImmediateWin32.cc,v 1.4 1999/12/15 14:54:07 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// OpenGLImmediateWin32 graphics system factory.
@@ -33,7 +33,7 @@ G4OpenGLImmediateWin32::G4OpenGLImmediateWin32 ():
G4VSceneHandler* G4OpenGLImmediateWin32::CreateSceneHandler () {
G4VSceneHandler* pScene = new G4OpenGLImmediateSceneHandler (*this);
G4cout << G4OpenGLImmediateSceneHandler::GetSceneCount ()
<< ' ' << fName << " scenes extanct." << endl;
<< ' ' << fName << " scenes extanct." << G4endl;
return pScene;
}
@@ -45,14 +45,14 @@ G4VViewer* G4OpenGLImmediateWin32::CreateViewer (G4VSceneHandler& scene) {
G4cerr << "G4OpenGLImmediateWin32::CreateViewer: error flagged by negative"
" view id in G4OpenGLImmediateWin32Viewer creation."
"\n Destroying view and returning null pointer."
<< endl;
<< G4endl;
delete pView;
pView = 0;
}
}
else {
G4cerr << "G4OpenGLImmediateWin32::CreateViewer: null pointer on"
" new G4OpenGLImmediateWin32Viewer." << endl;
" new G4OpenGLImmediateWin32Viewer." << G4endl;
}
return pView;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateWin32Viewer.cc,v 1.1.8.1 1999/12/07 20:53:23 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLImmediateWin32Viewer.cc,v 1.2 1999/12/15 14:54:07 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Class G4OpenGLImmediateWin32Viewer : a class derived from G4OpenGLWin32Viewer and
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateX.cc,v 1.4.8.1 1999/12/07 20:53:23 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLImmediateX.cc,v 1.5 1999/12/15 14:54:07 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 27th March 1996
@@ -36,7 +36,7 @@ G4OpenGLImmediateX::~G4OpenGLImmediateX () {}
G4VSceneHandler* G4OpenGLImmediateX::CreateSceneHandler (const G4String& name) {
G4VSceneHandler* pScene = new G4OpenGLImmediateSceneHandler (*this, name);
G4cout << G4OpenGLImmediateSceneHandler::GetSceneCount ()
<< ' ' << fName << " scenes extanct." << endl;
<< ' ' << fName << " scenes extanct." << G4endl;
return pScene;
}
@@ -49,14 +49,14 @@ G4VViewer* G4OpenGLImmediateX::CreateViewer (G4VSceneHandler& scene,
G4cerr << "G4OpenGLImmediateX::CreateViewer: error flagged by negative"
" view id in G4OpenGLImmediateXViewer creation."
"\n Destroying view and returning null pointer."
<< endl;
<< G4endl;
delete pView;
pView = 0;
}
}
else {
G4cerr << "G4OpenGLImmediateX::CreateViewer: null pointer on"
" new G4OpenGLImmediateXViewer." << endl;
" new G4OpenGLImmediateXViewer." << G4endl;
}
return pView;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateXViewer.cc,v 1.2.8.1 1999/12/07 20:53:23 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLImmediateXViewer.cc,v 1.3 1999/12/15 14:54:07 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 7th February 1997
@@ -40,7 +40,7 @@ G4VViewer (scene, scene.IncrementViewCount (), name) {
// ensure a suitable window was found
if (!vi_immediate) {
G4cerr << "G4OpenGLImmediateXViewer::G4OpenGLImmediateXViewer -"
" G4OpenGLXViewer couldn't get a visual." << endl;
" G4OpenGLXViewer couldn't get a visual." << G4endl;
fViewId = -1; // This flags an error.
return;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateXm.cc,v 1.3.8.1 1999/12/07 20:53:23 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLImmediateXm.cc,v 1.4 1999/12/15 14:54:07 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -34,7 +34,7 @@ G4OpenGLImmediateXm::G4OpenGLImmediateXm ():
G4VSceneHandler* G4OpenGLImmediateXm::CreateSceneHandler (const G4String& name) {
G4VSceneHandler* pScene = new G4OpenGLImmediateSceneHandler (*this, name);
G4cout << G4OpenGLImmediateSceneHandler::GetSceneCount ()
<< ' ' << fName << " scenes extanct." << endl;
<< ' ' << fName << " scenes extanct." << G4endl;
return pScene;
}
@@ -46,14 +46,14 @@ G4VViewer* G4OpenGLImmediateXm::CreateViewer (G4VSceneHandler& scene,
if (pView -> GetViewId () < 0) {
G4cerr << "G4OpenGLImmediateXm::CreateViewer: error flagged by"
" negative view id in G4OpenGLImmediateXmViewer creation."
"\n Destroying view and returning null pointer." << endl;
"\n Destroying view and returning null pointer." << G4endl;
delete pView;
pView = 0;
}
}
else {
G4cerr << "G4OpenGLImmediateXm::CreateViewer: null pointer on"
" new G4OpenGLImmediateXmViewer." << endl;
" new G4OpenGLImmediateXmViewer." << G4endl;
}
return pView;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLImmediateXmViewer.cc,v 1.1.8.1 1999/12/07 20:53:24 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLImmediateXmViewer.cc,v 1.2 1999/12/15 14:54:08 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -38,7 +38,7 @@ G4VViewer (scene, scene.IncrementViewCount (), name) {
// ensure a suitable window was found
if (!vi_immediate) {
G4cerr << "G4OpenGLImmediateXmViewer::G4OpenGLImmediateXmViewer -"
" G4OpenGLXmViewer couldn't get a visual." << endl;
" G4OpenGLXmViewer couldn't get a visual." << G4endl;
fViewId = -1; // This flags an error.
return;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLSceneHandler.cc,v 1.3.8.1 1999/12/07 20:53:24 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLSceneHandler.cc,v 1.4 1999/12/15 14:54:08 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 27th March 1996
@@ -90,7 +90,7 @@ void G4OpenGLSceneHandler::AddPrimitive (const G4Text& text) {
<< ", size " << size
<< ", offsets " << text.GetXOffset () << ", " << text.GetYOffset ()
<< ", type " << sizeType
<< endl;
<< G4endl;
}
void G4OpenGLSceneHandler::AddPrimitive (const G4Circle& circle) {
@@ -122,7 +122,7 @@ void G4OpenGLSceneHandler::AddPrimitive (const G4Circle& circle) {
default:
G4cerr << "Unrecognised fill style for G4Circle in G4OpenGLSceneHandler."
<< "\nUsing G4VMarker::filled." << endl;
<< "\nUsing G4VMarker::filled." << G4endl;
glPolygonMode (GL_FRONT_AND_BACK, GL_FILL);
break;
@@ -181,12 +181,12 @@ void G4OpenGLSceneHandler::AddPrimitive (const G4Circle& circle) {
// }
// }
// G4cout << "proj is : \n" << proj << endl;
// G4cout << "proj is : \n" << proj << G4endl;
// proj.invert(ierr);
// G4cout << "ierr is " << ierr << endl;
// G4cout << "proj^-1 is : \n" << proj << endl;
// G4cout << "ierr is " << ierr << G4endl;
// G4cout << "proj^-1 is : \n" << proj << G4endl;
// for (col = 1; col < 5; col++) {
// for (row = 1; row < 5; row++) {
@@ -242,7 +242,7 @@ void G4OpenGLSceneHandler::AddPrimitive (const G4Square& Square) {
default:
G4cerr << "Unrecognised fill style for G4Square in G4OpenGLSceneHandler."
<< "\nUsing G4VMarker::filled." << endl;
<< "\nUsing G4VMarker::filled." << G4endl;
glPolygonMode (GL_FRONT_AND_BACK, GL_FILL);
break;
@@ -329,7 +329,7 @@ void G4OpenGLSceneHandler::AddPrimitive (const G4Polyhedron& polyhedron) {
// case (G4ViewParameters::hlhsr):
// cout << "Hidden edge not implememented in G4OpenGL.\n"
// << "Using hidden surface removal." << endl;
// << "Using hidden surface removal." << G4endl;
case (G4ViewParameters::hsr):
{
@@ -501,7 +501,7 @@ void G4OpenGLSceneHandler::AddPrimitive (const G4NURBS& nurb) {
case (G4ViewParameters::hlhsr):
// G4cout << "Hidden line removal not implememented in G4OpenGL.\n"
// << "Using hidden surface removal." << endl;
// << "Using hidden surface removal." << G4endl;
case (G4ViewParameters::hsr):
{
glEnable (GL_LIGHTING);
@@ -520,7 +520,7 @@ void G4OpenGLSceneHandler::AddPrimitive (const G4NURBS& nurb) {
}
case (G4ViewParameters::hlr):
// G4cout << "Hidden line removal not implememented in G4OpenGL.\n"
// << "Using wireframe." << endl;
// << "Using wireframe." << G4endl;
case (G4ViewParameters::wireframe):
default:
glDisable (GL_LIGHTING);
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredSceneHandler.cc,v 1.5.4.1 1999/12/07 20:53:25 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLStoredSceneHandler.cc,v 1.6 1999/12/15 14:54:08 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -67,7 +67,7 @@ void G4OpenGLStoredSceneHandler::BeginPrimitives
G4cout << "********************* WARNING! ********************\n"
<<"Unable to allocate any more display lists in OpenGL.\n "
<< " Continuing drawing in IMMEDIATE MODE.\n"
<< "***************************************************" << endl;
<< "***************************************************" << G4endl;
fMemoryForDisplayLists = false;
}
}
@@ -117,14 +117,14 @@ void G4OpenGLStoredSceneHandler::ClearStore () {
if (fPODLList (i)) {
glDeleteLists (fPODLList (i), 1);
} else {
G4cerr << "Warning : NULL display List in fPODLList." << endl;
G4cerr << "Warning : NULL display List in fPODLList." << G4endl;
}
}
for (i = 0; i < fTODLList.entries (); i++) {
if (fTODLList (i)) {
glDeleteLists (fTODLList (i), 1);
} else {
G4cerr << "Warning : NULL display List in fTODLList." << endl;
G4cerr << "Warning : NULL display List in fTODLList." << G4endl;
}
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredViewer.cc,v 1.3.8.1 1999/12/07 20:53:25 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLStoredViewer.cc,v 1.4 1999/12/15 14:54:08 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 7th February 1997
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredWin32.cc,v 1.3.8.1 1999/12/07 20:53:25 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLStoredWin32.cc,v 1.4 1999/12/15 14:54:08 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// OpenGLStoredWin32 graphics system factory.
@@ -34,7 +34,7 @@ G4OpenGLStoredWin32::G4OpenGLStoredWin32 ():
G4VSceneHandler* G4OpenGLStoredWin32::CreateSceneHandler () {
G4VSceneHandler* pScene = new G4OpenGLStoredSceneHandler (*this);
G4cout << G4OpenGLStoredSceneHandler::GetSceneCount ()
<< ' ' << fName << " scenes extanct." << endl;
<< ' ' << fName << " scenes extanct." << G4endl;
return pScene;
}
@@ -47,12 +47,12 @@ G4VViewer* G4OpenGLStoredWin32::CreateViewer (G4VSceneHandler& scene) {
pView = 0;
G4cerr << "G4OpenGLStoredWin32::CreateViewer: error flagged by"
" negative view id in G4OpenGLStoredWin32Viewer creation."
"\n Destroying view and returning null pointer." << endl;
"\n Destroying view and returning null pointer." << G4endl;
}
}
else {
G4cerr << "G4OpenGLStoredWin32::CreateViewer: null pointer on"
" new G4OpenGLStoredWin32Viewer." << endl;
" new G4OpenGLStoredWin32Viewer." << G4endl;
}
return pView;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredWin32Viewer.cc,v 1.1.8.1 1999/12/07 20:53:25 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLStoredWin32Viewer.cc,v 1.2 1999/12/15 14:54:08 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Class G4OpenGLStoredWin32Viewer : a class derived from G4OpenGLWin32Viewer and
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredX.cc,v 1.4.8.1 1999/12/07 20:53:26 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLStoredX.cc,v 1.5 1999/12/15 14:54:08 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -37,7 +37,7 @@ G4OpenGLStoredX::~G4OpenGLStoredX () {}
G4VSceneHandler* G4OpenGLStoredX::CreateSceneHandler (const G4String& name) {
G4VSceneHandler* pScene = new G4OpenGLStoredSceneHandler (*this, name);
G4cout << G4OpenGLStoredSceneHandler::GetSceneCount ()
<< ' ' << fName << " scenes extanct." << endl;
<< ' ' << fName << " scenes extanct." << G4endl;
return pScene;
}
@@ -51,12 +51,12 @@ G4VViewer* G4OpenGLStoredX::CreateViewer (G4VSceneHandler& scene,
pView = 0;
G4cerr << "G4OpenGLStoredX::CreateViewer: error flagged by"
" negative view id in G4OpenGLStoredXViewer creation."
"\n Destroying view and returning null pointer." << endl;
"\n Destroying view and returning null pointer." << G4endl;
}
}
else {
G4cerr << "G4OpenGLStoredX::CreateViewer: null pointer on"
" new G4OpenGLStoredXViewer." << endl;
" new G4OpenGLStoredXViewer." << G4endl;
}
return pView;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredXViewer.cc,v 1.2.8.1 1999/12/07 20:53:26 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLStoredXViewer.cc,v 1.3 1999/12/15 14:54:08 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 7th February 1997
@@ -40,7 +40,7 @@ G4VViewer (scene, scene.IncrementViewCount (), name) {
if (!vi_stored) {
fViewId = -1; // This flags an error.
G4cerr << "G4OpenGLStoredXViewer::G4OpenGLStoredXViewer -"
" G4OpenGLXViewer couldn't get a visual." << endl;
" G4OpenGLXViewer couldn't get a visual." << G4endl;
return;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredXm.cc,v 1.3.8.1 1999/12/07 20:53:26 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLStoredXm.cc,v 1.4 1999/12/15 14:54:08 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -34,7 +34,7 @@ G4OpenGLStoredXm::G4OpenGLStoredXm ():
G4VSceneHandler* G4OpenGLStoredXm::CreateSceneHandler (const G4String& name) {
G4VSceneHandler* pScene = new G4OpenGLStoredSceneHandler (*this, name);
G4cout << G4OpenGLStoredSceneHandler::GetSceneCount ()
<< ' ' << fName << " scenes extanct." << endl;
<< ' ' << fName << " scenes extanct." << G4endl;
return pScene;
}
@@ -47,12 +47,12 @@ G4VViewer* G4OpenGLStoredXm::CreateViewer (G4VSceneHandler& scene, const G4Strin
pView = 0;
G4cerr << "G4OpenGLStoredXm::CreateViewer: error flagged by"
" negative view id in G4OpenGLStoredXmViewer creation."
"\n Destroying view and returning null pointer." << endl;
"\n Destroying view and returning null pointer." << G4endl;
}
}
else {
G4cerr << "G4OpenGLStoredXm::CreateViewer: null pointer on"
" new G4OpenGLStoredXmViewer." << endl;
" new G4OpenGLStoredXmViewer." << G4endl;
}
return pView;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLStoredXmViewer.cc,v 1.1.8.1 1999/12/07 20:53:26 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLStoredXmViewer.cc,v 1.2 1999/12/15 14:54:08 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 10th February 1997
@@ -37,7 +37,7 @@ G4VViewer (scene, scene.IncrementViewCount (), name) {
if (!vi_stored) {
fViewId = -1; // This flags an error.
G4cerr << "G4OpenGLStoredXmViewer::G4OpenGLStoredXmViewer -"
" G4OpenGLXmViewer couldn't get a visual." << endl;
" G4OpenGLXmViewer couldn't get a visual." << G4endl;
return;
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLTransform3D.cc,v 1.2.8.1 1999/12/07 20:53:26 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLTransform3D.cc,v 1.3 1999/12/15 14:54:08 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 24th October 1996
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLViewer.cc,v 1.3.8.1 1999/12/07 20:53:26 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLViewer.cc,v 1.4 1999/12/15 14:54:08 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 27th March 1996
@@ -198,7 +198,7 @@ void G4OpenGLViewer::HaloingSecondPass () {
void G4OpenGLViewer::HLRFirstPass () {
G4cout << "First pass HLR" << endl;
G4cout << "First pass HLR" << G4endl;
//Hidden line drawing requires three renderings to different buffers, so it
//cannot be treated in G4OpenGLSceneHandler alone (as can wireframe or hidden
@@ -243,7 +243,7 @@ void G4OpenGLViewer::HLRFirstPass () {
void G4OpenGLViewer::HLRSecondPass () {
G4cout << "Second pass HLR" << endl;
G4cout << "Second pass HLR" << G4endl;
//2) Use the stencil buffer to mask out pixels where stencil value = 1, and
// render to the stencil buffer as depth tested filled polygons.
@@ -266,7 +266,7 @@ void G4OpenGLViewer::HLRThirdPass () {
//3) Turn off the stencil buffer, turn on the colour buffer
// and render polygons in wireframe mode.
G4cout << "Third pass HLR" << endl;
G4cout << "Third pass HLR" << G4endl;
glDisable (GL_STENCIL_TEST);
glColorMask (GL_TRUE, GL_TRUE, GL_TRUE, GL_TRUE);
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLWin32Viewer.cc,v 1.1.8.1 1999/12/07 20:53:27 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLWin32Viewer.cc,v 1.2 1999/12/15 14:54:09 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// G4OpenGLWin32Viewer : Class to provide WindowsNT specific
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXViewer.cc,v 1.4.8.1 1999/12/07 20:53:27 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXViewer.cc,v 1.6 1999/12/15 18:08:30 gcosmo Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 7th February 1997
@@ -44,8 +44,11 @@
#define USE_DEFAULT_COLORMAP 1
#define USE_STANDARD_COLORMAP 0
static Bool WaitForNotify (Display*, XEvent* e, char* arg) {
return (e->type == MapNotify) && (e->xmap.window == (Window) arg);
extern "C"
{
static Bool WaitForNotify (Display*, XEvent* e, char* arg) {
return (e->type == MapNotify) && (e->xmap.window == (Window) arg);
}
}
void G4OpenGLXViewer::SetView () {
@@ -73,7 +76,7 @@ void G4OpenGLXViewer::GetXConnection () {
dpy = XOpenDisplay (0);
if (!dpy) {
fViewId = -1; // This flags an error.
G4cerr << "G4OpenGLViewer::G4OpenGLViewer couldn't open display." << endl;
G4cerr << "G4OpenGLViewer::G4OpenGLViewer couldn't open display." << G4endl;
return;
}
@@ -81,7 +84,7 @@ void G4OpenGLXViewer::GetXConnection () {
if (!glXQueryExtension (dpy, &errorBase, &eventBase)) {
fViewId = -1; // This flags an error.
G4cerr << "G4OpenGLViewer::G4OpenGLViewer X Server has no GLX extension."
<< endl;
<< G4endl;
return;
}
}
@@ -93,7 +96,7 @@ void G4OpenGLXViewer::CreateGLXContext (XVisualInfo* v) {
if (!XGetWindowAttributes(dpy, XRootWindow (dpy, vi -> screen), &xwa)) {
fViewId = -1; // This flags an error.
G4cerr << "G4OpenGLViewer::G4OpenGLViewer couldn't return window attributes"
<< endl;
<< G4endl;
return;
}
@@ -102,7 +105,7 @@ void G4OpenGLXViewer::CreateGLXContext (XVisualInfo* v) {
if (!cx) {
fViewId = -1; // This flags an error.
G4cerr << "G4OpenGLViewer::G4OpenGLViewer couldn't create context."
<< endl;
<< G4endl;
return;
}
@@ -132,19 +135,19 @@ void G4OpenGLXViewer::CreateGLXContext (XVisualInfo* v) {
cmap = standardCmaps[i].colormap;
XFree (standardCmaps);
}
G4cout << "Got standard cmap" << endl;
G4cout << "Got standard cmap" << G4endl;
} else {
cmap = XCreateColormap (dpy,
XRootWindow(dpy, vi -> screen),
vi -> visual,
AllocNone);
G4cout << "Created own cmap" << endl;
G4cout << "Created own cmap" << G4endl;
}
if (!cmap) {
fViewId = -1; // This flags an error.
G4cerr << "G4OpenGLViewer::G4OpenGLViewer failed to allocate a Colormap."
<< endl;
<< G4endl;
return;
}
@@ -174,7 +177,7 @@ void G4OpenGLXViewer::CreateMainWindow () {
WinSize_y = fVP.GetWindowSizeHintY ();
x_origin = xwa.x;
y_origin = xwa.y;
G4cout << "Window name: " << fName << endl;
G4cout << "Window name: " << fName << G4endl;
strncpy (charViewName, fName, 100);
char *window_name = charViewName;
char *icon_name = charViewName;
@@ -273,7 +276,7 @@ G4OpenGLXViewer::~G4OpenGLXViewer () {
void G4OpenGLXViewer::print() {
//cout << "print_col_callback requested with file name: " << print_string << endl;
//cout << "print_col_callback requested with file name: " << print_string << G4endl;
if (vectored_ps) {
G4int size = 5000000;
@@ -651,19 +654,22 @@ typedef struct _DepthIndex {
GLfloat depth;
} DepthIndex;
static int
compare(const void *a, const void *b)
extern "C"
{
DepthIndex *p1 = (DepthIndex *) a;
DepthIndex *p2 = (DepthIndex *) b;
GLfloat diff = p2->depth - p1->depth;
static int
compare(const void *a, const void *b)
{
DepthIndex *p1 = (DepthIndex *) a;
DepthIndex *p2 = (DepthIndex *) b;
GLfloat diff = p2->depth - p1->depth;
if (diff > 0.0) {
return 1;
} else if (diff < 0.0) {
return -1;
} else {
return 0;
if (diff > 0.0) {
return 1;
} else if (diff < 0.0) {
return -1;
} else {
return 0;
}
}
}
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmBox.cc,v 1.2.8.1 1999/12/07 20:53:27 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmBox.cc,v 1.3 1999/12/15 14:54:09 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//Box container class
@@ -36,7 +36,7 @@ void G4OpenGLXmBox::AddChild (G4OpenGLXmVWidgetComponent* component)
XtVaGetValues (box_row_col,
XmNnumChildren, &num_children,
NULL);
// G4cout << name << " now parents " << num_children << " children." << endl;
// G4cout << name << " now parents " << num_children << " children." << G4endl;
}
void G4OpenGLXmBox::AddYourselfTo (G4OpenGLXmVWidgetShell* window)
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmConvenienceRoutines.cc,v 1.2.8.1 1999/12/07 20:53:27 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmConvenienceRoutines.cc,v 1.3 1999/12/15 14:54:09 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 16th April 1997
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmFourArrowButtons.cc,v 1.2.8.1 1999/12/07 20:53:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmFourArrowButtons.cc,v 1.3 1999/12/15 14:54:09 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//Four arrow buttons class. Inherits from G4OpenGLXmVWidgetComponent
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmFramedBox.cc,v 1.2.8.1 1999/12/07 20:53:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmFramedBox.cc,v 1.3 1999/12/15 14:54:09 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//Framed box container class
@@ -34,7 +34,7 @@ void G4OpenGLXmFramedBox::AddChild (G4OpenGLXmVWidgetComponent* component)
XtVaGetValues (box_row_col,
XmNnumChildren, &num_children,
NULL);
// G4cout << name << " now parents " << num_children << " children." << endl;
// G4cout << name << " now parents " << num_children << " children." << G4endl;
}
void G4OpenGLXmFramedBox::AddYourselfTo (G4OpenGLXmVWidgetShell* window)
@@ -5,8 +5,8 @@
// based on the Program) you indicate your acceptance of this statement,
// and all its terms.
//
// $Id: G4OpenGLXmMainMenubarCallbacks.cc,v 1.3.8.1 1999/12/07 20:53:28 gunter Exp $
// GEANT4 tag $Name: geant4-01-00 $
// $Id: G4OpenGLXmMainMenubarCallbacks.cc,v 1.4 1999/12/15 14:54:10 gunter Exp $
// GEANT4 tag $Name: geant4-01-01 $
//
//
// Andrew Walkden 16th April 1997
@@ -34,11 +34,7 @@
#include "G4OpenGLXmTopLevelShell.hh"
#include "G4OpenGLXmSeparator.hh"
#ifdef WIN32
#include <strstrea.h>
#else
#include <strstream.h>
#endif
#include "g4std/strstream"
void G4OpenGLXmViewer::actions_callback (Widget w,
XtPointer clientData,
@@ -62,9 +58,9 @@ void G4OpenGLXmViewer::actions_callback (Widget w,
if (!pView->fprotation_top) {
const int rot_len = 50;
char* frot_Name = new char [rot_len];
ostrstream rot_ost (frot_Name, rot_len);
rot_ost.seekp (ios::beg);
rot_ost << pView->GetScene()->GetSceneId() << '-' << pView->fViewId << ends;
G4std::ostrstream rot_ost (frot_Name, rot_len);
rot_ost.seekp (G4std::ios::beg);
rot_ost << pView->GetScene()->GetSceneId() << '-' << pView->fViewId << G4std::ends;
pView->fprotation_top = new G4OpenGLXmTopLevelShell (pView,
frot_Name);
@@ -147,9 +143,9 @@ void G4OpenGLXmViewer::actions_callback (Widget w,
if (!pView->fppanning_top) {
const int pan_len = 50;
char* fpan_Name = new char [pan_len];
ostrstream pan_ost (fpan_Name, pan_len);
pan_ost.seekp (ios::beg);
pan_ost << pView->GetScene()->GetSceneId() << '-' << pView->fViewId << ends;
G4std::ostrstream pan_ost (fpan_Name, pan_len);
pan_ost.seekp (G4std::ios::beg);
pan_ost << pView->GetScene()->GetSceneId() << '-' << pView->fViewId << G4std::ends;
pView->fppanning_top = new G4OpenGLXmTopLevelShell (pView,
fpan_Name);
@@ -247,9 +243,9 @@ void G4OpenGLXmViewer::actions_callback (Widget w,
if (!pView->fpsetting_top) {
const int set_len = 50;
char* fset_Name = new char [set_len];
ostrstream set_ost (fset_Name, set_len);
set_ost.seekp (ios::beg);
set_ost << pView->GetScene()->GetSceneId() << '-' << pView->fViewId << ends;
G4std::ostrstream set_ost (fset_Name, set_len);
set_ost.seekp (G4std::ios::beg);
set_ost << pView->GetScene()->GetSceneId() << '-' << pView->fViewId << G4std::ends;
pView->fpsetting_top = new G4OpenGLXmTopLevelShell(pView,
fset_Name);
@@ -328,9 +324,9 @@ void G4OpenGLXmViewer::misc_callback (Widget w,
const int misc_len = 50;
char* fmisc_Name = new char [misc_len];
ostrstream misc_ost (fmisc_Name, misc_len);
misc_ost.seekp (ios::beg);
misc_ost << pView->GetScene()->GetSceneId() << '-' << pView->fViewId << ends;
G4std::ostrstream misc_ost (fmisc_Name, misc_len);
misc_ost.seekp (G4std::ios::beg);
misc_ost << pView->GetScene()->GetSceneId() << '-' << pView->fViewId << G4std::ends;
pView->fpmiscellany_top = new G4OpenGLXmTopLevelShell (pView,
fmisc_Name);
@@ -423,9 +419,9 @@ void G4OpenGLXmViewer::misc_callback (Widget w,
const int print_len = 50;
char* fprint_Name = new char [print_len];
ostrstream print_ost (fprint_Name, print_len);
print_ost.seekp (ios::beg);
print_ost << pView->GetScene()->GetSceneId() << '-' << pView->fViewId << ends;
G4std::ostrstream print_ost (fprint_Name, print_len);
print_ost.seekp (G4std::ios::beg);
print_ost << pView->GetScene()->GetSceneId() << '-' << pView->fViewId << G4std::ends;
pView->fpprint_top = new G4OpenGLXmTopLevelShell (pView,
fprint_Name);

Some files were not shown because too many files have changed in this diff Show More