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

NAME

SbBox2f — 2D box class

CONTENTS

Inherits From
Synopsis
Description
Methods
File Format/defaults
See Also

INHERITS FROM

SbBox2f

SYNOPSIS

#include <Inventor/SbBox.h>

Methods from class SbBox2f:

       
                    
                     SbBox2f()    
   
                    
                     SbBox2f(float xmin, float ymin, float xmax float ymax)    
   
                    
                     SbBox2f(const SbVec2f &min, const SbVec2f &max)    
void    
                    
void                 ~SbBox2f()    
const SbVec2f &    
                    
const SbVec2f &      getMin()    
const SbVec2f &    
                    
const SbVec2f &      getMax()    
SbVec2f    
                    
SbVec2f              getCenter()    
void    
                    
void                 extendBy(const SbVec2f &point)    
void    
                    
void                 extendBy(const SbBox2f &box)    
SbBool    
                    
SbBool               intersect(const SbVec2f &point)    
SbBool    
                    
SbBool               intersect(const SbBox2f &box)    
void    
                    
void                 setBounds(float xmin, float ymin, float xmax, float ymax)    
void    
                    
void                 setBounds(const SbVec2f &min, const SbVec2f &max)    
void    
                    
void                 getBounds(float &xmin, float &ymin, float &xmax, float &ymax)    
void    
                    
void                 getBounds(SbVec2f &min, SbVec2f &max)    
void    
                    
void                 getOrigin(float &x0, float &y0)    
void    
                    
void                 getSize(float &x, float &y)    
float    
                    
float                getAspectRatio()    
void    
                    
void                 makeEmpty()    
SbBool    
                    
SbBool               isEmpty()    
SbBool    
                    
SbBool               hasArea()

DESCRIPTION

2D box which has planes parallel to the major axes and is specified by two points (specified as floating point) on a diagonal. This class is part of the standard Inventor datatype classes and is used as input and output to geometry operations.

METHODS

       
                    
                     SbBox2f()    
   
                    
                     SbBox2f(float xmin, float ymin, float xmax float ymax)    
   
                    
                     SbBox2f(const SbVec2f &min, const SbVec2f &max)    
void    
                    
void                 ~SbBox2f()
Constructors and destructor for a 2D float box. xmin, ymin, xmax, and ymax are the bounds of the box. min and max are the corners of the diagonal that define the box.

    const SbVec2f &    
                    
const SbVec2f &      getMin()    
const SbVec2f &    
                    
const SbVec2f &      getMax()
Returns the minimum and maximum points of the box.

    SbVec2f    
                    
SbVec2f              getCenter()
Returns the center of the box.

    void    
                    
void                 extendBy(const SbVec2f &point)    
void    
                    
void                 extendBy(const SbBox2f &box)
Extends this box (if necessary) to contain the specified point or other box.

    SbBool    
                    
SbBool               intersect(const SbVec2f &point)    
SbBool    
                    
SbBool               intersect(const SbBox2f &box)
Returns TRUE if the specified point or box intersects this box.

    void    
                    
void                 setBounds(float xmin, float ymin, float xmax, float ymax)    
void    
                    
void                 setBounds(const SbVec2f &min, const SbVec2f &max)
Sets the corners of the box.

    void    
                    
void                 getBounds(float &xmin, float &ymin, float &xmax, float &ymax)    
void    
                    
void                 getBounds(SbVec2f &min, SbVec2f &max)
Gets the corners of the box.

    void    
                    
void                 getOrigin(float &x0, float &y0)
Gets box origin.

    void    
                    
void                 getSize(float &x, float &y)
Gets box size.

    float    
                    
float                getAspectRatio()
Gets box aspect ratio.

    void    
                    
void                 makeEmpty()
Makes an empty box.

    SbBool    
                    
SbBool               isEmpty()
Returns TRUE if the box is empty, and FALSE otherwise.

    SbBool    
                    
SbBool               hasArea()
Returns TRUE if both dimensions of the box have positive size, and FALSE otherwise.

FILE FORMAT/DEFAULTS

SEE ALSO

SbBox3f, SbXfBox3f, SbBox2s, SbVec3f, SbVec2f, SbVec2s, SbMatrix

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


SBBOX2F(3IV) (-->)

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