SbBox3i32 - Online Linux Manual Page

Section : 3
Updated : Mon Jan 25 2021
Source : Version 2.5.0
Note : Coin

NAMESbBox3i32

SYNOPSIS
#include <Inventor/SbBox​.h>

Public Member FunctionsSbBox3i32 (void)
SbBox3i32 (int32_t xmin, int32_t ymin, int32_t zmin, int32_t xmax, int32_t ymax, int32_t zmax)
SbBox3i32 (const SbVec3i32 &minpoint, const SbVec3i32 &maxpoint)
SbBox3i32 (const SbBox3s &box)
SbBox3i32 (const SbBox3f &box)
SbBox3i32 (const SbBox3d &box)
SbBox3i32 & setBounds (int32_t xmin, int32_t ymin, int32_t zmin, int32_t xmax, int32_t ymax, int32_t zmax)
SbBox3i32 & setBounds (const SbVec3i32 &minpoint, const SbVec3i32 &maxpoint)
SbBox3i32 & setBounds (const SbBox3s &box)
SbBox3i32 & setBounds (const SbBox3f &box)
SbBox3i32 & setBounds (const SbBox3d &box)
void getBounds (int32_t &xmin, int32_t &ymin, int32_t &zmin, int32_t &xmax, int32_t &ymax, int32_t &zmax) const
void getBounds (SbVec3i32 &minpoint, SbVec3i32 &maxpoint) const
const SbVec3i32 & getMin (void) const
SbVec3i32 & getMin (void)
const SbVec3i32 & getMax (void) const
SbVec3i32 & getMax (void)
void extendBy (const SbVec3i32 &pt)
void extendBy (const SbBox3i32 &bb)
void extendBy (const SbVec3f &pt)
void transform (const SbMatrix &m)
void makeEmpty (void)
SbBool isEmpty (void) const
SbBool hasVolume (void) const
float getVolume (void) const
SbBool intersect (const SbVec3i32 &pt) const
SbBool intersect (const SbBox3i32 &bb) const
SbBool intersect (const SbVec3f &pt) const
SbBool outside (const SbMatrix &MVP, int &cullBits) const
SbVec3f getClosestPoint (const SbVec3f &pt) const
SbVec3f getCenter (void) const
void getOrigin (int32_t &originX, int32_t &originY, int32_t &originZ) const
void getSize (int32_t &sizeX, int32_t &sizeY, int32_t sizeZ) const
void getSpan (const SbVec3f &direction, float &dmin, float &dmax) const

Protected AttributesSbVec3i32 minpt
SbVec3i32 maxpt

Detailed DescriptionSee also SbBox2d, SbBox2f, SbBox2i32, SbBox2s, SbBox3d, SbBox3f, SbBox3s, SbXfBox3d, SbXfBox3f Since Coin-2​.5

Constructor & Destructor Documentation

SbBox3i32::SbBox3i32 (void) [inline]The default constructor makes an empty box​.

SbBox3i32::SbBox3i32 (int32_t xmin, int32_t ymin, int32_t zmin, int32_t xmax, int32_t ymax, int32_t zmax) [inline]Constructs a box with the given corners​. minx should be less than maxx, miny should be less than maxy and minz should be less than maxz if you want to make a valid box​.

SbBox3i32::SbBox3i32 (const SbVec3i32 & minpoint, const SbVec3i32 & maxpoint) [inline]Constructs a box with the given corners​. The coordinates of min should be less than the coordinates of max if you want to make a valid box​.

SbBox3i32::SbBox3i32 (const SbBox3s & box) [inline], [explicit]Constructs a box with the values from the box converting the values to 32-bit integers

SbBox3i32::SbBox3i32 (const SbBox3f & box) [inline], [explicit]Constructs a box with the values from the box converting the values to 32-bit integers

SbBox3i32::SbBox3i32 (const SbBox3d & box) [inline], [explicit]Constructs a box with the values from the box converting the values to 32-bit integers

Member Function Documentation

SbBox3i32 & SbBox3i32::setBounds (int32_t xmin, int32_t ymin, int32_t zmin, int32_t xmax, int32_t ymax, int32_t zmax) [inline]Reset the boundaries to the boundaries given​. Returns reference to self​. See also getBounds() Referenced by transform()​.

SbBox3i32 & SbBox3i32::setBounds (const SbVec3i32 & minpoint, const SbVec3i32 & maxpoint) [inline]Reset the boundaries to the boundaries given​. Returns reference to self​. See also getBounds()

SbBox3i32 & SbBox3i32::setBounds (const SbBox3s & box)Reset the boundaries to the boundaries of the given box​. Returns reference to self​. See also getBounds() References SbBox3s::getMax(), SbBox3s::getMin(), SbBox3s::isEmpty(), makeEmpty(), and SbVec3i32::setValue()​.

SbBox3i32 & SbBox3i32::setBounds (const SbBox3f & box)Reset the boundaries to the boundaries of the given box​. Returns reference to self​. See also getBounds() References SbBox3f::getMax(), SbBox3f::getMin(), SbBox3f::isEmpty(), makeEmpty(), and SbVec3i32::setValue()​.

SbBox3i32 & SbBox3i32::setBounds (const SbBox3d & box)Reset the boundaries to the boundaries of the given box​. Returns reference to self​. See also getBounds() References SbBox3d::getMax(), SbBox3d::getMin(), SbBox3d::isEmpty(), makeEmpty(), and SbVec3i32::setValue()​.

void SbBox3i32::getBounds (int32_t & xmin, int32_t & ymin, int32_t & zmin, int32_t & xmax, int32_t & ymax, int32_t & zmax) const [inline]Returns the boundaries of the box​.

