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: G4NISTStepReader.hh,v 1.1.4.1 1999/12/07 20:48:37 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4NISTStepReader.hh,v 1.2 1999/12/15 14:50:20 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#ifndef G4NISTSTEPFILEREADER_HH
|
||||
#define G4NISTSTEPFILEREADER_HH
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4StepFileReader.hh,v 1.1.4.1 1999/12/07 20:48:38 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4StepFileReader.hh,v 1.2 1999/12/15 14:50:20 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#ifndef G4STEPFILEREADER_HH
|
||||
#define G4STEPFILEREADER_HH
|
||||
|
||||
@@ -65,14 +65,14 @@ void G4AssemblyCreator::CreateG4Geometry(STEPentity& Ent)
|
||||
{
|
||||
//#define G4_STEPINTERFACE_DEBUG 1
|
||||
#ifdef G4_STEPINTERFACE_DEBUG
|
||||
G4cout<<"\n\n Creating the Context_Dependent_Shape_Representation"<<endl;
|
||||
G4cout<<"\n\n Creating the Context_Dependent_Shape_Representation"<<G4endl;
|
||||
#endif
|
||||
index = 0;
|
||||
|
||||
for( a=0; a< ConDepShapes; a++)
|
||||
{
|
||||
#ifdef G4_STEPINTERFACE_DEBUG
|
||||
G4cout<<"loop "<<a+1<<" of "<<ConDepShapes<<endl;
|
||||
G4cout<<"loop "<<a+1<<" of "<<ConDepShapes<<G4endl;
|
||||
#endif
|
||||
// Be careful, tmpindex not correspond to STEPfile_id !
|
||||
tmpindex =
|
||||
@@ -98,7 +98,7 @@ void G4AssemblyCreator::CreateG4Geometry(STEPentity& Ent)
|
||||
|
||||
#ifdef G4_STEPINTERFACE_DEBUG
|
||||
G4cout<<" Context_Dependent_Shape_Representation find in index "
|
||||
<<index<<endl;
|
||||
<<index<<G4endl;
|
||||
#endif
|
||||
|
||||
}
|
||||
@@ -112,13 +112,13 @@ void G4AssemblyCreator::CreateG4Geometry(STEPentity& Ent)
|
||||
else
|
||||
{
|
||||
#ifdef G4_STEPINTERFACE_DEBUG
|
||||
G4cout<<"\n Creating the Shape_Definition_Representation"<<endl;
|
||||
G4cout<<"\n Creating the Shape_Definition_Representation"<<G4endl;
|
||||
#endif
|
||||
|
||||
for(a=0; a< ShapeDefReps ; a++)
|
||||
{
|
||||
#ifdef G4_STEPINTERFACE_DEBUG
|
||||
G4cout<<"loop "<<a+1<<" of "<<ShapeDefReps<<endl;
|
||||
G4cout<<"loop "<<a+1<<" of "<<ShapeDefReps<<G4endl;
|
||||
#endif
|
||||
|
||||
// Be careful, tmpindex not correspond to STEPfile_id !
|
||||
@@ -142,7 +142,7 @@ void G4AssemblyCreator::CreateG4Geometry(STEPentity& Ent)
|
||||
|
||||
index = ent->STEPfile_id ;
|
||||
#ifdef G4_STEPINTERFACE_DEBUG
|
||||
G4cout<<" Shape_Definition_Representation find in index "<<index<<endl;
|
||||
G4cout<<" Shape_Definition_Representation find in index "<<index<<G4endl;
|
||||
#endif
|
||||
}
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ G4Axis2PlacementsCreator G4Axis2PlacementsCreator::csc;
|
||||
|
||||
G4Axis2PlacementsCreator::G4Axis2PlacementsCreator(){
|
||||
// G4cerr << " G4Axis2PlacementsCreator default constructor "
|
||||
// << " calling G4GeometryTable::RegisterObject(this) " << endl;
|
||||
// << " calling G4GeometryTable::RegisterObject(this) " << G4endl;
|
||||
G4GeometryTable::RegisterObject(this);
|
||||
}
|
||||
|
||||
|
||||
@@ -66,9 +66,9 @@ void* G4GeometryTable::CreateObject(STEPentity& Ent)
|
||||
#ifdef G4_STEPINTERFACE_DEBUG
|
||||
if (obj == 0)
|
||||
G4cout << "G4 object of type " << gctmp->Name()
|
||||
<< " not necessary" << endl;
|
||||
<< " not necessary" << G4endl;
|
||||
else
|
||||
//G4cout << "Created G4 object of type " << gctmp->Name() << endl;
|
||||
//G4cout << "Created G4 object of type " << gctmp->Name() << G4endl;
|
||||
#endif
|
||||
|
||||
return obj;
|
||||
@@ -76,7 +76,7 @@ void* G4GeometryTable::CreateObject(STEPentity& Ent)
|
||||
else
|
||||
{
|
||||
G4String err = "Geometry creator for entity " + name + " not found.";
|
||||
G4cout << err << endl;
|
||||
G4cout << err << G4endl;
|
||||
// G4Exception(err);
|
||||
return 0;
|
||||
}
|
||||
@@ -114,17 +114,17 @@ void G4GeometryTable::PrintObjectNames()
|
||||
G4int objectCount = RegisteredObjects.length();
|
||||
if(!objectCount)
|
||||
{
|
||||
G4cout << "No registered objects in table." << endl;
|
||||
G4cout << "No registered objects in table." << G4endl;
|
||||
return;
|
||||
}
|
||||
|
||||
G4cout << "Objects in table:" << endl;
|
||||
G4cout << "Objects in table:" << G4endl;
|
||||
|
||||
for(a=0;a<objectCount;a++)
|
||||
{
|
||||
gc = RegisteredObjects[a];
|
||||
name = gc->Name();
|
||||
G4cout << name << endl;
|
||||
G4cout << name << G4endl;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -5,8 +5,8 @@
|
||||
// based on the Program) you indicate your acceptance of this statement,
|
||||
// and all its terms.
|
||||
//
|
||||
// $Id: G4NISTStepReader.cc,v 1.1.4.1 1999/12/07 20:48:38 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-00 $
|
||||
// $Id: G4NISTStepReader.cc,v 1.2 1999/12/15 14:50:21 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-01-01 $
|
||||
//
|
||||
#include "G4NISTStepReader.hh"
|
||||
|
||||
@@ -43,14 +43,14 @@ void G4NISTStepReader::ReadSTEPFile(G4String STEPfilename)
|
||||
// Reading the STEPfile instantiates all the objects in it.
|
||||
// The instances get pointers into the InstMgr, and each type
|
||||
// and entity gets a pointer into the registry.
|
||||
G4cout << "\n### Reading exchange file from " << STEPfilename << endl;
|
||||
G4cout << "\n### Reading exchange file from " << STEPfilename << G4endl;
|
||||
sfile->ReadExchangeFile(STEPfilename);
|
||||
|
||||
// Just checking... ;-)
|
||||
G4cout << "\n### The InstMgr says there are ";
|
||||
G4cout << InstanceList.InstanceCount() << " instantiated objects" << endl;
|
||||
G4cout << InstanceList.InstanceCount() << " instantiated objects" << G4endl;
|
||||
|
||||
// G4cout << "\n### Here is the exchange file:" << endl << endl;
|
||||
// G4cout << "\n### Here is the exchange file:" << G4endl << G4endl;
|
||||
// sfile->WriteExchangeFile(G4cout);
|
||||
|
||||
delete sfile;
|
||||
|
||||
@@ -18,18 +18,18 @@ void G4ShapeDefinitionRepresentationCreator::CreateG4Geometry(STEPentity& Ent)
|
||||
/*
|
||||
// Output messages
|
||||
G4cout<<"Shape definition representation created with "
|
||||
<<"the Advanced Brep shape :"<<endl;
|
||||
<<"the Advanced Brep shape :"<<G4endl;
|
||||
|
||||
G4cout<<" - BBox of the solid :"<<endl;
|
||||
G4cout<<" - BBox of the solid :"<<G4endl;
|
||||
G4cout<< " box min: "
|
||||
<< ((G4BREPSolid*)ps->GetSolid())->GetBBox()->GetBoxMin().x()<< " "
|
||||
<< ((G4BREPSolid*)ps->GetSolid())->GetBBox()->GetBoxMin().y()<< " "
|
||||
<< ((G4BREPSolid*)ps->GetSolid())->GetBBox()->GetBoxMin().z()<< endl;
|
||||
<< ((G4BREPSolid*)ps->GetSolid())->GetBBox()->GetBoxMin().z()<< G4endl;
|
||||
|
||||
G4cout<< " box max: "
|
||||
<< ((G4BREPSolid*)ps->GetSolid())->GetBBox()->GetBoxMax().x()<< " "
|
||||
<< ((G4BREPSolid*)ps->GetSolid())->GetBBox()->GetBoxMax().y()<< " "
|
||||
<< ((G4BREPSolid*)ps->GetSolid())->GetBBox()->GetBoxMax().z()<< endl;
|
||||
<< ((G4BREPSolid*)ps->GetSolid())->GetBBox()->GetBoxMax().z()<< G4endl;
|
||||
|
||||
*/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user