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

#include <G4OpenGLXmFramedBox.hh>

+ Inheritance diagram for G4OpenGLXmFramedBox:

Public Member Functions

 G4OpenGLXmFramedBox (const char *=NULL, G4bool=False)
 
virtual ~G4OpenGLXmFramedBox ()
 
void AddChild (G4OpenGLXmVWidgetComponent *)
 
void AddYourselfTo (G4OpenGLXmVWidgetShell *)
 
- Public Member Functions inherited from G4OpenGLXmBox
 G4OpenGLXmBox (const char *=NULL, G4bool=False)
 
virtual ~G4OpenGLXmBox ()
 
Widget * GetPointerToParent ()
 
Widget * GetPointerToWidget ()
 
const char * GetName ()
 
void SetName (const char *)
 
- Public Member Functions inherited from G4OpenGLXmVWidgetContainer
 G4OpenGLXmVWidgetContainer ()
 
virtual ~G4OpenGLXmVWidgetContainer ()
 
- 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 G4OpenGLXmBox
const char * name
 
Widget * parent
 
Widget box_row_col
 
G4bool radio
 
- Protected Attributes inherited from G4OpenGLXmVWidgetObject
G4OpenGLXmViewerpView
 
Colormap cmap
 
Pixel borcol
 
Pixel bgnd
 
unsigned int depth
 
Visual * visual
 
Widget top
 

Detailed Description

Definition at line 41 of file G4OpenGLXmFramedBox.hh.

Constructor & Destructor Documentation

◆ G4OpenGLXmFramedBox()

G4OpenGLXmFramedBox::G4OpenGLXmFramedBox ( const char * n = NULL,
G4bool r = False )

Definition at line 37 of file G4OpenGLXmFramedBox.cc.

38 :
39G4OpenGLXmBox (n, r)
40{
41 frame = NULL;
42}
G4OpenGLXmBox(const char *=NULL, G4bool=False)

◆ ~G4OpenGLXmFramedBox()

G4OpenGLXmFramedBox::~G4OpenGLXmFramedBox ( )
virtual

Definition at line 44 of file G4OpenGLXmFramedBox.cc.

45{}

Member Function Documentation

◆ AddChild()

void G4OpenGLXmFramedBox::AddChild ( G4OpenGLXmVWidgetComponent * component)
virtual

Reimplemented from G4OpenGLXmBox.

Definition at line 47 of file G4OpenGLXmFramedBox.cc.

48{
49 component->AddYourselfTo(this);
50 Cardinal num_children;
51 XtVaGetValues (box_row_col,
52 XmNnumChildren, &num_children,
53 NULL);
54// G4cout << name << " now parents " << num_children << " children." << G4endl;
55}
virtual void AddYourselfTo(G4OpenGLXmVWidgetContainer *)=0

Referenced by G4OpenGLXmViewer::actions_callback(), and G4OpenGLXmViewer::misc_callback().

◆ AddYourselfTo()

void G4OpenGLXmFramedBox::AddYourselfTo ( G4OpenGLXmVWidgetShell * window)
virtual

Reimplemented from G4OpenGLXmBox.

Definition at line 57 of file G4OpenGLXmFramedBox.cc.

58{
59
60 pView = window->GetView ();
61 ProcesspView ();
62 char framename[50];
63 strcpy (framename, name);
64 strcat (framename, "_frame");
65
66 parent = window->GetPointerToWidget ();
67 frame = XtVaCreateManagedWidget (framename,
68 xmFrameWidgetClass,
69 *parent,
70
71 XtNvisual, visual,
72 XtNdepth, depth,
73 XtNcolormap, cmap,
74 XtNborderColor, borcol,
75 XtNbackground, bgnd,
76
77 NULL);
78
79
80
81 box_row_col = XtVaCreateManagedWidget (name,
82 xmRowColumnWidgetClass,
83 frame,
84
85 XmNadjustMargin, True,
86 XmNisHomogeneous, False,
87 XmNlabelString, (XmString)name,
88 XmNradioAlwaysOne, radio,
89 XmNradioBehavior, radio,
90
91 XtNvisual, visual,
92 XtNdepth, depth,
93 XtNcolormap, cmap,
94 XtNborderColor, borcol,
95 XtNbackground, bgnd,
96
97 NULL);
98
99}
const char * name
virtual Widget * GetPointerToWidget()=0

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