Open Inventor Reference
SbSphered Class Reference

Class for representing a sphere with double values. More...

#include <Inventor/SbLineard.h>

Public Member Functions

 SbSphered ()
 Constructors.
 
 SbSphered (const SbVec3d &c, double r)
 Construct a sphere given center and radius.
 
void setValue (const SbVec3d &c, double r)
 Change the center and radius.
 
void setCenter (const SbVec3d &c)
 Set just the center or radius.
 
void setRadius (double r)
 Set just the center or radius.
 
const SbVec3dgetCenter () const
 Return the center and radius.
 
double getRadius () const
 Return the center and radius.
 
void circumscribe (const SbBox3d &box)
 Return a sphere containing a given box.
 
bool intersect (const SbLined &l, SbVec3d &intersection) const
 Intersect line and sphere, returning TRUE if there is an intersection.
 
bool intersect (const SbLined &l, SbVec3d &enter, SbVec3d &exit) const
 

Detailed Description

Represents a sphere in 3D. This is a lightweight datatype that is used for arguments or return values in the Inventor toolkit. See SoSphere for a database sphere (used for rendering, picking, etc.). {}

See Also
SbVec3f, SbLine, SbSphere, SbVec3d, SbLined, SoSphere

Definition at line 1047 of file SbLineard.h.

Constructor & Destructor Documentation

◆ SbSphered() [1/2]

SbSphered::SbSphered ( )
inline

Definition at line 1051 of file SbLineard.h.

◆ SbSphered() [2/2]

SbSphered::SbSphered ( const SbVec3d c,
double  r 
)

Member Function Documentation

◆ circumscribe()

void SbSphered::circumscribe ( const SbBox3d box)

◆ getCenter()

const SbVec3d & SbSphered::getCenter ( ) const
inline

Definition at line 1065 of file SbLineard.h.

◆ getRadius()

double SbSphered::getRadius ( ) const
inline

Definition at line 1067 of file SbLineard.h.

◆ intersect() [1/2]

bool SbSphered::intersect ( const SbLined l,
SbVec3d enter,
SbVec3d exit 
) const

◆ intersect() [2/2]

bool SbSphered::intersect ( const SbLined l,
SbVec3d intersection 
) const

◆ setCenter()

void SbSphered::setCenter ( const SbVec3d c)

◆ setRadius()

void SbSphered::setRadius ( double  r)

◆ setValue()

void SbSphered::setValue ( const SbVec3d c,
double  r 
)

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