32 #ifndef F04ElementField_h
33 #define F04ElementField_h 1
106 if(fMinX == -
DBL_MAX || fMinX > point[0]) fMinX = point[0];
107 if(fMinY == -
DBL_MAX || fMinY > point[1]) fMinY = point[1];
108 if(fMinZ == -
DBL_MAX || fMinZ > point[2]) fMinZ = point[2];
109 if(fMaxX ==
DBL_MAX || fMaxX < point[0]) fMaxX = point[0];
110 if(fMaxY ==
DBL_MAX || fMaxY < point[1]) fMaxY = point[1];
111 if(fMaxZ ==
DBL_MAX || fMaxZ < point[2]) fMaxZ = point[2];
118 if(point[2] < fMinZ || point[2] > fMaxZ)
return false;
119 if(point[0] < fMinX || point[0] > fMaxX)
return false;
120 if(point[1] < fMinY || point[1] > fMaxY)
return false;
154 G4double fMinX, fMinY, fMinZ, fMaxX, fMaxY, fMaxZ;
void SetMaxStep(G4double stp)
SetMaxStep(G4double) sets the max. step size.
void Construct(G4VPhysicalVolume *currentWorld)
the actual implementation constructs the F04ElementField
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
void UpdateWorld(G4VPhysicalVolume *currentWorld)
G4AffineTransform fGlobal2local
bool IsInBoundingBox(const G4double point[4]) const
G4LogicalVolume * fVolume
void SetVisAttributes(const G4VisAttributes *pVA)
virtual ~F04ElementField()
Destructor.