void SbBox3i32::getBounds (SbVec3i32 & minpoint, SbVec3i32 & maxpoint) const [inline]Returns the boundaries of the box​.

const SbVec3i32 & SbBox3i32::getMin (void) const [inline]Returns the minimum point​. This should usually be the lower left corner point of the box​. See also getOrigin(), getMax()​. Referenced by extendBy(), SbBox3d::setBounds(), SbBox3f::setBounds(), and SbBox3s::setBounds()​.

SbVec3i32 & SbBox3i32::getMin (void) [inline]Returns the minimum point​. This should usually be the lower left corner point of the box​. See also getOrigin(), getMax()​.

const SbVec3i32 & SbBox3i32::getMax (void) const [inline]Returns the maximum point​. This should usually be the upper right corner point of the box​. See also getMin()​. Referenced by extendBy(), SbBox3d::setBounds(), SbBox3f::setBounds(), and SbBox3s::setBounds()​.

SbVec3i32 & SbBox3i32::getMax (void) [inline]Returns the maximum point​. This should usually be the upper right corner point of the box​. See also getMin()​.

void SbBox3i32::extendBy (const SbVec3i32 & pt)Extend the boundaries of the box by the given point, i​.e​. make the point fit inside the box if it isn't already so​. References isEmpty(), and SbVec3i32::setValue()​. Referenced by extendBy(), and transform()​.

void SbBox3i32::extendBy (const SbBox3i32 & bb)Extend the boundaries of the box by the given box parameter​. This is equal to calling extendBy() twice with the corner points​. References extendBy(), getMax(), getMin(), and isEmpty()​.

void SbBox3i32::extendBy (const SbVec3f & pt)Extend the boundaries of the box by the given point, i​.e​. make the point fit inside the box if it isn't already so​. References extendBy()​.

void SbBox3i32::transform (const SbMatrix & m)Transform the box by the matrix, and change its boundaries to contain the transformed box​. Doesn't touch illegal/empty boxes​. References extendBy(), isEmpty(), SbMatrix::multVecMatrix(), SoDebugError::postWarning(), setBounds(), and SbVec3f::setValue()​.

void SbBox3i32::makeEmpty (void)Marks this as an empty box​. See also isEmpty()​. References SbVec3i32::setValue()​. Referenced by setBounds()​.

SbBool SbBox3i32::isEmpty (void) const [inline]Check if this has been marked as an empty box​. Referenced by extendBy(), SbBox3d::setBounds(), SbBox3f::setBounds(), SbBox3s::setBounds(), and transform()​.

SbBool SbBox3i32::hasVolume (void) const [inline]Check if the box has been correctly specified and by that virtue has volume​.

float SbBox3i32::getVolume (void) const [inline]Check if the box has 'positive' volume, i​.e​. the lower left corner is actually lower and more left than the maximum point​.

SbBool SbBox3i32::intersect (const SbVec3i32 & pt) constCheck if the given point lies within the boundaries of this box​.

SbBool SbBox3i32::intersect (const SbBox3i32 & bb) constCheck if the given box lies wholly or partly within the boundaries of this box​.

SbBool SbBox3i32::intersect (const SbVec3f & pt) constCheck if the given point lies within the boundaries of this box​.

SbBool SbBox3i32::outside (const SbMatrix & MVP, int & cullbits) constCheck if the box is outside the view volume defined by the mvp matrix​. Sets cullbits according to which planes we're inside or outside​. Bit 0 (0x1) is cleared when box is completely inside left and right clipping planes​. Bit 1 (0x2) is cleared when box is inside top and bottom clipping planes​. Bit 2 (0x4) is cleared when box is inside near and far clipping planes​. Returns TRUE if box is completely outside one of the clipping planes​. FALSE otherwise​. References SbMatrix::multVecMatrix()​.

SbVec3f SbBox3i32::getClosestPoint (const SbVec3f & pt) constReturn the point on the box closest to the given point​. References getCenter()​.

SbVec3f SbBox3i32::getCenter (void) const [inline]Returns the center point of the box​. Referenced by getClosestPoint()​.

void SbBox3i32::getOrigin (int32_t & originX, int32_t & originY, int32_t & originZ) const [inline]Returns the coordinates of the box origin (i​.e​. the lower left corner)​. See also getMin()​.

void SbBox3i32::getSize (int32_t & sizeX, int32_t & sizeY, int32_t sizeZ) const [inline]Returns width, height and depth of box​.

void SbBox3i32::getSpan (const SbVec3f & dir, float & dmin, float & dmax) constFind the span of the box in the given direction (i​.e​. how much room in the given direction the box needs)​. The distance is returned as the minimum and maximum distance from origo to the closest and furthest plane defined by the direction vector and each of the box' corners​. The difference between these values gives the span​. References SbVec3f::dot(), SbVec3f::normalize(), SoDebugError::postWarning(), and SbVec3f::setValue()​.

AuthorGenerated automatically by Doxygen for Coin from the source code​.
0
Johanes Gumabo
Data Size   :   56,255 byte
man-SbBox3i32.3coin2Build   :   2025-03-22, 13:26   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 2,084,223
Visitor ID   :     :  
Visitor IP   :   216.73.216.62   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   37.751000 x -97.822000   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :     :  
Provider Province   :   ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 25.03.22
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36


Very long time ago, I have the best tutor, Wenzel Svojanovsky. If someone knows the email address of Wenzel Svojanovsky, please send an email to johanesgumabo@gmail.com.
Help me, linux0001.com will expire on July 16, 2025. I have no money to renew it. View detail

If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.