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

NAME

SoComputeBoundingBox — computes the bounding box and center of a scene graph

CONTENTS

Inherits From
Synopsis
Description
Inputs
Outputs
Methods
File Format/defaults
See Also

INHERITS FROM

SoBase > SoFieldContainer > SoEngine > SoComputeBoundingBox

SYNOPSIS

#include <Inventor/engines/SoComputeBoundingBox.h>

Inputs from class SoComputeBoundingBox:

    SoSFNode    
                    
SoSFNode             node    
SoSFPath    
                    
SoSFPath             path

Outputs from class SoComputeBoundingBox:

    (SoSFVec3f)    
                    
(SoSFVec3f)          min    
(SoSFVec3f)    
                    
(SoSFVec3f)          max    
(SoSFVec3f)    
                    
(SoSFVec3f)          boxCenter    
(SoSFVec3f)    
                    
(SoSFVec3f)          objectCenter

Methods from class SoComputeBoundingBox:

       
                          
                           SoComputeBoundingBox()    
void    
                          
void                       setViewportRegion(const SbViewportRegion &vpReg);    
const SbViewportRegion &    
                          
const SbViewportRegion &   getViewportRegion();

Methods from class SoEngine:

    static SoType    
                    
static SoType        getClassTypeId()    
virtual int    
                    
virtual int          getOutputs(SoEngineOutputList &list) const    
SoEngineOutput *    
                    
SoEngineOutput *     getOutput(const SbName &outputName) const    
SbBool    
                    
SbBool               getOutputName(const SoEngineOutput *output, SbName &outputName) const    
SoEngine *    
                    
SoEngine *           copy() const    
static SoEngine *    
                    
static SoEngine *    getByName(const SbName &name)    
static int    
                    
static int           getByName(const SbName &name, SoEngineList &list)

Methods from class SoFieldContainer:

    void    
                    
void                 setToDefaults()    
SbBool    
                    
SbBool               hasDefaultValues() const    
SbBool    
                    
SbBool               fieldsAreEqual(const SoFieldContainer *fc) const    
void    
                    
void                 copyFieldValues(const SoFieldContainer *fc, SbBool copyConnections = FALSE)    
SbBool    
                    
SbBool               set(const char *fieldDataString)    
void    
                    
void                 get(SbString &fieldDataString)    
virtual int    
                    
virtual int          getFields(SoFieldList &resultList) const    
virtual SoField *    
                    
virtual SoField *    getField(const SbName &fieldName) const    
SbBool    
                    
SbBool               getFieldName(const SoField *field, SbName &fieldName) const    
SbBool    
                    
SbBool               isNotifyEnabled() const    
SbBool    
                    
SbBool               enableNotify(SbBool flag)

Methods from class SoBase:

    void    
                    
void                 ref()    
void    
                    
void                 unref() const    
void    
                    
void                 unrefNoDelete() const    
void    
                    
void                 touch()    
virtual SoType    
                    
virtual SoType       getTypeId() const    
SbBool    
                    
SbBool               isOfType(SoType type) const    
virtual void    
                    
virtual void         setName(const SbName &name)    
virtual SbName    
                    
virtual SbName       getName() const

DESCRIPTION

This engine computes the bounding box and center of a scene graph. The scene graph can be defined by a path or by a root node.

If the path input is not NULL, the bounding box of the graph defined by the path will be computed. If path is NULL, but the node input is not NULL, the bounding box is computed on the graph rooted by the node. By default, the two inputs are NULL. If both the inputs are NULL, the outputs are disabled.

The engine uses a default viewport region. If the graph includes screen-based objects (such as SoText2) you can call setViewportRegion() on the engine instance to set up the correct viewport region to use.

INPUTS

    SoSFNode    
                    
SoSFNode             node
Defines the graph for which the bounding box is computed.

    SoSFPath    
                    
SoSFPath             path
Alternatively, defines the graph for which the bounding box is computed.

OUTPUTS

    (SoSFVec3f)    
                    
(SoSFVec3f)          min
Minimum point of the computed bounding box.

    (SoSFVec3f)    
                    
(SoSFVec3f)          max
Maximum point of the computed bounding box.

    (SoSFVec3f)    
                    
(SoSFVec3f)          boxCenter
Center of the computed bounding box.

    (SoSFVec3f)    
                    
(SoSFVec3f)          objectCenter
Center of the objects in the graph.

METHODS

       
                          
                           SoComputeBoundingBox()
Constructor

    void    
                          
void                       setViewportRegion(const SbViewportRegion &vpReg);
Sets the viewport region to use for the bounding box computation.

    const SbViewportRegion &    
                          
const SbViewportRegion &   getViewportRegion();
Returns the viewport region to use for the bounding box computation.

FILE FORMAT/DEFAULTS

ComputeBoundingBox {



node  NULL
path  NULL


}

SEE ALSO

SoEngineOutput, SoGetBoundingBoxAction, SbBox3f

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


SOCOMPUTEBOUNDINGBOX(3IV) (-->)

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