Open Inventor Reference
SbCylinder Class Reference

Class for representing a cylinder. More...

#include <Inventor/SbLinear.h>

Public Member Functions

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

Detailed Description

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

See Also
SbVec3f, SbLine, SbPlane, SbSphere, SoCylinder

Definition at line 1435 of file SbLinear.h.

Constructor & Destructor Documentation

◆ SbCylinder() [1/2]

SbCylinder::SbCylinder ( )

◆ SbCylinder() [2/2]

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

Member Function Documentation

◆ getAxis()

const SbLine& SbCylinder::getAxis ( ) const
inline

Definition at line 1453 of file SbLinear.h.

◆ getRadius()

float SbCylinder::getRadius ( ) const
inline

Definition at line 1455 of file SbLinear.h.

◆ intersect() [1/2]

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

◆ intersect() [2/2]

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

◆ setAxis()

void SbCylinder::setAxis ( const SbLine a)

◆ setRadius()

void SbCylinder::setRadius ( float  r)

◆ setValue()

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

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