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

VSG extension 4D box class. More...

#include <Inventor/SbBox.h>

Public Member Functions

 SbBox4i32 ()
 Constructor for a 4D integer32 box.
 
 SbBox4i32 (const SbVec4i32 &_min, const SbVec4i32 &_max)
 Constructor for a 4D integer32 box.
 
 ~SbBox4i32 ()
 Destructor.
 
const SbVec4i32getMin () const
 Returns the minimum point of the box.
 
const SbVec4i32getMax () const
 Returns the maximum point of the box.
 
SbVec4i32getMin ()
 Returns the minimum point of the box.
 
SbVec4i32getMax ()
 Returns the maximum point of the box.
 
void extendBy (const SbVec4i32 &pt)
 Extends this box (if necessary) to contain the specified point.
 
SbBool intersect (const SbVec4i32 &pt) const
 Returns TRUE if the specified point intersects this box.
 
SbVec4i32 getSize () const
 Gets box size.
 
void makeEmpty ()
 Makes an empty box.
 
SbBool isEmpty () const
 Returns TRUE if the box is empty, and FALSE otherwise.
 

Friends

std::ostream & operator<< (std::ostream &os, const SbBox4i32 &b)
 Writes the box to the specified output stream.
 
int operator== (const SbBox4i32 &b1, const SbBox4i32 &b2)
 Equality comparison.
 
int operator!= (const SbBox4i32 &b1, const SbBox4i32 &b2)
 Inequality comparison.
 

Detailed Description

VSG extension 4D box class.

4D box which has planes parallel to the major axes and is specified by two points on a diagonal. Bounds are included in left and included in right, [min, max]. The bbox ((0, 0, 0, 0), (0, 0, 0, 0)) contains the single point (0, 0, 0, 0).

SEE ALSO

SbXfBox3f, SbBox2f, SbBox3s, SbBox2i32, SbBox2s, SbVec3i32, SbVec3s, SbVec2f, SbVec2i32, SbVec2s, SbMatrix, SoGetBoundingBoxAction

Definition at line 2586 of file SbBox.h.

Constructor & Destructor Documentation

◆ SbBox4i32() [1/2]

SbBox4i32::SbBox4i32 ( )
inline

Constructor for a 4D integer32 box.

The box is initially empty.

Definition at line 2592 of file SbBox.h.

◆ SbBox4i32() [2/2]

SbBox4i32::SbBox4i32 ( const SbVec4i32 _min,
const SbVec4i32 _max 
)
inline

Constructor for a 4D integer32 box.

m_min and m_max are the corners of the diagonal that define the box.

Definition at line 2601 of file SbBox.h.

◆ ~SbBox4i32()

SbBox4i32::~SbBox4i32 ( )
inline

Destructor.

Definition at line 2607 of file SbBox.h.

Member Function Documentation

◆ extendBy()

void SbBox4i32::extendBy ( const SbVec4i32 pt)
inline

Extends this box (if necessary) to contain the specified point.

Definition at line 2643 of file SbBox.h.

◆ getMax() [1/2]

SbVec4i32 & SbBox4i32::getMax ( )
inline

Returns the maximum point of the box.

The maximum point is the corner of the box with the highest X, Y, Z and W values.

Definition at line 2637 of file SbBox.h.

◆ getMax() [2/2]

const SbVec4i32 & SbBox4i32::getMax ( ) const
inline

Returns the maximum point of the box.

The maximum point is the corner of the box with the highest X, Y, Z and W values.

Definition at line 2623 of file SbBox.h.

◆ getMin() [1/2]

SbVec4i32 & SbBox4i32::getMin ( )
inline

Returns the minimum point of the box.

The minimum point is the corner of the box with the lowest X, Y, Z and W values.

Definition at line 2630 of file SbBox.h.

◆ getMin() [2/2]

const SbVec4i32 & SbBox4i32::getMin ( ) const
inline

Returns the minimum point of the box.

The minimum point is the corner of the box with the lowest X, Y, Z and W values.

Definition at line 2615 of file SbBox.h.

◆ getSize()

SbVec4i32 SbBox4i32::getSize ( ) const
inline

Gets box size.

Definition at line 2672 of file SbBox.h.

◆ intersect()

SbBool SbBox4i32::intersect ( const SbVec4i32 pt) const
inline

Returns TRUE if the specified point intersects this box.

Definition at line 2657 of file SbBox.h.

◆ isEmpty()

SbBool SbBox4i32::isEmpty ( ) const
inline

Returns TRUE if the box is empty, and FALSE otherwise.

Note: Setting the box to all zeros does not make it "empty". Use the makeEmpty() method. (This method only returns true if the maximum X value is less than the minimum X value.)

Definition at line 2688 of file SbBox.h.

◆ makeEmpty()

void SbBox4i32::makeEmpty ( )

Makes an empty box.

Friends And Related Symbol Documentation

◆ operator!=

int operator!= ( const SbBox4i32 b1,
const SbBox4i32 b2 
)
friend

Inequality comparison.

Definition at line 2710 of file SbBox.h.

◆ operator<<

std::ostream & operator<< ( std::ostream &  os,
const SbBox4i32 b 
)
friend

Writes the box to the specified output stream.

Definition at line 2694 of file SbBox.h.

◆ operator==

int operator== ( const SbBox4i32 b1,
const SbBox4i32 b2 
)
friend

Equality comparison.

Definition at line 2702 of file SbBox.h.


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