32 #ifndef F04ElementField_h
33 #define F04ElementField_h 1
103 if(fMinX == -
DBL_MAX || fMinX > point[0]) fMinX = point[0];
104 if(fMinY == -
DBL_MAX || fMinY > point[1]) fMinY = point[1];
105 if(fMinZ == -
DBL_MAX || fMinZ > point[2]) fMinZ = point[2];
106 if(fMaxX ==
DBL_MAX || fMaxX < point[0]) fMaxX = point[0];
107 if(fMaxY ==
DBL_MAX || fMaxY < point[1]) fMaxY = point[1];
108 if(fMaxZ ==
DBL_MAX || fMaxZ < point[2]) fMaxZ = point[2];
115 if(point[2] < fMinZ || point[2] > fMaxZ)
return false;
116 if(point[0] < fMinX || point[0] > fMaxX)
return false;
117 if(point[1] < fMinY || point[1] > fMaxY)
return false;
151 G4double fMinX, fMinY, fMinZ, fMaxX, fMaxY, fMaxZ;
void SetMaxStep(G4double stp)
SetMaxStep(G4double) sets the max. step size.
virtual void SetMaxAllowedStep(G4double ustepMax)
void SetGlobalPoint(const G4double point[4])
F04ElementField(const G4ThreeVector, G4LogicalVolume *)
Constructor.
void SetUserLimits(G4UserLimits *pULimits)
virtual void AddFieldValue(const G4double point[4], G4double field[6]) const =0
static G4VisAttributes * GetVisAttribute(G4String color)
GetVisAttribute() returns the appropriate G4VisAttributes.
void SetColor(G4String c)
SetColor(G4String) sets the color.
virtual G4double GetLength()=0
virtual G4double GetWidth()=0
G4double GetMaxStep()
GetMaxStep() returns the max. step size.
G4String GetColor()
GetColor() returns the color.
virtual G4double GetHeight()=0
G4AffineTransform fGlobal2local
bool IsInBoundingBox(const G4double point[4]) const
G4LogicalVolume * fVolume
void Construct()
the actual implementation constructs the F04ElementField
void SetVisAttributes(const G4VisAttributes *pVA)
virtual ~F04ElementField()
Destructor.