Geant4  10.02.p03
G4VisCommandSceneAddFrame::Frame Struct Reference
Collaboration diagram for G4VisCommandSceneAddFrame::Frame:

Public Member Functions

 Frame (G4double size, G4double width, const G4Colour &colour)
 
void operator() (G4VGraphicsScene &, const G4Transform3D &)
 

Public Attributes

G4double fSize
 
G4double fWidth
 
G4Colour fColour
 

Detailed Description

Definition at line 182 of file G4VisCommandsSceneAdd.hh.

Constructor & Destructor Documentation

◆ Frame()

G4VisCommandSceneAddFrame::Frame::Frame ( G4double  size,
G4double  width,
const G4Colour colour 
)
inline

Member Function Documentation

◆ operator()()

void G4VisCommandSceneAddFrame::Frame::operator() ( G4VGraphicsScene sceneHandler,
const G4Transform3D  
)

Definition at line 845 of file G4VisCommandsSceneAdd.cc.

846 {
847  G4Polyline frame;
848  frame.push_back(G4Point3D( fSize, fSize, 0.));
849  frame.push_back(G4Point3D(-fSize, fSize, 0.));
850  frame.push_back(G4Point3D(-fSize, -fSize, 0.));
851  frame.push_back(G4Point3D( fSize, -fSize, 0.));
852  frame.push_back(G4Point3D( fSize, fSize, 0.));
853  G4VisAttributes va;
854  va.SetLineWidth(fWidth);
855  va.SetColour(fColour);
856  frame.SetVisAttributes(va);
857  sceneHandler.BeginPrimitives2D();
858  sceneHandler.AddPrimitive(frame);
859  sceneHandler.EndPrimitives2D();
860 }
void SetColour(const G4Colour &)
void SetLineWidth(G4double)
HepGeom::Point3D< G4double > G4Point3D
Definition: G4Point3D.hh:35
virtual void AddPrimitive(const G4Polyline &)=0
void SetVisAttributes(const G4VisAttributes *)
Definition: G4Visible.cc:80
virtual void EndPrimitives2D()=0
virtual void BeginPrimitives2D(const G4Transform3D &objectTransformation=G4Transform3D())=0
Here is the call graph for this function:

Member Data Documentation

◆ fColour

G4Colour G4VisCommandSceneAddFrame::Frame::fColour

Definition at line 188 of file G4VisCommandsSceneAdd.hh.

◆ fSize

G4double G4VisCommandSceneAddFrame::Frame::fSize

Definition at line 186 of file G4VisCommandsSceneAdd.hh.

◆ fWidth

G4double G4VisCommandSceneAddFrame::Frame::fWidth

Definition at line 187 of file G4VisCommandsSceneAdd.hh.


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