Open Inventor Release 2024.2.0
 
Loading...
Searching...
No Matches
SbCylinder Class Reference

Class for representing a cylinder. More...

#include <Inventor/SbCylinder.h>

Public Member Functions

 SbCylinder ()
 Default constructor.
 
 SbCylinder (const SbLine &a, float r)
 Constructor that takes an axis and radius.
 
void setValue (const SbLine &a, float r)
 Change the axis and radius.
 
void setAxis (const SbLine &a)
 Set the axis.
 
void setRadius (float r)
 Set the radius.
 
const SbLinegetAxis () const
 Return the axis.
 
float getRadius () const
 Return the radius.
 
SbBool intersect (const SbLine &l, SbVec3f &intersection) const
 Intersect line and cylinder, returning TRUE if there is an intersection.
 
SbBool intersect (const SbLine &l, SbVec3f &enter, SbVec3f &exit) const
 Intersect line and cylinder, returning TRUE if there is an intersection.
 

Detailed Description

Class for representing a cylinder.

This class defines a simple cylinder datatype. It is used by the Open Inventor toolkit for arguments or return values.

SEE ALSO

SbVec3f, SbLine, SbPlane, SbSphere, SoCylinder

Definition at line 56 of file SbCylinder.h.

Constructor & Destructor Documentation

◆ SbCylinder() [1/2]

SbCylinder::SbCylinder ( )

Default constructor.

The cylinder is oriented along the Y axis and has a radius of 1.

◆ SbCylinder() [2/2]

SbCylinder::SbCylinder ( const SbLine a,
float  r 
)

Constructor that takes an axis and radius.

Member Function Documentation

◆ getAxis()

const SbLine & SbCylinder::getAxis ( ) const
inline

Return the axis.

Definition at line 86 of file SbCylinder.h.

◆ getRadius()

float SbCylinder::getRadius ( ) const
inline

Return the radius.

Definition at line 90 of file SbCylinder.h.

◆ intersect() [1/2]

SbBool SbCylinder::intersect ( const SbLine l,
SbVec3f enter,
SbVec3f exit 
) const

Intersect line and cylinder, returning TRUE if there is an intersection.

◆ intersect() [2/2]

SbBool SbCylinder::intersect ( const SbLine l,
SbVec3f intersection 
) const

Intersect line and cylinder, returning TRUE if there is an intersection.

◆ setAxis()

void SbCylinder::setAxis ( const SbLine a)

Set the axis.

◆ setRadius()

void SbCylinder::setRadius ( float  r)

Set the radius.

◆ setValue()

void SbCylinder::setValue ( const SbLine a,
float  r 
)

Change the axis and radius.


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