GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SOXTFULLVIEWER (3)

NAME

SoXtFullViewer — base viewer class which adds a decoration around the rendering area

CONTENTS

Inherits From
Synopsis
Description
Methods
See Also

INHERITS FROM

SoXtComponent > SoXtGLWidget > SoXtRenderArea > SoXtViewer > SoXtFullViewer

SYNOPSIS

#include <Inventor/Xt/viewers/SoXtFullViewer.h>

enum BuildFlag {     SoXtFullViewer::BUILD_NONE    
                              SoXtFullViewer::BUILD_NONE    doesn’t build anything extra    
SoXtFullViewer::BUILD_DECORATION    
                              SoXtFullViewer::BUILD_DECORATION build the decoration only    
SoXtFullViewer::BUILD_POPUP    
                              SoXtFullViewer::BUILD_POPUP   build the popup menu only    
SoXtFullViewer::BUILD_ALL    
                              SoXtFullViewer::BUILD_ALL     build everything by default
}

Methods from class SoXtFullViewer:

    void    
                    
void                 setDecoration(SbBool onOrOff)    
SbBool    
                    
SbBool               isDecoration()    
void    
                    
void                 setPopupMenuEnabled(SbBool trueOrFalse)    
SbBool    
                    
SbBool               isPopupMenuEnabled()    
Widget    
                    
Widget               getAppPushButtonParent() const    
void    
                    
void                 addAppPushButton(Widget newButton)    
void    
                    
void                 insertAppPushButton(Widget newButton, int index)    
void    
                    
void                 removeAppPushButton(Widget oldButton)    
int    
                    
int                  findAppPushButton(Widget oldButton)    
int    
                    
int                  lengthAppPushButton()    
Widget    
                    
Widget               getRenderAreaWidget()

Methods from class SoXtViewer:

    virtual void    
                        
virtual void             setCamera(SoCamera *cam)    
SoCamera *    
                        
SoCamera *               getCamera()    
virtual void    
                        
virtual void             setCameraType(SoType type)    
SoType    
                        
SoType                   getCameraType()    
virtual void    
                        
virtual void             viewAll()    
virtual void    
                        
virtual void             saveHomePosition()    
virtual void    
                        
virtual void             resetToHomePosition()    
virtual void    
                        
virtual void             setHeadlight(SbBool onOrOff)    
SbBool    
                        
SbBool                   isHeadlight()    
SoDirectionalLight *    
                        
SoDirectionalLight *     getHeadlight()    
virtual void    
                        
virtual void             setDrawStyle(SoXtViewer::DrawType type, SoXtViewer::DrawStyle style)    
SoXtViewer::DrawStyle    
                        
SoXtViewer::DrawStyle    getDrawStyle(SoXtViewer::DrawType type)    
virtual void    
                        
virtual void             setBufferingType(SoXtViewer::BufferType type)    
SoXtViewer::BufferType    
                        
SoXtViewer::BufferType   getBufferingType()    
virtual void    
                        
virtual void             setViewing(SbBool onOrOff)    
SbBool    
                        
SbBool                   isViewing() const    
virtual void    
                        
virtual void             setCursorEnabled(SbBool onOrOff)    
SbBool    
                        
SbBool                   isCursorEnabled() const    
void    
                        
void                     setAutoClipping(SbBool onOrOff)    
SbBool    
                        
SbBool                   isAutoClipping() const    
virtual void    
                        
virtual void             setStereoViewing(SbBool onOrOff)    
virtual SbBool    
                        
virtual SbBool           isStereoViewing()    
void    
                        
void                     setStereoOffset(float dist)    
float    
                        
float                    getStereoOffset()    
void    
                        
void                     setDetailSeek(SbBool onOrOff)    
SbBool    
                        
SbBool                   isDetailSeek()    
void    
                        
void                     setSeekTime(float seconds)    
float    
                        
float                    getSeekTime()    
void    
                        
void                     addStartCallback(SoXtViewerCB *f, void *userData = NULL)    
void    
                        
void                     addFinishCallback(SoXtViewerCB *f, void *userData = NULL)    
void    
                        
