| Message: Re: G4VVisPrim in Geant4.7.1 and G4VVisManager in Geant4.8.0 | Not Logged In (login) |
|
Thank you for your reply. In the simulation package I have now, there is a class (pmtEllipsoid) inherited from G4CSGSolid. It is used to construct a new ellipsoid solid to describe the geometry of a PMT. In order to create a Polyhedron object in the method G4Polyhedron *CreatPolyhedron() with the new ellipsoid shape:
G4Polyhedron* pmtEllipsoid::CreatePolyhedron () const
{
return new pmtPolyhedronEllipsoid (fRx, fRy, fRz, fZCut1, fZCut2);
}
Another class which is inherited from G4Polyhedron is defined in class pmtEllipsoid:
class pmtPolyhedronEllipsoid : public G4Polyhedron {
public:
pmtPolyhedronEllipsoid(G4double rx, G4double ry, G4double rz, G4double ZCut1,
G4double ZCut2);
virtual G4Visible& operator=(const G4Visible &from)
{ return G4Visible::operator = (from); }
virtual G4VVisPrim& operator=(const G4VVisPrim &from)
{ return G4VVisPrim::operator = (from); }
};
pmtPolyhedronEllipsoid::pmtPolyhedronEllipsoid(G4double rx, G4double ry,
G4double rz, G4double ZCut1,
G4double ZCut2)
{
........
}
According to your explain, is it enough to get rid of the two lines code?
virtual G4VVisPrim& operator=(const G4VVisPrim &from)
{ return G4VVisPrim::operator = (from); }
|
| Inline Depth: | Outline Depth: | Add message: |
|
to: |