Geant4-11
Public Member Functions | Protected Attributes | Private Member Functions | Private Attributes
G4OpenGLXmTopLevelShell Class Reference

#include <G4OpenGLXmTopLevelShell.hh>

Inheritance diagram for G4OpenGLXmTopLevelShell:
G4OpenGLXmVWidgetShell G4OpenGLXmVWidgetObject

Public Member Functions

void AddChild (G4OpenGLXmVWidgetContainer *)
 
 G4OpenGLXmTopLevelShell (G4OpenGLXmViewer *, char *)
 
char * GetName ()
 
Widget * GetPointerToWidget ()
 
G4OpenGLXmViewerGetView ()
 
void ProcesspView ()
 
void Realize ()
 
virtual ~G4OpenGLXmTopLevelShell ()
 

Protected Attributes

Pixel bgnd
 
Pixel borcol
 
Colormap cmap
 
unsigned int depth
 
G4OpenGLXmViewerpView
 
Widget top
 
Visual * visual
 

Private Member Functions

 G4OpenGLXmTopLevelShell (const G4OpenGLXmTopLevelShell &)
 
G4OpenGLXmTopLevelShelloperator= (const G4OpenGLXmTopLevelShell &)
 

Private Attributes

Widget frame
 
char * name
 
Widget top_box
 
Widget toplevel
 

Detailed Description

Definition at line 38 of file G4OpenGLXmTopLevelShell.hh.

Constructor & Destructor Documentation

◆ G4OpenGLXmTopLevelShell() [1/2]

G4OpenGLXmTopLevelShell::G4OpenGLXmTopLevelShell ( G4OpenGLXmViewer v,
char *  n 
)

Definition at line 37 of file G4OpenGLXmTopLevelShell.cc.

39{
40 pView = v;
41 ProcesspView ();
42 name = n;
43 toplevel = XtVaCreatePopupShell
44 (name,
45 topLevelShellWidgetClass,
46 top,
47
48 XtNiconName, name,
49 XtNtitle, name,
50 XmNdeleteResponse, XmDO_NOTHING,
51 XmNisHomogeneous, False,
52
53 XtNvisual, visual,
54 XtNdepth, depth,
55 XtNcolormap, cmap,
56 XtNborderColor, borcol,
57 XtNbackground, bgnd,
58 NULL);
59
60 frame = XtVaCreateManagedWidget (name,
61 xmFrameWidgetClass,
63
64 XtNvisual, visual,
65 XtNdepth, depth,
66 XtNcolormap, cmap,
67 XtNborderColor, borcol,
68 XtNbackground, bgnd,
69
70 NULL);
71
72
73
74 top_box = XtVaCreateManagedWidget (name,
75 xmRowColumnWidgetClass,
76 frame,
77
78 XmNadjustMargin, True,
79 XmNisHomogeneous, False,
80
81 XtNvisual, visual,
82 XtNdepth, depth,
83 XtNcolormap, cmap,
84 XtNborderColor, borcol,
85 XtNbackground, bgnd,
86
87 NULL);
88
89}

References G4OpenGLXmVWidgetObject::bgnd, G4OpenGLXmVWidgetObject::borcol, G4OpenGLXmVWidgetObject::cmap, G4OpenGLXmVWidgetObject::depth, frame, CLHEP::detail::n, name, G4OpenGLXmVWidgetObject::ProcesspView(), G4OpenGLXmVWidgetObject::pView, G4OpenGLXmVWidgetObject::top, top_box, toplevel, and G4OpenGLXmVWidgetObject::visual.

◆ ~G4OpenGLXmTopLevelShell()

G4OpenGLXmTopLevelShell::~G4OpenGLXmTopLevelShell ( )
virtual

Definition at line 91 of file G4OpenGLXmTopLevelShell.cc.

92{
93 XtDestroyWidget (toplevel);
94}

References toplevel.

◆ G4OpenGLXmTopLevelShell() [2/2]

G4OpenGLXmTopLevelShell::G4OpenGLXmTopLevelShell ( const G4OpenGLXmTopLevelShell )
private

Member Function Documentation

◆ AddChild()

void G4OpenGLXmTopLevelShell::AddChild ( G4OpenGLXmVWidgetContainer container)
virtual

Implements G4OpenGLXmVWidgetShell.

Definition at line 96 of file G4OpenGLXmTopLevelShell.cc.

97{
98 container->AddYourselfTo (this);
99}
virtual void AddYourselfTo(G4OpenGLXmVWidgetShell *)=0

References G4OpenGLXmVWidgetContainer::AddYourselfTo().

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

◆ GetName()

char * G4OpenGLXmTopLevelShell::GetName ( )

Definition at line 118 of file G4OpenGLXmTopLevelShell.cc.

119{
120 return name;
121}

References name.

◆ GetPointerToWidget()

Widget * G4OpenGLXmTopLevelShell::GetPointerToWidget ( )
virtual

Implements G4OpenGLXmVWidgetShell.

Definition at line 113 of file G4OpenGLXmTopLevelShell.cc.

114{
115 return &top_box;
116}

References top_box.

◆ GetView()

G4OpenGLXmViewer * G4OpenGLXmVWidgetObject::GetView ( )
inherited

◆ operator=()

G4OpenGLXmTopLevelShell & G4OpenGLXmTopLevelShell::operator= ( const G4OpenGLXmTopLevelShell )
private

◆ ProcesspView()

void G4OpenGLXmVWidgetObject::ProcesspView ( )
inherited

◆ Realize()

void G4OpenGLXmTopLevelShell::Realize ( )
virtual

Implements G4OpenGLXmVWidgetShell.

Definition at line 101 of file G4OpenGLXmTopLevelShell.cc.

102{
103 Cardinal num_children;
104 XtVaGetValues (toplevel,
105 XmNnumChildren, &num_children,
106 NULL);
107// G4cout << name << " now parents " << num_children << " children." << G4endl;
108 XtManageChild (toplevel);
109 XtRealizeWidget (toplevel);
110 XtPopup (toplevel, XtGrabNonexclusive);
111}

References toplevel.

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

Field Documentation

◆ bgnd

Pixel G4OpenGLXmVWidgetObject::bgnd
protectedinherited

◆ borcol

Pixel G4OpenGLXmVWidgetObject::borcol
protectedinherited

◆ cmap

Colormap G4OpenGLXmVWidgetObject::cmap
protectedinherited

◆ depth

unsigned int G4OpenGLXmVWidgetObject::depth
protectedinherited

◆ frame

Widget G4OpenGLXmTopLevelShell::frame
private

Definition at line 57 of file G4OpenGLXmTopLevelShell.hh.

Referenced by G4OpenGLXmTopLevelShell().

◆ name

char* G4OpenGLXmTopLevelShell::name
private

◆ pView

G4OpenGLXmViewer* G4OpenGLXmVWidgetObject::pView
protectedinherited

◆ top

Widget G4OpenGLXmVWidgetObject::top
protectedinherited

◆ top_box

Widget G4OpenGLXmTopLevelShell::top_box
private

Definition at line 56 of file G4OpenGLXmTopLevelShell.hh.

Referenced by G4OpenGLXmTopLevelShell(), and GetPointerToWidget().

◆ toplevel

Widget G4OpenGLXmTopLevelShell::toplevel
private

◆ visual

Visual* G4OpenGLXmVWidgetObject::visual
protectedinherited

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