Geant4-11
Public Member Functions | Protected Attributes | Private Member Functions
G4CallbackModel< F > Class Template Reference

#include <G4CallbackModel.hh>

Inheritance diagram for G4CallbackModel< F >:
G4VModel

Public Member Functions

void DescribeYourselfTo (G4VGraphicsScene &sceneHandler)
 
 G4CallbackModel (F *function)
 
virtual G4String GetCurrentDescription () const
 
virtual G4String GetCurrentTag () const
 
const G4VisExtent & GetExtent () const
 
const G4String & GetGlobalDescription () const
 
const G4String & GetGlobalTag () const
 
const G4ModelingParameters * GetModelingParameters () const
 
const G4String & GetType () const
 
void SetExtent (const G4VisExtent &)
 
void SetGlobalDescription (const G4String &)
 
void SetGlobalTag (const G4String &)
 
void SetModelingParameters (const G4ModelingParameters *)
 
void SetType (const G4String &)
 
virtual G4bool Validate (G4bool warn=true)
 
 ~G4CallbackModel ()
 

Protected Attributes

G4VisExtent fExtent
 
F * fFunction
 
G4String fGlobalDescription
 
G4String fGlobalTag
 
const G4ModelingParameters * fpMP
 
G4String fType
 

Private Member Functions

 G4CallbackModel (const G4CallbackModel &)
 
G4CallbackModel & operator= (const G4CallbackModel &)
 

Detailed Description

template<class F>
class G4CallbackModel< F >

Definition at line 55 of file G4CallbackModel.hh.

Constructor & Destructor Documentation

◆ G4CallbackModel() [1/2]

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

Definition at line 58 of file G4CallbackModel.hh.

58 :
G4double(* function)(G4double)

◆ ~G4CallbackModel()

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

Definition at line 60 of file G4CallbackModel.hh.

60{}

◆ G4CallbackModel() [2/2]

template<class F >
G4CallbackModel< F >::G4CallbackModel ( const G4CallbackModel< F > &  )
private

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

References G4VModel::fpMP.

◆ GetCurrentDescription()

G4String G4VModel::GetCurrentDescription ( ) const
virtualinherited

Reimplemented in G4GPSModel, and G4PhysicalVolumeModel.

Definition at line 51 of file G4VModel.cc.

51 {
52 // Override in concrete class if concept of "current" is meaningful.
53 return fGlobalDescription;
54}
G4String fGlobalDescription
Definition: G4VModel.hh:100

References G4VModel::fGlobalDescription.

Referenced by G4OpenGLStoredQtSceneHandler::ExtraPOProcessing().

◆ GetCurrentTag()

G4String G4VModel::GetCurrentTag ( ) const
virtualinherited

Reimplemented in G4GPSModel, and G4PhysicalVolumeModel.

Definition at line 46 of file G4VModel.cc.

46 {
47 // Override in concrete class if concept of "current" is meaningful.
48 return fGlobalTag;
49}
G4String fGlobalTag
Definition: G4VModel.hh:99

References G4VModel::fGlobalTag.

Referenced by G4Qt3DSceneHandler::AddPrimitive(), and G4ToolsSGSceneHandler::AddPrimitive().

◆ GetExtent()

const G4VisExtent & G4VModel::GetExtent ( ) const
inherited

◆ GetGlobalDescription()

const G4String & G4VModel::GetGlobalDescription ( ) const
inherited

◆ GetGlobalTag()

const G4String & G4VModel::GetGlobalTag ( ) const
inherited

◆ GetModelingParameters()

const G4ModelingParameters * G4VModel::GetModelingParameters ( ) const
inherited

◆ GetType()

const G4String & G4VModel::GetType ( ) const
inherited

◆ operator=()

template<class F >
G4CallbackModel & G4CallbackModel< F >::operator= ( const G4CallbackModel< F > &  )
private

◆ SetExtent()

void G4VModel::SetExtent ( const G4VisExtent &  )
inherited

◆ SetGlobalDescription()

void G4VModel::SetGlobalDescription ( const G4String &  )
inherited

◆ SetGlobalTag()

void G4VModel::SetGlobalTag ( const G4String &  )
inherited

◆ SetModelingParameters()

void G4VModel::SetModelingParameters ( const G4ModelingParameters *  )
inherited

◆ SetType()

void G4VModel::SetType ( const G4String &  )
inherited

◆ Validate()

G4bool G4VModel::Validate ( G4bool  warn = true)
virtualinherited

Reimplemented in G4PhysicalVolumeModel, and G4LogicalVolumeModel.

Definition at line 56 of file G4VModel.cc.

56 {
57 return true;
58}

Field Documentation

◆ fExtent

G4VisExtent G4VModel::fExtent
protectedinherited

◆ fFunction

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

Definition at line 67 of file G4CallbackModel.hh.

◆ fGlobalDescription

G4String G4VModel::fGlobalDescription
protectedinherited

◆ fGlobalTag

G4String G4VModel::fGlobalTag
protectedinherited

◆ fpMP

const G4ModelingParameters* G4VModel::fpMP
protectedinherited

◆ fType

G4String G4VModel::fType
protectedinherited

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