G4ScaleModel Class Reference

#include <G4ScaleModel.hh>

Inheritance diagram for G4ScaleModel:

G4VModel

Public Member Functions

 G4ScaleModel (const G4Scale &)
virtual ~G4ScaleModel ()
virtual void DescribeYourselfTo (G4VGraphicsScene &)

Detailed Description

Definition at line 46 of file G4ScaleModel.hh.


Constructor & Destructor Documentation

G4ScaleModel::G4ScaleModel ( const G4Scale  ) 

Definition at line 40 of file G4ScaleModel.cc.

References G4VModel::fGlobalDescription, G4VModel::fGlobalTag, G4VModel::fType, G4Scale::GetAnnotation(), G4Scale::GetDirection(), G4Scale::x, G4Scale::y, and G4Scale::z.

00040                                                : fScale(scale) {
00041   fType = "G4ScaleModel";
00042   fGlobalTag = "G4ScaleModel: " + fScale.GetAnnotation();
00043   switch (fScale.GetDirection()) {
00044   case G4Scale::x:
00045     fGlobalTag += " x";
00046     break;
00047   case G4Scale::y:
00048     fGlobalTag += " y";
00049     break;
00050   case G4Scale::z:
00051     fGlobalTag += " z";
00052     break;
00053   }
00054   fGlobalDescription = fGlobalTag;
00055 }

G4ScaleModel::~G4ScaleModel (  )  [virtual]

Definition at line 38 of file G4ScaleModel.cc.

00038 {}


Member Function Documentation

void G4ScaleModel::DescribeYourselfTo ( G4VGraphicsScene  )  [virtual]

Implements G4VModel.

Definition at line 57 of file G4ScaleModel.cc.

References G4VGraphicsScene::AddPrimitive(), G4VGraphicsScene::BeginPrimitives(), and G4VGraphicsScene::EndPrimitives().

00057                                                                      {
00058   sceneHandler.BeginPrimitives ();
00059   sceneHandler.AddPrimitive (fScale);
00060   sceneHandler.EndPrimitives ();
00061 }


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