Import Geant4 0.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: G4VMarker.cc,v 2.0 1998/07/02 17:31:01 gunter Exp $
|
||||
// GEANT4 tag $Name: geant4-00 $
|
||||
// $Id: G4VMarker.cc,v 1.4 1999/05/25 09:10:25 johna Exp $
|
||||
// GEANT4 tag $Name: geant4-00-01 $
|
||||
//
|
||||
//
|
||||
|
||||
@@ -14,6 +14,27 @@
|
||||
|
||||
#include "G4VisAttributes.hh"
|
||||
|
||||
G4VMarker::~G4VMarker () {}
|
||||
|
||||
G4Visible & G4VMarker::operator = (const G4Visible &right) {
|
||||
return G4Visible::operator = (right);
|
||||
}
|
||||
|
||||
G4VVisPrim & G4VMarker::operator = (const G4VVisPrim &right) {
|
||||
return G4VVisPrim::operator = (right);
|
||||
}
|
||||
|
||||
G4VMarker& G4VMarker::operator = (const G4VMarker& right) {
|
||||
if (&right == this) return *this;
|
||||
G4VVisPrim::operator = (right);
|
||||
fPosition = right.fPosition;
|
||||
fWorldSize = right.fWorldSize;
|
||||
fScreenSize = right.fScreenSize;
|
||||
fFillStyle = right.fFillStyle;
|
||||
fInfo = right.fInfo;
|
||||
return *this;
|
||||
}
|
||||
|
||||
ostream& operator << (ostream& os, const G4VMarker& marker) {
|
||||
os << "G4VMarker: position: " << marker.fPosition
|
||||
<< ", world size: " << marker.fWorldSize
|
||||
@@ -36,13 +57,19 @@ ostream& operator << (ostream& os, const G4VMarker& marker) {
|
||||
return os;
|
||||
}
|
||||
|
||||
G4bool operator != (const G4VMarker& m1, const G4VMarker& m2) {
|
||||
G4bool G4VMarker::operator != (const G4VMarker& m) const {
|
||||
if (
|
||||
(m1.fWorldSize != m2.fWorldSize) ||
|
||||
(m1.fScreenSize != m2.fScreenSize) ||
|
||||
(m1.fFillStyle != m2.fFillStyle) ||
|
||||
!(m1.fPosition == m2.fPosition)
|
||||
!(G4VVisPrim::operator == (m)) ||
|
||||
(fWorldSize != m.fWorldSize) ||
|
||||
(fScreenSize != m.fScreenSize) ||
|
||||
(fFillStyle != m.fFillStyle) ||
|
||||
!(fPosition == m.fPosition)
|
||||
)
|
||||
return true;
|
||||
return false;
|
||||
}
|
||||
|
||||
const G4String& G4VMarker::GetInfo() const { return fInfo ;}
|
||||
|
||||
void G4VMarker::SetInfo( const G4String& info ){ fInfo = info ;}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user