Import Geant4 1.1.0 source tree
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmPanningCallbacks.cc,v 1.2.8.1 1999/12/07 20:53:28 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4OpenGLXmPanningCallbacks.cc,v 1.3 1999/12/15 14:54:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 16th April 1997
|
||||
@@ -41,7 +41,7 @@ void G4OpenGLXmViewer::zoom_callback (Widget w,
|
||||
ten_to_the_dp *= 10.;
|
||||
}
|
||||
} else {
|
||||
G4cout << "dp is " << dp << endl;
|
||||
G4cout << "dp is " << dp << G4endl;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -77,7 +77,7 @@ void G4OpenGLXmViewer::dolly_callback (Widget w,
|
||||
ten_to_the_dp *= 10.;
|
||||
}
|
||||
} else {
|
||||
G4cout << "dp is " << dp << endl;
|
||||
G4cout << "dp is " << dp << G4endl;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -209,7 +209,7 @@ void G4OpenGLXmViewer::set_pan_sens_callback (Widget w,
|
||||
ten_to_the_dp *= 10.;
|
||||
}
|
||||
} else {
|
||||
G4cout << "dp is " << dp << endl;
|
||||
G4cout << "dp is " << dp << G4endl;
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmPushButton.cc,v 1.2.8.1 1999/12/07 20:53:28 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4OpenGLXmPushButton.cc,v 1.3 1999/12/15 14:54:10 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.cc,v 1.2.8.1 1999/12/07 20:53:28 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4OpenGLXmRadioButton.cc,v 1.3 1999/12/15 14:54:10 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: G4OpenGLXmRotationCallbacks.cc,v 1.4.8.1 1999/12/07 20:53:28 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4OpenGLXmRotationCallbacks.cc,v 1.5 1999/12/15 14:54:10 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: G4OpenGLXmSeparator.cc,v 1.2.8.1 1999/12/07 20:53:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4OpenGLXmSeparator.cc,v 1.3 1999/12/15 14:54:10 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.cc,v 1.2.8.1 1999/12/07 20:53:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4OpenGLXmSliderBar.cc,v 1.3 1999/12/15 14:54:10 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.cc,v 1.2.8.1 1999/12/07 20:53:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4OpenGLXmStyleCallbacks.cc,v 1.3 1999/12/15 14:54:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 16th April 1997
|
||||
@@ -250,7 +250,7 @@ void G4OpenGLXmViewer::projection_callback (Widget w,
|
||||
{
|
||||
if (pView->fov > 89.5 || pView->fov <= 0.0) {
|
||||
G4cout << "Field half angle should be 0 < angle <= 89.5 degrees.";
|
||||
G4cout << endl;
|
||||
G4cout << G4endl;
|
||||
}
|
||||
else {
|
||||
pView->fVP.SetFieldHalfAngle (pView->fov * deg);
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmTextField.cc,v 1.2.8.1 1999/12/07 20:53:29 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4OpenGLXmTextField.cc,v 1.3 1999/12/15 14:54:10 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.cc,v 1.2.8.1 1999/12/07 20:53:30 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4OpenGLXmTopLevelShell.cc,v 1.3 1999/12/15 14:54:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//Top level shell class
|
||||
|
||||
@@ -85,7 +85,7 @@ void G4OpenGLXmTopLevelShell::Realize ()
|
||||
XtVaGetValues (toplevel,
|
||||
XmNnumChildren, &num_children,
|
||||
NULL);
|
||||
// G4cout << name << " now parents " << num_children << " children." << endl;
|
||||
// G4cout << name << " now parents " << num_children << " children." << G4endl;
|
||||
XtManageChild (toplevel);
|
||||
XtRealizeWidget (toplevel);
|
||||
XtPopup (toplevel, XtGrabNonexclusive);
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmVWidgetComponent.cc,v 1.2.8.1 1999/12/07 20:53:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4OpenGLXmVWidgetComponent.cc,v 1.3 1999/12/15 14:54:10 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.cc,v 1.2.8.1 1999/12/07 20:53:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4OpenGLXmVWidgetContainer.cc,v 1.3 1999/12/15 14:54:10 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.cc,v 1.2.8.1 1999/12/07 20:53:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4OpenGLXmVWidgetObject.cc,v 1.3 1999/12/15 14:54:10 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.cc,v 1.2.8.1 1999/12/07 20:53:31 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4OpenGLXmVWidgetShell.cc,v 1.3 1999/12/15 14:54:10 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//Base class for all Motif shell widgets
|
||||
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmViewer.cc,v 1.2.8.1 1999/12/07 20:53:32 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4OpenGLXmViewer.cc,v 1.3 1999/12/15 14:54:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 10th February 1997
|
||||
@@ -68,7 +68,7 @@ void G4OpenGLXmViewer::GetXmConnection () {
|
||||
if (!toplevel) {
|
||||
fViewId = -1; // This flags an error.
|
||||
G4cerr << "G4OpenGLXmViewer::GetXmConnection unable to Initialize"
|
||||
" application context." << endl;
|
||||
" application context." << G4endl;
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -103,14 +103,14 @@ void G4OpenGLXmViewer::GetXmConnection () {
|
||||
if (!dpy) {
|
||||
fViewId = -1; // This flags an error.
|
||||
G4cerr << "G4OpenGLXmViewer::GetXmConnection unable to connect to display."
|
||||
<< endl;
|
||||
<< G4endl;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!glXQueryExtension (dpy, &errorBase, &eventBase)) {
|
||||
fViewId = -1; // This flags an error.
|
||||
G4cerr << "G4OpenGLXmViewer::GetXmConnection. X Server has no GLX extension."
|
||||
<< endl;;
|
||||
<< G4endl;;
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -163,7 +163,7 @@ void G4OpenGLXmViewer::CreateMainWindow () {
|
||||
XmStringFree (misc_str);
|
||||
XmStringFree (spec_str);
|
||||
|
||||
G4cout << "Created menubar" << endl;
|
||||
G4cout << "Created menubar" << G4endl;
|
||||
|
||||
|
||||
//*********Create style pulldown menu on menubar*********
|
||||
@@ -190,7 +190,7 @@ void G4OpenGLXmViewer::CreateMainWindow () {
|
||||
XmStringFree (draw_str);
|
||||
XmStringFree (bgnd_str);
|
||||
|
||||
// G4cout << "Created Style pulldown menu" << endl;
|
||||
// G4cout << "Created Style pulldown menu" << G4endl;
|
||||
|
||||
//Add Representation pullright menu to style cascade...
|
||||
polyhedron_str = XmStringCreateLocalized ("Polyhedron");
|
||||
@@ -232,7 +232,7 @@ void G4OpenGLXmViewer::CreateMainWindow () {
|
||||
XmStringFree (polyhedron_str);
|
||||
XmStringFree (nurbs_str);
|
||||
|
||||
// G4cout << "Created Representation pulldown menu" << endl;
|
||||
// G4cout << "Created Representation pulldown menu" << G4endl;
|
||||
|
||||
//Add Drawing pullright menu to style cascade...
|
||||
wireframe_str = XmStringCreateLocalized ("Wireframe");
|
||||
@@ -287,7 +287,7 @@ void G4OpenGLXmViewer::CreateMainWindow () {
|
||||
XmStringFree (hsr_str);
|
||||
XmStringFree (hlhsr_str);
|
||||
|
||||
// G4cout << "Created Drawing pullright menu" << endl;
|
||||
// G4cout << "Created Drawing pullright menu" << G4endl;
|
||||
|
||||
//Add Drawing pullright menu to style cascade...
|
||||
white_str = XmStringCreateLocalized ("White");
|
||||
@@ -327,7 +327,7 @@ void G4OpenGLXmViewer::CreateMainWindow () {
|
||||
XmStringFree (white_str);
|
||||
XmStringFree (black_str);
|
||||
|
||||
// G4cout << "Created Background color pullright menu" << endl;
|
||||
// G4cout << "Created Background color pullright menu" << G4endl;
|
||||
|
||||
//*********Create actions pulldown menu on menubar*********
|
||||
rot_str = XmStringCreateLocalized ("Rotation control panel");
|
||||
@@ -353,7 +353,7 @@ void G4OpenGLXmViewer::CreateMainWindow () {
|
||||
XmStringFree (rot_str);
|
||||
XmStringFree (pan_str);
|
||||
XmStringFree (set_str);
|
||||
G4cout << "Created Actions pulldown menu" << endl;
|
||||
G4cout << "Created Actions pulldown menu" << G4endl;
|
||||
|
||||
misc_str = XmStringCreateLocalized ("Miscellany control panel");
|
||||
exit_str = XmStringCreateLocalized ("Exit to G4Vis>");
|
||||
@@ -379,7 +379,7 @@ void G4OpenGLXmViewer::CreateMainWindow () {
|
||||
XmStringFree (misc_str);
|
||||
XmStringFree (exit_str);
|
||||
XmStringFree (print_str);
|
||||
G4cout << "Created Miscellany pulldown menu" << endl;
|
||||
G4cout << "Created Miscellany pulldown menu" << G4endl;
|
||||
|
||||
trans_str = XmStringCreateLocalized ("Transparency");
|
||||
anti_str = XmStringCreateLocalized ("Antialiasing");
|
||||
@@ -405,7 +405,7 @@ void G4OpenGLXmViewer::CreateMainWindow () {
|
||||
XmStringFree (anti_str);
|
||||
XmStringFree (halo_str);
|
||||
|
||||
// G4cout << "Created Special pulldown menu" << endl;
|
||||
// G4cout << "Created Special pulldown menu" << G4endl;
|
||||
|
||||
//Add Transparency pullright menu to special cascade...
|
||||
off_str = XmStringCreateLocalized ("Off");
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4OpenGLXmWindowHandlingCallbacks.cc,v 1.2.8.1 1999/12/07 20:53:33 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4OpenGLXmWindowHandlingCallbacks.cc,v 1.3 1999/12/15 14:54:11 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
//
|
||||
// Andrew Walkden 16th June 1997
|
||||
|
||||
Reference in New Issue
Block a user