G4TrajectoryDrawByAttributeFactory Class Reference

#include <G4TrajectoryModelFactories.hh>

Inheritance diagram for G4TrajectoryDrawByAttributeFactory:

G4VModelFactory< G4VTrajectoryModel >

Public Member Functions

 G4TrajectoryDrawByAttributeFactory ()
virtual ~G4TrajectoryDrawByAttributeFactory ()
ModelAndMessengers Create (const G4String &placement, const G4String &name)

Detailed Description

Definition at line 46 of file G4TrajectoryModelFactories.hh.


Constructor & Destructor Documentation

G4TrajectoryDrawByAttributeFactory::G4TrajectoryDrawByAttributeFactory (  ) 

Definition at line 42 of file G4TrajectoryModelFactories.cc.

00043   :G4VModelFactory<G4VTrajectoryModel>("drawByAttribute") 
00044 {}

G4TrajectoryDrawByAttributeFactory::~G4TrajectoryDrawByAttributeFactory (  )  [virtual]

Definition at line 46 of file G4TrajectoryModelFactories.cc.

00046 {}


Member Function Documentation

ModelAndMessengers G4TrajectoryDrawByAttributeFactory::Create ( const G4String placement,
const G4String name 
) [virtual]

Implements G4VModelFactory< G4VTrajectoryModel >.

Definition at line 49 of file G4TrajectoryModelFactories.cc.

References G4ModelCommandUtils::AddContextMsgrs().

00050 {
00051   Messengers messengers;
00052   
00053   // Create default context and model 
00054   G4VisTrajContext* context = new G4VisTrajContext("default");
00055 
00056   G4TrajectoryDrawByAttribute* model = new G4TrajectoryDrawByAttribute(name, context);
00057 
00058   // Create messengers for default context configuration
00059   G4ModelCommandUtils::AddContextMsgrs(context, messengers, placement+"/"+name);
00060 
00061   messengers.push_back(new G4ModelCmdVerbose<G4TrajectoryDrawByAttribute>(model, placement));
00062   messengers.push_back(new G4ModelCmdSetString<G4TrajectoryDrawByAttribute>(model, placement, "setAttribute"));
00063   messengers.push_back(new G4ModelCmdAddIntervalContext<G4TrajectoryDrawByAttribute>(model, placement, "addInterval"));
00064   messengers.push_back(new G4ModelCmdAddValueContext<G4TrajectoryDrawByAttribute>(model, placement, "addValue"));
00065 
00066   return ModelAndMessengers(model, messengers);
00067 }


The documentation for this class was generated from the following files:
Generated on Mon May 27 17:53:33 2013 for Geant4 by  doxygen 1.4.7