SbCylinder Class Reference
[Basics]

Class for representing a cylinder. More...

#include <Inventor/SbCylinder.h>

List of all members.

Public Member Functions

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

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


Constructor & Destructor Documentation

SbCylinder::SbCylinder (  ) 

Default constructor.

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

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

Constructor that takes an axis and radius.


Member Function Documentation

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

Return the axis.

float SbCylinder::getRadius (  )  const [inline]

Return the radius.

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

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

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

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

void SbCylinder::setAxis ( const SbLine a  ) 

Set the axis.

void SbCylinder::setRadius ( float  r  ) 

Set the radius.

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

Change the axis and radius.


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

Open Inventor Toolkit reference manual, generated on 4 Sep 2023
Copyright © Thermo Fisher Scientific All rights reserved.
https://www.openinventor.com/