Open Inventor Reference
SbCylinder Class Reference

Class for representing a cylinder. More...

#include <Inventor/SbLinear.h>

List of all members.

Public Member Functions

 SbCylinder ()
 Constructors. One takes an axis and radius.
 SbCylinder (const SbLine &a, float r)
 Constructors. One takes an axis and radius.
void setValue (const SbLine &a, float r)
 Change the axis and radius.
void setAxis (const SbLine &a)
 Set just the axis or radius.
void setRadius (float r)
 Set just the axis or radius.
const SbLinegetAxis () const
 Return the axis and radius.
float getRadius () const
 Return the axis and 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

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 1316 of file SbLinear.h.


Constructor & Destructor Documentation

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

Member Function Documentation

const SbLine& SbCylinder::getAxis ( ) const [inline]

Definition at line 1334 of file SbLinear.h.

float SbCylinder::getRadius ( ) const [inline]

Definition at line 1336 of file SbLinear.h.

SbBool SbCylinder::intersect ( const SbLine l,
SbVec3f enter,
SbVec3f exit 
) const
SbBool SbCylinder::intersect ( const SbLine l,
SbVec3f intersection 
) const
void SbCylinder::setAxis ( const SbLine a)
void SbCylinder::setRadius ( float  r)
void SbCylinder::setValue ( const SbLine a,
float  r 
)

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