Coin Logo http://www.sim.no/
http://www.coin3d.org/

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
32class COIN_DLL_API SbCylinder {
33public:
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
46private:
47 SbLine axis;
48 float radius;
49};
50
51#endif // !COIN_SBCYLINDER_H
The SbCylinder class is a representation of a cylinder.
Definition SbCylinder.h:32
The SbLine class represents a line in 3D space.
Definition SbLine.h:32
The SbVec3f class is a 3 dimensional vector with floating point coordinates.
Definition SbVec3f.h:40

Copyright © 1998-2010 by Kongsberg Oil & Gas Technologies. All rights reserved.

Generated on Wed Jul 17 2024 for Coin by Doxygen 1.12.0.