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  -  SOXTDIRECTIONALLIGHTEDITOR (3)

NAME

SoXtDirectionalLightEditor — component for editing directional lights

CONTENTS

Inherits From
Synopsis
Description
Methods
See Also

INHERITS FROM

SoXtComponent > SoXtDirectionalLightEditor

SYNOPSIS

#include <Inventor/Xt/SoXtDirectionalLightEditor.h>

    typedef void    
                    
typedef void         SoXtDirectionalLightEditorCB(void *userData, const SoDirectionalLight *light)

Methods from class SoXtDirectionalLightEditor:

       
                            
                             SoXtDirectionalLightEditor(Widget parent = NULL, const char *name = NULL, SbBool buildInsideParent = TRUE)    
   
                            
                             ~SoXtDirectionalLightEditor()    
void    
                            
void                         attach(SoPath *pathToLight)    
void    
                            
void                         detach()    
SbBool    
                            
SbBool                       isAttached()    
void    
                            
void                         addLightChangedCallback(SoXtDirectionalLightEditorCB *f, void *userData = NULL)    
void    
                            
void                         removeLightChangedCallback(SoXtDirectionalLightEditorCB *f, void *userData = NULL)    
void    
                            
void                         setLight(const SoDirectionalLight &newLight)    
const SoDirectionalLight &    
                            
const SoDirectionalLight &   getLight() 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 class is used to edit an SoDirectionalLight node (color, intensity, and direction are changed). In addition to directly editing directional light nodes, the editor can also be used with callbacks which will be called whenever the light is changed. The component consists of a render area and a value slider in the main window, with controls to display a color picker. In the render area there appears a sphere representing the world, and a directional light manipulator representing the direction of the light. Picking on the manipulator and moving the mouse provides direct manipulation of the light direction. The color picker is used to edit the color, and the value slider edits the intensity.

The editor can currently be attached to only one light at a time. Attaching to two different lights will automatically detach the first one before attaching the second.

METHODS

       
                            
                             SoXtDirectionalLightEditor(Widget parent = NULL, const char *name = NULL, SbBool buildInsideParent = TRUE)    
   
                            
                             ~SoXtDirectionalLightEditor()
Constructor and destructor.

    void    
                            
void                         attach(SoPath *pathToLight)    
void    
                            
void                         detach()
Attach/detach the editor to/from a directional light. When attached, changes made in the editor directly affect the attached light.

    SbBool    
                            
SbBool                       isAttached()
Returns TRUE if the editor is attached.

    void    
                            
void                         addLightChangedCallback(SoXtDirectionalLightEditorCB *f, void *userData = NULL)    
void    
                            
void                         removeLightChangedCallback(SoXtDirectionalLightEditorCB *f, void *userData = NULL)
Additional way of using the directional light editor, by registering a callback and setting the light.

    void    
                            
void                         setLight(const SoDirectionalLight &newLight)    
const SoDirectionalLight &    
                            
const SoDirectionalLight &   getLight() const
Set new light values, and get the current light values.

SEE ALSO

SoXtComponent, SoDirectionalLight

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


SOXTDIRECTIONALLIGHTEDITOR(3IV) (-->)

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