Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4CallbackModel< F > Class Template Reference

#include <G4CallbackModel.hh>

+ Inheritance diagram for G4CallbackModel< F >:

Public Member Functions

 G4CallbackModel (F *function)
 
 ~G4CallbackModel ()
 
void DescribeYourselfTo (G4VGraphicsScene &sceneHandler)
 
- Public Member Functions inherited from G4VModel
 G4VModel (const G4ModelingParameters *=0)
 
virtual ~G4VModel ()
 
virtual void DescribeYourselfTo (G4VGraphicsScene &)=0
 
const G4ModelingParametersGetModelingParameters () const
 
const G4StringGetType () const
 
virtual G4String GetCurrentDescription () const
 
virtual G4String GetCurrentTag () const
 
const G4VisExtentGetExtent () const
 
const G4StringGetGlobalDescription () const
 
const G4StringGetGlobalTag () const
 
void SetModelingParameters (const G4ModelingParameters *)
 
void SetExtent (const G4VisExtent &)
 
void SetType (const G4String &)
 
void SetGlobalDescription (const G4String &)
 
void SetGlobalTag (const G4String &)
 
virtual G4bool Validate (G4bool warn=true)
 

Protected Attributes

F * fFunction
 
- Protected Attributes inherited from G4VModel
G4String fType
 
G4String fGlobalTag
 
G4String fGlobalDescription
 
G4VisExtent fExtent
 
const G4ModelingParametersfpMP
 

Detailed Description

template<class F>
class G4CallbackModel< F >

Definition at line 55 of file G4CallbackModel.hh.

Constructor & Destructor Documentation

◆ G4CallbackModel()

template<class F >
G4CallbackModel< F >::G4CallbackModel ( F *  function)
inline

Definition at line 58 of file G4CallbackModel.hh.

58 :
G4double(*)(G4double) function

◆ ~G4CallbackModel()

template<class F >
G4CallbackModel< F >::~G4CallbackModel ( )
inline

Definition at line 60 of file G4CallbackModel.hh.

60{}

Member Function Documentation

◆ DescribeYourselfTo()

template<class F >
void G4CallbackModel< F >::DescribeYourselfTo ( G4VGraphicsScene sceneHandler)
inlinevirtual

Implements G4VModel.

Definition at line 61 of file G4CallbackModel.hh.

61 {
62 (*fFunction)(sceneHandler, fpMP);
63 }
const G4ModelingParameters * fpMP
Definition: G4VModel.hh:102

Member Data Documentation

◆ fFunction

template<class F >
F* G4CallbackModel< F >::fFunction
protected

Definition at line 67 of file G4CallbackModel.hh.


The documentation for this class was generated from the following file: