00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
#ifndef COIN_SBCYLINDER_H
00021
#define COIN_SBCYLINDER_H
00022
00023
#include <stdio.h>
00024
00025
#include <Inventor/SbBasic.h>
00026
#include <Inventor/SbLine.h>
00027
00028 class COIN_DLL_API SbCylinder {
00029
public:
00030 SbCylinder(
void);
00031 SbCylinder(
const SbLine& a,
const float r);
00032
void setValue(
const SbLine& a,
const float r);
00033
void setAxis(
const SbLine& a);
00034
void setRadius(
const float r);
00035
const SbLine& getAxis(
void)
const;
00036
float getRadius(
void)
const;
00037 SbBool intersect(
const SbLine& l,
SbVec3f& intersection)
const;
00038 SbBool intersect(
const SbLine& l,
SbVec3f& enter,
SbVec3f& exit)
const;
00039
00040
void print(FILE * file)
const;
00041
00042
private:
00043
SbLine axis;
00044
float radius;
00045 };
00046
00047
#endif // !COIN_SBCYLINDER_H