Geant4 9.6.0
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 G4Transform3D &modelTransformation=G4Transform3D(), 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
 
const G4Transform3DGetTransformation () const
 
void SetModelingParameters (const G4ModelingParameters *)
 
void SetExtent (const G4VisExtent &)
 
void SetType (const G4String &)
 
void SetGlobalDescription (const G4String &)
 
void SetGlobalTag (const G4String &)
 
void SetTransformation (const G4Transform3D &)
 
virtual G4bool Validate (G4bool warn=true)
 

Protected Attributes

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

Detailed Description

template<class F>
class G4CallbackModel< F >

Definition at line 56 of file G4CallbackModel.hh.

Constructor & Destructor Documentation

◆ G4CallbackModel()

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

Definition at line 59 of file G4CallbackModel.hh.

59 :
G4double(* function)(G4double)

◆ ~G4CallbackModel()

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

Definition at line 61 of file G4CallbackModel.hh.

61{}

Member Function Documentation

◆ DescribeYourselfTo()

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

Implements G4VModel.

Definition at line 62 of file G4CallbackModel.hh.

62 {
63 (*fFunction)(sceneHandler, fTransform);
64 }
G4Transform3D fTransform
Definition: G4VModel.hh:112

Member Data Documentation

◆ fFunction

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

Definition at line 68 of file G4CallbackModel.hh.


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