Go::CylinderInt Class Reference
[Intersections]

Class for cylindrical algebraic intersection objects. More...

#include <CylinderInt.h>

Inheritance diagram for Go::CylinderInt:

Go::AlgObj3DInt Go::AlgObjectInt List of all members.

Public Member Functions

 CylinderInt ()
 Constructor.
 CylinderInt (Point ax_pt, Point ax_dir, double radius)
 Constructor.
virtual ~CylinderInt ()
 Destructor.
void read (std::istream &is)
 Read a cylinder description from file.
Point ax_pt () const
 Get the axis reference point.
Point ax_dir () const
 Get the axis direction vector.
double radius () const
 Get the radius of the cylinder.
SplineSurface * surface (Point bottom_pos, double height) const
 Get a SplineSurface representing the cylinder.

Detailed Description

Class for cylindrical algebraic intersection objects.

Definition at line 52 of file CylinderInt.h.


Constructor & Destructor Documentation

Go::CylinderInt::CylinderInt (  ) 

Constructor.

Used when reading from file.

Go::CylinderInt::CylinderInt ( Point  ax_pt,
Point  ax_dir,
double  radius 
)

Constructor.

Parameters:
ax_pt reference point on the center axis of the cylinder.
ax_dir direction vector of the center axis of the cylinder.
radius the radius of the cylinder.


Member Function Documentation

void Go::CylinderInt::read ( std::istream &  is  ) 

Read a cylinder description from file.

Parameters:
is the stream containing the cylinder description.

Point Go::CylinderInt::ax_pt (  )  const

Get the axis reference point.

Returns:
the axis reference point.

Point Go::CylinderInt::ax_dir (  )  const

Get the axis direction vector.

Returns:
the axis direction vector.

double Go::CylinderInt::radius (  )  const

Get the radius of the cylinder.

Returns:
the radius of the cylinder.

SplineSurface* Go::CylinderInt::surface ( Point  bottom_pos,
double  height 
) const

Get a SplineSurface representing the cylinder.

This can be used to visualize the object. Since the object is to be tesselated we make sure it is bounded.

Parameters:
bottom_pos the lowest point on the direction axis.
height the height of the cylinder.
Returns:
The spline surface of the cylinder.


The documentation for this class was generated from the following file:
Generated on Fri Nov 23 12:24:33 2007 for GoTools Intersections Library by  doxygen 1.5.1