Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoXtSliderSetBase Class Reference

Abstract base class for Motif-only slider components. More...

#include <Inventor/Xt/SoXtSliderSetBase.h>

+ Inheritance diagram for SoXtSliderSetBase:

Public Member Functions

virtual void setNode (SoNode *newNode)
 Sets a new node as the node to be modified by this editor component.
 
SoNodegetNode () const
 Returns a pointer to the node currently being modified by this editor component.
 
virtual void getLayoutSize (int &w, int &h)
 
virtual void show ()
 This shows the component.
 
- Public Member Functions inherited from SoXtComponent
virtual void hide ()
 This hides the component.
 
SbBool isVisible ()
 Returns TRUE if this component is mapped onto the screen.
 
SoWidget getWidget () const
 This returns the base widget for this component.
 
SbBool isTopLevelShell () const
 Returns TRUE if this component is a top level shell component (has its own window).
 
SoWidget getShellWidget () const
 Returns the shell widget (NULL if the shell hasn't been created by this component).
 
SoWidget getParentWidget () const
 Returns the parent widget, be it a shell or not.
 
void setSize (const SbVec2s &size)
 Convenience routine on the widget.
 
SbVec2s getSize ()
 Convenience routine on the widget.
 
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 () const
 Queries if it is possible to put the viewer in fullscreen mode.
 
Display * getDisplay ()
 Returns the X display associated with this components widget.
 
SoNONUNICODE void setTitle (const char *newTitle)
 Sets window title.
 
void setTitle (const SbString &newTitle)
 Sets window title.
 
SbString getTitle () const
 Gets window title.
 
SoNONUNICODE void setIconTitle (const char *newIconTitle)
 Sets icon title.
 
void setIconTitle (const SbString &newIconTitle)
 Sets icon title.
 
SbString getIconTitle () const
 Gets icon title.
 
void setWindowCloseCallback (SoXtComponentCB *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.
 
SbString getWidgetName () const
 Returns the widget name.
 
SbString getClassName () const
 Returns the class name.
 

Additional Inherited Members

- Public Types inherited from SoXtComponent
typedef void SoXtComponentCB(void *data, SoXtComponent *v)
 
- Static Public Member Functions inherited from SoXtComponent
static void displayHelp (const char *filename, UINT contextID)
 Static method to display the specified topic of the specified help file.
 
static SoXtComponentgetComponent (SoWidget w)
 This returns the SoXtComponent for this widget.
 

Detailed Description

Abstract base class for Motif-only slider components.

This class is used as a base class for all editors which use Motif sliders to edit fields in an Open Inventor scene graph node. This class is not meant to be instanced by programmers who want to use an editor in a program. It should only be used as a base class when designing new editors.

SoXtSliderSetBase is derived from SoXtComponent, but adds three concepts. First, there is a node to edit. Second, there are subcomponents. When an SoXtSliderSetBase is shown or hidden, so are its subcomponents. (As an example, an SoXtTransformSliderSet is composed of many subcomponents). Third, an SoXtSliderSetBase has a layout size, which is used to lay out the subcomponents.

SEE ALSO

SoXtComponent, SoXtSliderSet

Definition at line 89 of file SoXtSliderSetBase.h.

Member Function Documentation

◆ getLayoutSize()

virtual void SoXtSliderSetBase::getLayoutSize ( int &  w,
int &  h 
)
virtual

◆ getNode()

SoNode * SoXtSliderSetBase::getNode ( ) const
inline

Returns a pointer to the node currently being modified by this editor component.

Definition at line 99 of file SoXtSliderSetBase.h.

◆ setNode()

virtual void SoXtSliderSetBase::setNode ( SoNode newNode)
virtual

Sets a new node as the node to be modified by this editor component.

◆ show()

virtual void SoXtSliderSetBase::show ( )
virtual

This shows the component.

Reimplemented from SoXtComponent.


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