CMS 3D CMS Logo

VisG4VisSceneHandler.cc File Reference

#include "VisGeant4/VisG4Core/interface/VisG4VisSceneHandler.h"
#include "VisGeant4/VisG4Core/interface/VisG4VisTransform3D.h"
#include "Iguana/Inventor/interface/IgSoCube.h"
#include "Iguana/Inventor/interface/IgSoG4Box.h"
#include "Iguana/Inventor/interface/IgSoRotSolid.h"
#include "Iguana/Inventor/interface/IgSoG4Trd.h"
#include "Iguana/Inventor/interface/IgSoG4Trap.h"
#include <Inventor/nodes/SoCoordinate4.h>
#include <Inventor/nodes/SoSeparator.h>
#include <Inventor/nodes/SoDrawStyle.h>
#include <Inventor/nodes/SoMaterial.h>
#include <Inventor/nodes/SoCube.h>
#include <Inventor/nodes/SoLineSet.h>
#include <Inventor/nodes/SoPointSet.h>
#include <Inventor/nodes/SoMarkerSet.h>
#include <Inventor/nodes/SoSphere.h>
#include <Inventor/nodes/SoFont.h>
#include <Inventor/nodes/SoText2.h>
#include <Inventor/nodes/SoFaceSet.h>
#include <Inventor/nodes/SoNormalBinding.h>
#include <Inventor/nodes/SoComplexity.h>
#include <Inventor/nodes/SoNurbsSurface.h>
#include <Inventor/nodes/SoTranslation.h>
#include <Inventor/nodes/SoMatrixTransform.h>
#include <Inventor/nodes/SoTransform.h>
#include <G4ThreeVector.hh>
#include <G4Point3D.hh>
#include <G4Normal3D.hh>
#include <G4Transform3D.hh>
#include <G4Polyline.hh>
#include <G4Scale.hh>
#include <G4Text.hh>
#include <G4Circle.hh>
#include <G4Square.hh>
#include <G4Polyhedron.hh>
#include <G4NURBS.hh>
#include <G4Box.hh>
#include <G4Tubs.hh>
#include <G4Cons.hh>
#include <G4Trap.hh>
#include <G4Trd.hh>
#include <G4Sphere.hh>
#include <G4Para.hh>
#include <G4Torus.hh>
#include <G4Polycone.hh>
#include <G4Polyhedra.hh>
#include <G4VisAttributes.hh>
#include <CLHEP/config/CLHEP.h>
#include <classlib/utils/DebugAids.h>
#include <classlib/utils/Log.h>

Go to the source code of this file.

Functions

static bool operator< (const G4Colour &x, const G4Colour &y)
static bool operator== (const G4Colour &x, const G4Colour &y)


Function Documentation

static bool operator< ( const G4Colour &  x,
const G4Colour &  y 
) [inline, static]

Definition at line 77 of file VisG4VisSceneHandler.cc.

References i.

00078 {
00079     float xrgba [4] = { x.GetRed (), x.GetGreen (), x.GetBlue (), x.GetAlpha () };
00080     float yrgba [4] = { y.GetRed (), y.GetGreen (), y.GetBlue (), y.GetAlpha () };
00081     for (unsigned i = 0; i < 4; ++i)
00082         if (xrgba [i] < yrgba [i])
00083             return true;
00084         else if (xrgba [i] > yrgba [i])
00085             return false;
00086 
00087     return false;
00088 }

static bool operator== ( const G4Colour &  x,
const G4Colour &  y 
) [inline, static]

Definition at line 66 of file VisG4VisSceneHandler.cc.

References i.

00067 {
00068     float xrgba [4] = { x.GetRed (), x.GetGreen (), x.GetBlue (), x.GetAlpha () };
00069     float yrgba [4] = { y.GetRed (), y.GetGreen (), y.GetBlue (), y.GetAlpha () };
00070     for (unsigned i = 0; i < 4; ++i)
00071         if (xrgba [i] != yrgba [i])
00072             return false;
00073 
00074     return true;
00075 }


Generated on Tue Jun 9 17:56:12 2009 for CMSSW by  doxygen 1.5.4