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

#include <G4OpenGLXmBox.hh>

Inheritance diagram for G4OpenGLXmBox:
G4OpenGLXmVWidgetContainer G4OpenGLXmVWidgetObject G4OpenGLXmFramedBox

Public Member Functions

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

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

 G4OpenGLXmBox (const G4OpenGLXmBox &)
 
G4OpenGLXmBoxoperator= (const G4OpenGLXmBox &)
 

Detailed Description

Definition at line 40 of file G4OpenGLXmBox.hh.

Constructor & Destructor Documentation

◆ G4OpenGLXmBox() [1/2]

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

Definition at line 37 of file G4OpenGLXmBox.cc.

39{
40 name = n;
41 radio = r;
42 parent = NULL;
43 box_row_col = NULL;
44}
const char * name
Widget * parent
Widget box_row_col

References box_row_col, CLHEP::detail::n, name, parent, and radio.

◆ ~G4OpenGLXmBox()

G4OpenGLXmBox::~G4OpenGLXmBox ( )
virtual

Definition at line 46 of file G4OpenGLXmBox.cc.

47{}

◆ G4OpenGLXmBox() [2/2]

G4OpenGLXmBox::G4OpenGLXmBox ( const G4OpenGLXmBox )
private

Member Function Documentation

◆ AddChild()

void G4OpenGLXmBox::AddChild ( G4OpenGLXmVWidgetComponent component)
virtual

Implements G4OpenGLXmVWidgetContainer.

Reimplemented in G4OpenGLXmFramedBox.

Definition at line 49 of file G4OpenGLXmBox.cc.

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

References G4OpenGLXmVWidgetComponent::AddYourselfTo(), and box_row_col.

Referenced by G4OpenGLXmViewer::actions_callback().

◆ AddYourselfTo()

void G4OpenGLXmBox::AddYourselfTo ( G4OpenGLXmVWidgetShell window)
virtual

Implements G4OpenGLXmVWidgetContainer.

Reimplemented in G4OpenGLXmFramedBox.

Definition at line 59 of file G4OpenGLXmBox.cc.

60{
61
62 pView = window->GetView ();
63 ProcesspView ();
64 parent = window->GetPointerToWidget ();
65
66 box_row_col = XtVaCreateManagedWidget (name,
67 xmRowColumnWidgetClass,
68 *parent,
69
70 XmNadjustMargin, True,
71 XmNisHomogeneous, False,
72 XmNlabelString, (XmString)name,
73 XmNradioAlwaysOne, radio,
74 XmNradioBehavior, radio,
75
76 XtNvisual, visual,
77 XtNdepth, depth,
78 XtNcolormap, cmap,
79 XtNborderColor, borcol,
80 XtNbackground, bgnd,
81
82 NULL);
83
84}
virtual Widget * GetPointerToWidget()=0

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

◆ GetName()

const char * G4OpenGLXmBox::GetName ( )

Definition at line 96 of file G4OpenGLXmBox.cc.

97{
98 return name;
99}

References name.

◆ GetPointerToParent()

Widget * G4OpenGLXmBox::GetPointerToParent ( )
virtual

Implements G4OpenGLXmVWidgetContainer.

Definition at line 86 of file G4OpenGLXmBox.cc.

87{
88 return parent;
89}

References parent.

◆ GetPointerToWidget()

Widget * G4OpenGLXmBox::GetPointerToWidget ( )
virtual

Implements G4OpenGLXmVWidgetContainer.

Definition at line 91 of file G4OpenGLXmBox.cc.

92{
93 return &box_row_col;
94}

References box_row_col.

◆ GetView()

G4OpenGLXmViewer * G4OpenGLXmVWidgetObject::GetView ( )
inherited

◆ operator=()

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

◆ ProcesspView()

void G4OpenGLXmVWidgetObject::ProcesspView ( )
inherited

◆ SetName()

void G4OpenGLXmBox::SetName ( const char *  n)

Definition at line 101 of file G4OpenGLXmBox.cc.

102{
103 name = n;
104}

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

Field Documentation

◆ bgnd

Pixel G4OpenGLXmVWidgetObject::bgnd
protectedinherited

◆ borcol

Pixel G4OpenGLXmVWidgetObject::borcol
protectedinherited

◆ box_row_col

Widget G4OpenGLXmBox::box_row_col
protected

◆ cmap

Colormap G4OpenGLXmVWidgetObject::cmap
protectedinherited

◆ depth

unsigned int G4OpenGLXmVWidgetObject::depth
protectedinherited

◆ name

const char* G4OpenGLXmBox::name
protected

◆ parent

Widget* G4OpenGLXmBox::parent
protected

◆ pView

G4OpenGLXmViewer* G4OpenGLXmVWidgetObject::pView
protectedinherited

◆ radio

G4bool G4OpenGLXmBox::radio
protected

◆ top

Widget G4OpenGLXmVWidgetObject::top
protectedinherited

◆ visual

Visual* G4OpenGLXmVWidgetObject::visual
protectedinherited

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