// // ******************************************************************** // * 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: G4Polymarker.cc,v 1.8 2003/06/16 16:55:24 gunter Exp $ // GEANT4 tag $Name: geant4-06-00 $ // // // John Allison November 1996 #include "G4Polymarker.hh" G4Polymarker::G4Polymarker (): fMarkerType (line) {} G4Polymarker::~G4Polymarker () {} G4Visible & G4Polymarker::operator = (const G4Visible &right) { return G4Visible::operator = (right); } G4VVisPrim & G4Polymarker::operator = (const G4VVisPrim &right) { return G4VVisPrim::operator = (right); } G4VMarker & G4Polymarker::operator = (const G4VMarker &right) { return G4VMarker::operator = (right); } G4Polymarker & G4Polymarker::operator = (const G4Polymarker &right) { if (&right == this) return *this; G4VMarker::operator = (right); fMarkerType = right.fMarkerType; return *this; } std::ostream& operator << (std::ostream& os, const G4Polymarker& marker) { os << "G4Polymarker: type: "; switch (marker.fMarkerType) { case G4Polymarker::line: os << "line"; break; case G4Polymarker::dots: os << "dots"; break; case G4Polymarker::circles: os << "circles"; break; case G4Polymarker::squares: os << "squares"; break; default: os << "unrecognised"; break; } os << "\n "; os << (G4VMarker) marker; os << (G4Point3DList) marker; return os; }