95 lines
3.9 KiB
C++
95 lines
3.9 KiB
C++
//
|
|
// ********************************************************************
|
|
// * DISCLAIMER *
|
|
// * *
|
|
// * The following disclaimer summarizes all the specific disclaimers *
|
|
// * of contributors to this software. The specific disclaimers,which *
|
|
// * govern, are listed with their locations in: *
|
|
// * http://cern.ch/geant4/license *
|
|
// * *
|
|
// * Neither the authors of this software system, nor their employing *
|
|
// * institutes,nor the agencies providing financial support for this *
|
|
// * work make any representation or warranty, express or implied, *
|
|
// * regarding this software system or assume any liability for its *
|
|
// * use. *
|
|
// * *
|
|
// * This code implementation is the intellectual property of the *
|
|
// * GEANT4 collaboration. *
|
|
// * By copying, distributing or modifying the Program (or any work *
|
|
// * based on the Program) you indicate your acceptance of this *
|
|
// * statement, and all its terms. *
|
|
// ********************************************************************
|
|
//
|
|
//
|
|
// $Id: G4oScene.hh,v 1.4.4.1 2001/06/28 19:06:33 gunter Exp $
|
|
// GEANT4 tag $Name: geant4-04-01 $
|
|
//
|
|
/* +---------------------- Copyright notice -------------------------------+ */
|
|
/* | Copyright (C) 1995, Guy Barrand, LAL Orsay, (barrand@lal.in2p3.fr) | */
|
|
/* | Permission to use, copy, modify, and distribute this software | */
|
|
/* | and its documentation for any purpose and without fee is hereby | */
|
|
/* | granted, provided that the above copyright notice appear in all | */
|
|
/* | copies and that both that copyright notice and this permission | */
|
|
/* | notice appear in supporting documentation. This software is | */
|
|
/* | provided "as is" without express or implied warranty. | */
|
|
/* +---------------------- Copyright notice -------------------------------+ */
|
|
|
|
#ifndef G4OSCENE_HH
|
|
#define G4OSCENE_HH
|
|
|
|
#include <G4VGraphicsScene.hh>
|
|
|
|
class G4PhysicalVolumeModel;
|
|
class G4VPhysicalVolume;
|
|
class G4LogicalVolume;
|
|
|
|
#include <ONode.h>
|
|
|
|
class G4oScene : public G4VGraphicsScene {
|
|
public:
|
|
//Inherited
|
|
void AddThis (const G4Box&);
|
|
void AddThis (const G4Cons&);
|
|
void AddThis (const G4Tubs&);
|
|
void AddThis (const G4Trd&);
|
|
void AddThis (const G4Trap&);
|
|
void AddThis (const G4Sphere&);
|
|
void AddThis (const G4Para&);
|
|
void AddThis (const G4Torus&);
|
|
void AddThis (const G4Polycone&);
|
|
void AddThis (const G4Polyhedra&);
|
|
void AddThis (const G4VSolid& solid); // For solids not above.
|
|
|
|
void BeginPrimitives (const G4Transform3D&);
|
|
void EndPrimitives ();
|
|
void AddPrimitive (const G4Polyline&);
|
|
void AddPrimitive (const G4Text&);
|
|
void AddPrimitive (const G4Circle&);
|
|
void AddPrimitive (const G4Square&);
|
|
void AddPrimitive (const G4Polymarker&);
|
|
void AddPrimitive (const G4Polyhedron&);
|
|
void AddPrimitive (const G4NURBS&);
|
|
|
|
void PreAddThis (const G4Transform3D& objectTransformation,
|
|
const G4VisAttributes& visAttribs);
|
|
void PostAddThis ();
|
|
|
|
void EstablishSpecials (G4PhysicalVolumeModel&);
|
|
|
|
//Local
|
|
G4oScene ();
|
|
~G4oScene ();
|
|
void SetNodeName (char*);
|
|
ONode GetNode ();
|
|
|
|
private:
|
|
static ONode node;
|
|
const G4Transform3D* fpAccTransf; // Accumulated transformation.
|
|
static char* nodeName;
|
|
void AddPolyhedron (G4Polyhedron*);
|
|
G4int fCurrentDepth; // Current depth of geom. hierarchy.
|
|
G4VPhysicalVolume* fpCurrentPV; // Current physical volume.
|
|
G4LogicalVolume* fpCurrentLV; // Current logical volume.
|
|
};
|
|
#endif
|