Open Inventor Reference
SbCylinder Class Reference

Class for representing a cylinder. More...

#include <Inventor/SbLinear.h>

Public Member Functions

 SbCylinder ()
 Default Constructor.
 
 SbCylinder (const SbLine &a, float r)
 Create cylinder from 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.
 
bool intersect (const SbLine &l, SbVec3f &intersection) const
 Intersect line and cylinder, returning TRUE if there is an intersection.
 
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: