SbCylinder.h Source File

| http://www.sim.no/ http://www.coin3d.org/

- Main Page
- Related Pages
- Modules
- Classes
- Files

- File List
- File Members

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) by Kongsberg Oil & Gas Technologies.
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 Kongsberg Oil & Gas Technologies
18 * about acquiring a Coin Professional Edition License.
19 *
20 * See http://www.coin3d.org/ for more information.
21 *
22 * Kongsberg Oil & Gas Technologies, Bygdoy Alle 5, 0257 Oslo, 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.This vector class is used...
Definition: SbVec3f.h:40
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-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.