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

#include <G4OpenGLXmRadioButton.hh>

Inheritance diagram for G4OpenGLXmRadioButton:
G4OpenGLXmVWidgetComponent G4OpenGLXmVWidgetObject

Public Member Functions

void AddYourselfTo (G4OpenGLXmVWidgetContainer *)
 
 G4OpenGLXmRadioButton (const char *, XtCallbackRec *, G4bool, G4int)
 
const char * GetName ()
 
Widget * GetPointerToParent ()
 
Widget * GetPointerToWidget ()
 
G4OpenGLXmViewerGetView ()
 
void ProcesspView ()
 
void SetName (const char *)
 
virtual ~G4OpenGLXmRadioButton ()
 

Protected Attributes

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

Private Member Functions

 G4OpenGLXmRadioButton (const G4OpenGLXmRadioButton &)
 
G4OpenGLXmRadioButtonoperator= (const G4OpenGLXmRadioButton &)
 

Private Attributes

Widget button
 
XtCallbackRec * callback
 
G4bool default_button
 
const char * name
 
G4int number
 
Widget * parent
 

Detailed Description

Definition at line 36 of file G4OpenGLXmRadioButton.hh.

Constructor & Destructor Documentation

◆ G4OpenGLXmRadioButton() [1/2]

G4OpenGLXmRadioButton::G4OpenGLXmRadioButton ( const char *  n,
XtCallbackRec *  c,
G4bool  d,
G4int  num 
)

◆ ~G4OpenGLXmRadioButton()

G4OpenGLXmRadioButton::~G4OpenGLXmRadioButton ( )
virtual

Definition at line 51 of file G4OpenGLXmRadioButton.cc.

52{}

◆ G4OpenGLXmRadioButton() [2/2]

G4OpenGLXmRadioButton::G4OpenGLXmRadioButton ( const G4OpenGLXmRadioButton )
private

Member Function Documentation

◆ AddYourselfTo()

void G4OpenGLXmRadioButton::AddYourselfTo ( G4OpenGLXmVWidgetContainer container)
virtual

Implements G4OpenGLXmVWidgetComponent.

Definition at line 69 of file G4OpenGLXmRadioButton.cc.

70{
71
72 pView = container->GetView ();
73 ProcesspView ();
74 parent = container->GetPointerToWidget ();
75 XmString button_string = XmStringCreateLocalized ((char*)name);
76 button = XtVaCreateManagedWidget (name,
77 xmToggleButtonWidgetClass,
78 *parent,
79
80 XmNlabelString, button_string,
81 XmNset, default_button,
82 XmNuserData, number,
83
84 XtNvisual, visual,
85 XtNdepth, depth,
86 XtNcolormap, cmap,
87 XtNborderColor, borcol,
88 XtNbackground, bgnd,
89
90 NULL);
91
92 XtAddCallbacks (button,
93 XmNarmCallback,
94 callback);
95
96 XmStringFree (button_string);
97}
virtual Widget * GetPointerToWidget()=0

References G4OpenGLXmVWidgetObject::bgnd, G4OpenGLXmVWidgetObject::borcol, button, callback, G4OpenGLXmVWidgetObject::cmap, default_button, G4OpenGLXmVWidgetObject::depth, G4OpenGLXmVWidgetContainer::GetPointerToWidget(), G4OpenGLXmVWidgetObject::GetView(), name, number, parent, G4OpenGLXmVWidgetObject::ProcesspView(), G4OpenGLXmVWidgetObject::pView, and G4OpenGLXmVWidgetObject::visual.

◆ GetName()

const char * G4OpenGLXmRadioButton::GetName ( )

Definition at line 64 of file G4OpenGLXmRadioButton.cc.

65{
66 return name;
67}

References name.

◆ GetPointerToParent()

Widget * G4OpenGLXmRadioButton::GetPointerToParent ( )
virtual

Implements G4OpenGLXmVWidgetComponent.

Definition at line 99 of file G4OpenGLXmRadioButton.cc.

100{
101 return parent;
102}

References parent.

◆ GetPointerToWidget()

Widget * G4OpenGLXmRadioButton::GetPointerToWidget ( )
virtual

Implements G4OpenGLXmVWidgetComponent.

Definition at line 104 of file G4OpenGLXmRadioButton.cc.

105{
106 return &button;
107}

References button.

◆ GetView()

G4OpenGLXmViewer * G4OpenGLXmVWidgetObject::GetView ( )
inherited

◆ operator=()

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

◆ ProcesspView()

void G4OpenGLXmVWidgetObject::ProcesspView ( )
inherited

◆ SetName()

void G4OpenGLXmRadioButton::SetName ( const char *  n)

Definition at line 54 of file G4OpenGLXmRadioButton.cc.

55{
56 name = n;
57 XmString button_string = XmStringCreateLocalized ((char*)name);
58 XtVaSetValues (button,
59 XmNlabelString, button_string,
60 NULL);
61 XmStringFree (button_string);
62}

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

Field Documentation

◆ bgnd

Pixel G4OpenGLXmVWidgetObject::bgnd
protectedinherited

◆ borcol

Pixel G4OpenGLXmVWidgetObject::borcol
protectedinherited

◆ button

Widget G4OpenGLXmRadioButton::button
private

Definition at line 59 of file G4OpenGLXmRadioButton.hh.

Referenced by AddYourselfTo(), GetPointerToWidget(), and SetName().

◆ callback

XtCallbackRec* G4OpenGLXmRadioButton::callback
private

Definition at line 58 of file G4OpenGLXmRadioButton.hh.

Referenced by AddYourselfTo(), and G4OpenGLXmRadioButton().

◆ cmap

Colormap G4OpenGLXmVWidgetObject::cmap
protectedinherited

◆ default_button

G4bool G4OpenGLXmRadioButton::default_button
private

Definition at line 61 of file G4OpenGLXmRadioButton.hh.

Referenced by AddYourselfTo(), and G4OpenGLXmRadioButton().

◆ depth

unsigned int G4OpenGLXmVWidgetObject::depth
protectedinherited

◆ name

const char* G4OpenGLXmRadioButton::name
private

◆ number

G4int G4OpenGLXmRadioButton::number
private

Definition at line 62 of file G4OpenGLXmRadioButton.hh.

Referenced by AddYourselfTo(), and G4OpenGLXmRadioButton().

◆ parent

Widget* G4OpenGLXmRadioButton::parent
private

Definition at line 60 of file G4OpenGLXmRadioButton.hh.

Referenced by AddYourselfTo(), and GetPointerToParent().

◆ pView

G4OpenGLXmViewer* G4OpenGLXmVWidgetObject::pView
protectedinherited

◆ top

Widget G4OpenGLXmVWidgetObject::top
protectedinherited

◆ visual

Visual* G4OpenGLXmVWidgetObject::visual
protectedinherited

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