SbBox4i32 Class Reference
[Basics]

VSG extension 4D box class. More...

#include <Inventor/SbBox.h>

List of all members.

Public Member Functions

 SbBox4i32 ()
 SbBox4i32 (const SbVec4i32 &_min, const SbVec4i32 &_max)
 ~SbBox4i32 ()
const SbVec4i32getMin () const
const SbVec4i32getMax () const
SbVec4i32getMin ()
SbVec4i32getMax ()
void extendBy (const SbVec4i32 &pt)
SbBool intersect (const SbVec4i32 &pt) const
SbVec4i32 getSize () const
void makeEmpty ()
SbBool isEmpty () const

Friends

std::ostream & operator<< (std::ostream &os, const SbBox4i32 &b)
int operator== (const SbBox4i32 &b1, const SbBox4i32 &b2)
int operator!= (const SbBox4i32 &b1, const SbBox4i32 &b2)

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


Constructor & Destructor Documentation

SbBox4i32::SbBox4i32 (  )  [inline]

Constructor for a 4D integer32 box.

The box is initially empty.

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.

SbBox4i32::~SbBox4i32 (  )  [inline]

Destructor.


Member Function Documentation

void SbBox4i32::extendBy ( const SbVec4i32 pt  )  [inline]

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

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.

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.

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.

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.

SbVec4i32 SbBox4i32::getSize (  )  const [inline]

Gets box size.

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

Returns TRUE if the specified point intersects this box.

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.)

void SbBox4i32::makeEmpty (  ) 

Makes an empty box.


Friends And Related Function Documentation

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

Inequality comparison.

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

Writes the box to the specified output stream.

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

Equality comparison.


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

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/