PoXtChoiceButtonData Class Reference
[Dialog]

VSG extension Class to define a choice button. More...

#include <Inventor/dialog/PoXtChoiceButtonData.h>

Inheritance diagram for PoXtChoiceButtonData:
PoXtElementData

List of all members.

Public Member Functions

 PoXtChoiceButtonData (const char *label=NULL, int numItems=0, const char **itemNames=NULL, int selectedItem=0)
virtual ~PoXtChoiceButtonData ()
SoNONUNICODE void setLabel (const char *label)
void setLabel (const SbString &label)
SbString getLabel () const
void setItems (int numItems, const char **itemNames)
const char ** getItems (int &numItems) const
void setSelectedItem (int itemNumber)
int getSelectedItem () const
virtual TypeXtElement getType () const
virtual PoXtElementDatacopy () const

Detailed Description

VSG extension Class to define a choice button.

This element is composed of a label on the left and a choice button on the right. By default the text of the label is an empty string, and the number of items and the selected item are equal to zero.

Deprecated:

Deprecated since Open Inventor 8000
Please use DialogViz classes for new development.

Constructor & Destructor Documentation

PoXtChoiceButtonData::PoXtChoiceButtonData ( const char *  label = NULL,
int  numItems = 0,
const char **  itemNames = NULL,
int  selectedItem = 0 
)

Constructor.

virtual PoXtChoiceButtonData::~PoXtChoiceButtonData (  )  [virtual]

Destructor.


Member Function Documentation

virtual PoXtElementData* PoXtChoiceButtonData::copy (  )  const [virtual]

Creates and returns a new Xt element which is a copy of this Xt element.

Implements PoXtElementData.

const char** PoXtChoiceButtonData::getItems ( int &  numItems  )  const

Gets items names of the choice button.

SbString PoXtChoiceButtonData::getLabel (  )  const

Gets the text of the label on the left of the choice button.

int PoXtChoiceButtonData::getSelectedItem (  )  const

Gets the selected item number.

virtual TypeXtElement PoXtChoiceButtonData::getType (  )  const [virtual]

Returns the type of the Xt element.

Reimplemented from PoXtElementData.

void PoXtChoiceButtonData::setItems ( int  numItems,
const char **  itemNames 
)

Sets items names of the choice button.

void PoXtChoiceButtonData::setLabel ( const SbString label  ) 

Sets the text of the label on the left of the choice button.

SoNONUNICODE void PoXtChoiceButtonData::setLabel ( const char *  label  ) 

Sets the text of the label on the left of the choice button.

Non Unicode List:
This function should not be used in a Unicode application.
void PoXtChoiceButtonData::setSelectedItem ( int  itemNumber  ) 

Sets the selected item number.


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

Open Inventor by FEI reference manual, generated on 19 Aug 2019
Copyright © FEI S.A.S. All rights reserved.
http://www.openinventor.com/