http://www.sim.no
http://www.coin3d.org
include
Inventor
SbCylinder.h
1
#ifndef COIN_SBCYLINDER_H
2
#define COIN_SBCYLINDER_H
3
4
/**************************************************************************\
5
*
6
* This file is part of the Coin 3D visualization library.
7
* Copyright (C) 1998-2007 by Systems in Motion. All rights reserved.
8
*
9
* This library is free software; you can redistribute it and/or
10
* modify it under the terms of the GNU General Public License
11
* ("GPL") version 2 as published by the Free Software Foundation.
12
* See the file LICENSE.GPL at the root directory of this source
13
* distribution for additional information about the GNU GPL.
14
*
15
* For using Coin with software that can not be combined with the GNU
16
* GPL, and for taking advantage of the additional benefits of our
17
* support services, please contact Systems in Motion about acquiring
18
* a Coin Professional Edition License.
19
*
20
* See http://www.coin3d.org/ for more information.
21
*
22
* Systems in Motion, Postboks 1283, Pirsenteret, 7462 Trondheim, NORWAY.
23
* http://www.sim.no/ sales@sim.no coin-support@coin3d.org
24
*
25
\**************************************************************************/
26
27
#include <stdio.h>
28
29
#include <Inventor/SbBasic.h>
30
#include <Inventor/SbLine.h>
31
32
class
COIN_DLL_API
SbCylinder
{
33
public
:
34
SbCylinder
(
void
);
35
SbCylinder
(
const
SbLine
& a,
const
float
r);
36
void
setValue(
const
SbLine
& a,
const
float
r);
37
void
setAxis(
const
SbLine
& a);
38
void
setRadius(
const
float
r);
39
const
SbLine
& getAxis(
void
)
const
;
40
float
getRadius(
void
)
const
;
41
SbBool intersect(
const
SbLine
& l,
SbVec3f
& intersection)
const
;
42
SbBool intersect(
const
SbLine
& l,
SbVec3f
& enter,
SbVec3f
& exit)
const
;
43
44
void
print(FILE * file)
const
;
45
46
private
:
47
SbLine
axis;
48
float
radius;
49
};
50
51
#endif // !COIN_SBCYLINDER_H
SbVec3f
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition:
SbVec3f.h:37
SbLine
The SbLine class represents a line in 3D space.SbLine provides a way of specifying a directed line...
Definition:
SbLine.h:32
SbCylinder
The SbCylinder class is a representation of a cylinder.This class is used within other classes in Coi...
Definition:
SbCylinder.h:32
Copyright © 1998-2007 by
Systems in Motion AS
. All rights reserved.
Generated on Fri Feb 17 2017 for Coin by
Doxygen.
1.8.13