void                     removeStartCallback(SoXtViewerCB *f, void *userData = NULL)    
void    
                        
void                     removeFinishCallback(SoXtViewerCB *f, void *userData = NULL)    
void    
                        
void                     copyView(Time eventTime)    
void    
                        
void                     pasteView(Time eventTime)    
virtual void    
                        
virtual void             recomputeSceneSize()

Methods from class SoXtRenderArea:

    virtual void    
                          
virtual void               setSceneGraph(SoNode *newScene)    
virtual SoNode *    
                          
virtual SoNode *           getSceneGraph()    
void    
                          
void                       setOverlaySceneGraph(SoNode *newScene)    
SoNode *    
                          
SoNode *                   getOverlaySceneGraph()    
void    
                          
void                       registerDevice(SoXtDevice *)    
void    
                          
void                       unregisterDevice(SoXtDevice *)    
void    
                          
void                       setBackgroundColor(const SbColor &c)    
const SbColor &    
                          
const SbColor &            getBackgroundColor() const    
void    
                          
void                       setBackgroundIndex(int index)    
int    
                          
int                        getBackgroundIndex() const    
void    
                          
void                       setOverlayBackgroundIndex(int index)    
int    
                          
int                        getOverlayBackgroundIndex() const    
void    
                          
void                       setColorMap(int startIndex, int num, const SbColor *colors)    
void    
                          
void                       setOverlayColorMap(int startIndex, int num, const SbColor *colors)    
void    
                          
void                       setViewportRegion(const SbViewportRegion &newRegion)    
const SbViewportRegion &    
                          
const SbViewportRegion &   getViewportRegion() const    
void    
                          
void                       setTransparencyType(SoGLRenderAction::TransparencyType type)    
SoGLRenderAction::TransparencyType    
                          
SoGLRenderAction::TransparencyType getTransparencyType() const    
void    
                          
void                       setAntialiasing(SbBool smoothing, int numPasses)    
void    
                          
void                       getAntialiasing(SbBool &smoothing, int &numPasses) const    
void    
                          
void                       setClearBeforeRender(SbBool trueOrFalse)    
SbBool    
                          
SbBool                     isClearBeforeRender() const    
void    
                          
void                       setClearBeforeOverlayRender(SbBool trueOrFalse)    
SbBool    
                          
SbBool                     isClearBeforeOverlayRender() const    
void    
                          
void                       setAutoRedraw(SbBool trueOrFalse)    
SbBool    
                          
SbBool                     isAutoRedraw() const    
void    
                          
void                       setRedrawPriority(uint32_t priority)    
uint32_t    
                          
uint32_t                   getRedrawPriority() const    
static uint32_t    
                          
static uint32_t            getDefaultRedrawPriority()    
void    
                          
void                       render()    
void    
                          
void                       renderOverlay()    
void    
                          
void                       scheduleRedraw()    
void    
                          
void                       scheduleOverlayRedraw()    
void    
                          
void                       redrawOnSelectionChange(SoSelection *s)    
void    
                          
void                       redrawOverlayOnSelectionChange(SoSelection *s)    
void    
                          
void                       setEventCallback(SoXtRenderAreaEventCB *fcn, void *userData = NULL)    
void    
                          
void                       setGLRenderAction(SoGLRenderAction *ra)    
SoGLRenderAction *    
                          
SoGLRenderAction *         getGLRenderAction() const    
void    
                          
void                       setOverlayGLRenderAction(SoGLRenderAction *ra)    
SoGLRenderAction *    
                          
SoGLRenderAction *         getOverlayGLRenderAction() const    
void    
                          
void                       setSceneManager(SoSceneManager *sm)    
SoSceneManager *    
                          
SoSceneManager *           getSceneManager() const    
void    
                          
void                       setOverlaySceneManager(SoSceneManager *sm)    
SoSceneManager *    
                          
SoSceneManager *           getOverlaySceneManager() const

Methods from class SoXtGLWidget:

    void    
                    
void                 setBorder(SbBool onOrOff)    
SbBool    
                    
SbBool               isBorder() const    
virtual void    
                    
virtual void         setDoubleBuffer(SbBool onOrOff)    
SbBool    
                    
