Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
SoQtMaterialPalette Class Reference

#include <Inventor/Qt/SoQtMaterialPalette.h>

+ Inheritance diagram for SoQtMaterialPalette:

Public Types

typedef void SoQtMaterialPaletteCB(void *userData, const SoMaterial *mtl)
 
- Public Types inherited from SoQtComponent
typedef void SoQtComponentCB(void *userData, SoQtComponent *comp)
 

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 SoMaterialgetMaterial () 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 SoQtComponentgetComponent (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.
 

Detailed Description

Definition at line 85 of file SoQtMaterialPalette.h.

Member Typedef Documentation

◆ SoQtMaterialPaletteCB

typedef void SoQtMaterialPaletteCB(void *userData, const SoMaterial *mtl)

Definition at line 66 of file SoQtMaterialPalette.h.

Constructor & Destructor Documentation

◆ SoQtMaterialPalette()

SoQtMaterialPalette::SoQtMaterialPalette ( QWidget *  parent = NULL,
const char *  name = NULL,
SbBool  buildInsideParent = TRUE 
)

◆ ~SoQtMaterialPalette()

SoQtMaterialPalette::~SoQtMaterialPalette ( )

Member Function Documentation

◆ addMaterialChangedCallback()

void SoQtMaterialPalette::addMaterialChangedCallback ( SoQtMaterialPaletteCB f,
void *  userData = NULL 
)
inline

Definition at line 250 of file SoQtMaterialPalette.h.

◆ attach()

void SoQtMaterialPalette::attach ( SoMaterial material,
int  index = 0 
)

◆ detach()

void SoQtMaterialPalette::detach ( )

◆ getMaterial()

const SoMaterial & SoQtMaterialPalette::getMaterial ( ) const
inline

Definition at line 120 of file SoQtMaterialPalette.h.

◆ getMaxDirCount()

long SoQtMaterialPalette::getMaxDirCount ( )
inline

Definition at line 134 of file SoQtMaterialPalette.h.

◆ hide()

virtual void SoQtMaterialPalette::hide ( )
virtual

This hides the component.

Reimplemented from SoQtComponent.

◆ isAttached()

SbBool SoQtMaterialPalette::isAttached ( )
inline

Definition at line 101 of file SoQtMaterialPalette.h.

◆ location2Event()

void SoQtMaterialPalette::location2Event ( SoEventCallback node)

◆ removeMaterialChangedCallback()

void SoQtMaterialPalette::removeMaterialChangedCallback ( SoQtMaterialPaletteCB f,
void *  userData = NULL 
)
inline

Definition at line 255 of file SoQtMaterialPalette.h.

◆ setMaterial()

void SoQtMaterialPalette::setMaterial ( const SoMaterial mtl)

◆ setPaletteBaseDir() [1/2]

SoNONUNICODE void SoQtMaterialPalette::setPaletteBaseDir ( const char *  newBaseDir)

◆ setPaletteBaseDir() [2/2]

void SoQtMaterialPalette::setPaletteBaseDir ( const SbString  newBaseDir)

◆ show()

virtual void SoQtMaterialPalette::show ( )
virtual

This shows the component.

Reimplemented from SoQtComponent.

◆ staticLocation2EventCB()

static void SoQtMaterialPalette::staticLocation2EventCB ( void *  userData,
SoEventCallback node 
)
static

◆ windowsPalette()

void SoQtMaterialPalette::windowsPalette ( )

Member Data Documentation

◆ alwaysOnTop

SbBool SoQtMaterialPalette::alwaysOnTop

Definition at line 124 of file SoQtMaterialPalette.h.


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