Geant4-11
Public Member Functions | Data Fields
G4VisCommandSceneAddLogo2D::Logo2D Struct Reference

Public Member Functions

 Logo2D (G4VisManager *vm, G4int size, G4double x, G4double y, G4Text::Layout layout)
 
void operator() (G4VGraphicsScene &, const G4ModelingParameters *)
 

Data Fields

G4Text::Layout fLayout
 
G4VisManagerfpVisManager
 
G4int fSize
 
G4double fX
 
G4double fY
 

Detailed Description

Definition at line 341 of file G4VisCommandsSceneAdd.hh.

Constructor & Destructor Documentation

◆ Logo2D()

G4VisCommandSceneAddLogo2D::Logo2D::Logo2D ( G4VisManager vm,
G4int  size,
G4double  x,
G4double  y,
G4Text::Layout  layout 
)
inline

Member Function Documentation

◆ operator()()

void G4VisCommandSceneAddLogo2D::Logo2D::operator() ( G4VGraphicsScene sceneHandler,
const G4ModelingParameters  
)

Definition at line 2002 of file G4VisCommandsSceneAdd.cc.

2004{
2005 G4Text text("Geant4", G4Point3D(fX, fY, 0.));
2006 text.SetScreenSize(fSize);
2007 text.SetLayout(fLayout);
2008 G4VisAttributes textAtts(G4Colour::Brown());
2009 text.SetVisAttributes(textAtts);
2010 sceneHandler.BeginPrimitives2D();
2011 sceneHandler.AddPrimitive(text);
2012 sceneHandler.EndPrimitives2D();
2013}
HepGeom::Point3D< G4double > G4Point3D
Definition: G4Point3D.hh:34
static G4Colour Brown()
Definition: G4Colour.hh:160
Definition: G4Text.hh:72
virtual void BeginPrimitives2D(const G4Transform3D &objectTransformation=G4Transform3D())=0
virtual void EndPrimitives2D()=0
virtual void AddPrimitive(const G4Polyline &)=0

References G4Colour::Brown(), G4Text::SetLayout(), G4VMarker::SetScreenSize(), and G4Visible::SetVisAttributes().

Field Documentation

◆ fLayout

G4Text::Layout G4VisCommandSceneAddLogo2D::Logo2D::fLayout

Definition at line 351 of file G4VisCommandsSceneAdd.hh.

◆ fpVisManager

G4VisManager* G4VisCommandSceneAddLogo2D::Logo2D::fpVisManager

Definition at line 348 of file G4VisCommandsSceneAdd.hh.

◆ fSize

G4int G4VisCommandSceneAddLogo2D::Logo2D::fSize

Definition at line 349 of file G4VisCommandsSceneAdd.hh.

◆ fX

G4double G4VisCommandSceneAddLogo2D::Logo2D::fX

Definition at line 350 of file G4VisCommandsSceneAdd.hh.

◆ fY

G4double G4VisCommandSceneAddLogo2D::Logo2D::fY

Definition at line 350 of file G4VisCommandsSceneAdd.hh.


The documentation for this struct was generated from the following files: