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

#include <G4OpenGLXmFramedBox.hh>

Inheritance diagram for G4OpenGLXmFramedBox:
G4OpenGLXmBox G4OpenGLXmVWidgetContainer G4OpenGLXmVWidgetObject

Public Member Functions

void AddChild (G4OpenGLXmVWidgetComponent *)
 
void AddYourselfTo (G4OpenGLXmVWidgetShell *)
 
 G4OpenGLXmFramedBox (const char *=NULL, G4bool=False)
 
const char * GetName ()
 
Widget * GetPointerToParent ()
 
Widget * GetPointerToWidget ()
 
G4OpenGLXmViewerGetView ()
 
void ProcesspView ()
 
void SetName (const char *)
 
virtual ~G4OpenGLXmFramedBox ()
 

Protected Attributes

Pixel bgnd
 
Pixel borcol
 
Widget box_row_col
 
Colormap cmap
 
unsigned int depth
 
const char * name
 
Widget * parent
 
G4OpenGLXmViewerpView
 
G4bool radio
 
Widget top
 
Visual * visual
 

Private Member Functions

 G4OpenGLXmFramedBox (const G4OpenGLXmFramedBox &)
 
G4OpenGLXmFramedBoxoperator= (const G4OpenGLXmFramedBox &)
 

Private Attributes

Widget frame
 

Detailed Description

Definition at line 41 of file G4OpenGLXmFramedBox.hh.

Constructor & Destructor Documentation

◆ G4OpenGLXmFramedBox() [1/2]

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

Definition at line 37 of file G4OpenGLXmFramedBox.cc.

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

References frame.

◆ ~G4OpenGLXmFramedBox()

G4OpenGLXmFramedBox::~G4OpenGLXmFramedBox ( )
virtual

Definition at line 44 of file G4OpenGLXmFramedBox.cc.

45{}

◆ G4OpenGLXmFramedBox() [2/2]

G4OpenGLXmFramedBox::G4OpenGLXmFramedBox ( const G4OpenGLXmFramedBox )
private

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}
Widget box_row_col
virtual void AddYourselfTo(G4OpenGLXmVWidgetContainer *)=0

References G4OpenGLXmVWidgetComponent::AddYourselfTo(), and G4OpenGLXmBox::box_row_col.

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
Widget * parent
virtual Widget * GetPointerToWidget()=0

References G4OpenGLXmVWidgetObject::bgnd, G4OpenGLXmVWidgetObject::borcol, G4OpenGLXmBox::box_row_col, G4OpenGLXmVWidgetObject::cmap, G4OpenGLXmVWidgetObject::depth, frame, G4OpenGLXmVWidgetShell::GetPointerToWidget(), G4OpenGLXmVWidgetObject::GetView(), G4OpenGLXmBox::name, G4OpenGLXmBox::parent, G4OpenGLXmVWidgetObject::ProcesspView(), G4OpenGLXmVWidgetObject::pView, G4OpenGLXmBox::radio, and G4OpenGLXmVWidgetObject::visual.

◆ GetName()

const char * G4OpenGLXmBox::GetName ( )
inherited

Definition at line 96 of file G4OpenGLXmBox.cc.

97{
98 return name;
99}

References G4OpenGLXmBox::name.

◆ GetPointerToParent()

Widget * G4OpenGLXmBox::GetPointerToParent ( )
virtualinherited

Implements G4OpenGLXmVWidgetContainer.

Definition at line 86 of file G4OpenGLXmBox.cc.

87{
88 return parent;
89}

References G4OpenGLXmBox::parent.

◆ GetPointerToWidget()

Widget * G4OpenGLXmBox::GetPointerToWidget ( )
virtualinherited

Implements G4OpenGLXmVWidgetContainer.

Definition at line 91 of file G4OpenGLXmBox.cc.

92{
93 return &box_row_col;
94}

References G4OpenGLXmBox::box_row_col.

◆ GetView()

G4OpenGLXmViewer * G4OpenGLXmVWidgetObject::GetView ( )
inherited

◆ operator=()

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

◆ ProcesspView()

void G4OpenGLXmVWidgetObject::ProcesspView ( )
inherited

◆ SetName()

void G4OpenGLXmBox::SetName ( const char *  n)
inherited

Definition at line 101 of file G4OpenGLXmBox.cc.

102{
103 name = n;
104}

References CLHEP::detail::n, and G4OpenGLXmBox::name.

Field Documentation

◆ bgnd

Pixel G4OpenGLXmVWidgetObject::bgnd
protectedinherited

◆ borcol

Pixel G4OpenGLXmVWidgetObject::borcol
protectedinherited

◆ box_row_col

Widget G4OpenGLXmBox::box_row_col
protectedinherited

◆ cmap

Colormap G4OpenGLXmVWidgetObject::cmap
protectedinherited

◆ depth

unsigned int G4OpenGLXmVWidgetObject::depth
protectedinherited

◆ frame

Widget G4OpenGLXmFramedBox::frame
private

Definition at line 55 of file G4OpenGLXmFramedBox.hh.

Referenced by AddYourselfTo(), and G4OpenGLXmFramedBox().

◆ name

const char* G4OpenGLXmBox::name
protectedinherited

◆ parent

Widget* G4OpenGLXmBox::parent
protectedinherited

◆ pView

G4OpenGLXmViewer* G4OpenGLXmVWidgetObject::pView
protectedinherited

◆ radio

G4bool G4OpenGLXmBox::radio
protectedinherited

◆ top

Widget G4OpenGLXmVWidgetObject::top
protectedinherited

◆ visual

Visual* G4OpenGLXmVWidgetObject::visual
protectedinherited

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