Geant4 11.1.1
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4OpenGLXmSeparator Class Reference

#include <G4OpenGLXmSeparator.hh>

+ Inheritance diagram for G4OpenGLXmSeparator:

Public Member Functions

 G4OpenGLXmSeparator (unsigned char=XmSINGLE_LINE)
 
virtual ~G4OpenGLXmSeparator ()
 
void AddYourselfTo (G4OpenGLXmVWidgetContainer *)
 
Widget * GetPointerToParent ()
 
Widget * GetPointerToWidget ()
 
- Public Member Functions inherited from G4OpenGLXmVWidgetComponent
 G4OpenGLXmVWidgetComponent ()
 
virtual ~G4OpenGLXmVWidgetComponent ()
 
virtual void AddYourselfTo (G4OpenGLXmVWidgetContainer *)=0
 
virtual Widget * GetPointerToParent ()=0
 
virtual Widget * GetPointerToWidget ()=0
 
- Public Member Functions inherited from G4OpenGLXmVWidgetObject
 G4OpenGLXmVWidgetObject ()
 
virtual ~G4OpenGLXmVWidgetObject ()
 
G4OpenGLXmViewerGetView ()
 
void ProcesspView ()
 

Additional Inherited Members

- Protected Member Functions inherited from G4OpenGLXmVWidgetObject
 G4OpenGLXmVWidgetObject (const G4OpenGLXmVWidgetObject &)
 
G4OpenGLXmVWidgetObjectoperator= (const G4OpenGLXmVWidgetObject &)
 
- Protected Attributes inherited from G4OpenGLXmVWidgetObject
G4OpenGLXmViewerpView
 
Colormap cmap
 
Pixel borcol
 
Pixel bgnd
 
unsigned int depth
 
Visual * visual
 
Widget top
 

Detailed Description

Definition at line 36 of file G4OpenGLXmSeparator.hh.

Constructor & Destructor Documentation

◆ G4OpenGLXmSeparator()

G4OpenGLXmSeparator::G4OpenGLXmSeparator ( unsigned char  l = XmSINGLE_LINE)

Definition at line 38 of file G4OpenGLXmSeparator.cc.

39: line(0)
40, parent(0)
41{
42 line_type = l;
43}

◆ ~G4OpenGLXmSeparator()

G4OpenGLXmSeparator::~G4OpenGLXmSeparator ( )
virtual

Definition at line 45 of file G4OpenGLXmSeparator.cc.

46{}

Member Function Documentation

◆ AddYourselfTo()

void G4OpenGLXmSeparator::AddYourselfTo ( G4OpenGLXmVWidgetContainer container)
virtual

Implements G4OpenGLXmVWidgetComponent.

Definition at line 48 of file G4OpenGLXmSeparator.cc.

49{
50
51 pView = container->GetView ();
52 ProcesspView ();
53
54 parent = container->GetPointerToWidget ();
55
56 line = XtVaCreateManagedWidget ("sep",
57 xmSeparatorWidgetClass,
58 *parent,
59 XmNseparatorType, line_type,
60 XmNmargin, 1,
61 XmNorientation, XmHORIZONTAL,
62
63 XtNvisual, visual,
64 XtNdepth, depth,
65 XtNcolormap, cmap,
66 XtNborderColor, borcol,
67 XtNbackground, bgnd,
68
69 NULL);
70}
virtual Widget * GetPointerToWidget()=0

◆ GetPointerToParent()

Widget * G4OpenGLXmSeparator::GetPointerToParent ( )
virtual

Implements G4OpenGLXmVWidgetComponent.

Definition at line 72 of file G4OpenGLXmSeparator.cc.

73{
74 return parent;
75}

◆ GetPointerToWidget()

Widget * G4OpenGLXmSeparator::GetPointerToWidget ( )
virtual

Implements G4OpenGLXmVWidgetComponent.

Definition at line 77 of file G4OpenGLXmSeparator.cc.

78{
79 return &line;
80}

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