#include <Inventor/Qt/SoQtMaterialPalette.h>
Public Member Functions | |
SoQtMaterialPalette (QWidget *parent=NULL, const char *name=NULL, SbBool buildInsideParent=TRUE) | |
~SoQtMaterialPalette () | |
void | attach (SoMaterial *material, int index=0) |
void | detach () |
SbBool | isAttached () |
void | addMaterialChangedCallback (SoQtMaterialPaletteCB *f, void *userData=NULL) |
void | removeMaterialChangedCallback (SoQtMaterialPaletteCB *f, void *userData=NULL) |
virtual void | show () |
This shows the component. | |
virtual void | hide () |
This hides the component. | |
void | setMaterial (const SoMaterial &mtl) |
const SoMaterial & | getMaterial () const |
void | windowsPalette () |
void | location2Event (SoEventCallback *node) |
SoNONUNICODE void | setPaletteBaseDir (const char *newBaseDir) |
void | setPaletteBaseDir (const SbString newBaseDir) |
long | getMaxDirCount () |
Public Member Functions inherited from SoQtComponent | |
SbBool | isVisible () |
Returns TRUE if this component is mapped onto the screen. | |
virtual QWidget * | getWidget () const |
This returns the base widget handle for this component. | |
SbBool | isTopLevelShell () const |
Returns TRUE if this component is a top level shell component (has its own window). | |
QWidget * | getShellWidget () const |
Returns the topLevelShell widget handle (NULL if the topLevelShell hasn't been created by this component). | |
QWidget * | getParentWidget () const |
Returns the parent widget handle. | |
void | setSize (const SbVec2s &size) |
Convenience routine on the widget handle. | |
SbVec2s | getSize () |
Convenience routine on the widget handle. | |
virtual SbBool | setFullScreen (const SbBool enable) |
Switches the viewer into (or out of) fullscreen mode. | |
SbBool | isFullScreen (void) const |
Queries if the viewer is in fullscreen mode. | |
void | setFullScreenEnable (const SbBool enable) |
Enables/disables fullscreen mode. | |
SbBool | isFullScreenEnable (void) const |
Queries if it is possible to put the viewer in fullscreen mode. | |
SbGlContextHelper::Display | getDisplay () |
On UNIX, returns the X display associated with this components widget. | |
void | setTitle (const char *newTitle) |
Sets window title. | |
void | setTitle (const SbString &newTitle) |
Sets window title. | |
void | setTitle (const QString &newTitle) |
Sets window title. | |
const QString | getTitle () const |
Gets window title. | |
void | setIconTitle (const QString &newIconTitle) |
Included for portability only. | |
const QString | getIconTitle () const |
Included for portability only. | |
SbString | getWidgetName () const |
Returns the widget handle name. | |
SbString | getClassName () const |
Returns the class name. | |
void | setWindowCloseCallback (SoQtComponentCB *func, void *data=NULL) |
Sets which callback to call when the user closes this component (double click in the upper left corner) - by default hide() is called on this component, unless a callback is set to something other than NULL. | |
Static Public Member Functions | |
static void | staticLocation2EventCB (void *userData, SoEventCallback *node) |
Static Public Member Functions inherited from SoQtComponent | |
static SoQtComponent * | getComponent (QWidget *widget) |
Returns the SoQtComponent for this widget handle. | |
Public Attributes | |
SbBool | alwaysOnTop |
Public Attributes inherited from SoQtComponent | |
SbString | helpFileName |
Name of help file to open when the viewer Help button is pressed. | |
Definition at line 84 of file SoQtMaterialPalette.h.
SoQtMaterialPalette::SoQtMaterialPalette | ( | QWidget * | parent = NULL , |
const char * | name = NULL , |
||
SbBool | buildInsideParent = TRUE |
||
) |
SoQtMaterialPalette::~SoQtMaterialPalette | ( | ) |
|
inline |
Definition at line 249 of file SoQtMaterialPalette.h.
void SoQtMaterialPalette::attach | ( | SoMaterial * | material, |
int | index = 0 |
||
) |
void SoQtMaterialPalette::detach | ( | ) |
|
inline |
Definition at line 119 of file SoQtMaterialPalette.h.
|
inline |
Definition at line 133 of file SoQtMaterialPalette.h.
|
virtual |
This hides the component.
Reimplemented from SoQtComponent.
|
inline |
Definition at line 100 of file SoQtMaterialPalette.h.
void SoQtMaterialPalette::location2Event | ( | SoEventCallback * | node | ) |
|
inline |
Definition at line 254 of file SoQtMaterialPalette.h.
void SoQtMaterialPalette::setMaterial | ( | const SoMaterial & | mtl | ) |
SoNONUNICODE void SoQtMaterialPalette::setPaletteBaseDir | ( | const char * | newBaseDir | ) |
void SoQtMaterialPalette::setPaletteBaseDir | ( | const SbString | newBaseDir | ) |
|
virtual |
This shows the component.
Reimplemented from SoQtComponent.
|
static |
void SoQtMaterialPalette::windowsPalette | ( | ) |
SbBool SoQtMaterialPalette::alwaysOnTop |
Definition at line 123 of file SoQtMaterialPalette.h.