#include <G4ScaleModel.hh>
Inheritance diagram for G4ScaleModel:
Public Member Functions | |
G4ScaleModel (const G4Scale &) | |
virtual | ~G4ScaleModel () |
virtual void | DescribeYourselfTo (G4VGraphicsScene &) |
Definition at line 46 of file G4ScaleModel.hh.
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] |
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 }