SbBool               isDoubleBuffer()    
Window    
                    
Window               getNormalWindow()    
Window    
                    
Window               getOverlayWindow()    
GLXContext    
                    
GLXContext           getNormalContext()    
GLXContext    
                    
GLXContext           getOverlayContext()    
Widget    
                    
Widget               getNormalWidget()    
Widget    
                    
Widget               getOverlayWidget()    
virtual void    
                    
virtual void         setNormalVisual(XVisualInfo *vis)    
XVisualInfo *    
                    
XVisualInfo *        getNormalVisual()    
virtual void    
                    
virtual void         setOverlayVisual(XVisualInfo *vis)    
XVisualInfo *    
                    
XVisualInfo *        getOverlayVisual()    
void    
                    
void                 setDrawToFrontBufferEnable(SbBool enableFlag)    
SbBool    
                    
SbBool               isDrawToFrontBufferEnable() const

Methods from class SoXtComponent:

    virtual void    
                        
virtual void             show()    
virtual void    
                        
virtual void             hide()    
SbBool    
                        
SbBool                   isVisible()    
Widget    
                        
Widget                   getWidget() const    
SbBool    
                        
SbBool                   isTopLevelShell() const    
Widget    
                        
Widget                   getShellWidget() const    
Widget    
                        
Widget                   getParentWidget() const    
void    
                        
void                     setSize(const SbVec2s &size)    
SbVec2s    
                        
SbVec2s                  getSize()    
Display *    
                        
Display *                getDisplay()    
void    
                        
void                     setTitle(const char *newTitle)    
const char *    
                        
const char *             getTitle() const    
void    
                        
void                     setIconTitle(const char *newIconTitle)    
const char *    
                        
const char *             getIconTitle() const    
void    
                        
void                     setWindowCloseCallback(SoXtComponentCB *func, void *data = NULL)    
static SoXtComponent *    
                        
static SoXtComponent *   getComponent(Widget w)    
const char *    
                        
const char *             getWidgetName() const    
const char *    
                        
const char *             getClassName() const

DESCRIPTION

This is a base class used by all viewer components. The class adds a decoration around the rendering area which includes thumb wheels, a zoom slider and push buttons. This base class also includes a viewer popup menu and a preference sheet with generic viewing functions. The constructors for the various subclasses of SoXtFullViewer provide a flag for specifying whether the decoration and popup menus should be built.

METHODS

    void    
                    
void                 setDecoration(SbBool onOrOff)    
SbBool    
                    
SbBool               isDecoration()
Show/hide the viewer component trim (default on). See the viewer constructor to prevent the decoration from being built.

    void    
                    
void                 setPopupMenuEnabled(SbBool trueOrFalse)    
SbBool    
                    
SbBool               isPopupMenuEnabled()
Enable/disable the viewer popup menu (default enabled). See the viewer constructor to prevent the popup menu from being built.

    Widget    
                    
Widget               getAppPushButtonParent() const
Returns the parent widget, which is needed when creating new buttons. Note: that if the decoration is not created in the constructor, this will be NULL until the decoration is shown.

    void    
                    
void                 addAppPushButton(Widget newButton)    
void    
                    
void                 insertAppPushButton(Widget newButton, int index)    
void    
                    
void                 removeAppPushButton(Widget oldButton)    
int    
                    
int                  findAppPushButton(Widget oldButton)    
int    
                    
int                  lengthAppPushButton()
Add/remove push buttons for the application, which will be placed in the left hand side decoration trim. Adding buttons appends them to the end of the list, while inserting them places them at the desired index.

Note: the button pixmaps should be 24-by-24 pixels size to nicely fit into the decoration trim like the other viewer buttons.

    Widget    
                    
Widget               getRenderAreaWidget()
Returns the render area widget.

SEE ALSO

SoXtViewer, SoXtComponent, SoXtRenderArea, SoXtExaminerViewer, SoXtWalkViewer, SoXtFlyViewer, SoXtPlaneViewer

Search for    or go to Top of page |  Section 3 |  Main Index


SOXTFULLVIEWER(3IV) (-->)

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.