Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

Conic Class Reference

Define a conic surface. Inherits origin point and axis direction from Surface. More...

#include <Conic.h>

Inheritance diagram for Conic:

Surface GeomObject List of all members.

Public Methods

 Conic ( const Point& o, const Vector& a, double radius, double slope )
 specify origin, axis, radius at origin, slope of radius. More...

virtual double how_near ( const Point& x ) const
 signed function giving minimum distance to the surface: surface is actually defined by zero. More...

virtual double distance ( const Point& x ,const Vector& v, int ) const
 distance along direction v from point x to enter or leave the surface. More...

virtual Vector normal ( const Point& x ) const
 returns normal-vector at Point x, gradient of howNear function. More...

const Vectoraxis () const
double radius (double z=0) const
virtual const char* nameOf () const
 makes name available to subclasses using the type info facility. More...

virtual void printOn ( std::ostream& os = std::cout ) const
 print info about this object. More...


Private Attributes

double m_slope
double m_radius

Detailed Description

Define a conic surface. Inherits origin point and axis direction from Surface.

Definition at line 12 of file Conic.h.


Constructor & Destructor Documentation

Conic::Conic ( const Point & origin,
const Vector & axis,
double radius,
double slope )
 

specify origin, axis, radius at origin, slope of radius.

Definition at line 12 of file Conic.cxx.


Member Function Documentation

const Vector & Conic::axis ( ) const [inline]
 

Definition at line 30 of file Conic.h.

double Conic::distance ( const Point & x,
const Vector & vhat,
int inout ) const [virtual]
 

distance along direction v from point x to enter or leave the surface.

Reimplemented from Surface.

Definition at line 53 of file Conic.cxx.

double Conic::how_near ( const Point & x ) const [virtual]
 

signed function giving minimum distance to the surface: surface is actually defined by zero.

The distance will be positive if the point is inside the Plane, negative if the point is outside.

Reimplemented from Surface.

Definition at line 23 of file Conic.cxx.

const char * Conic::nameOf ( ) const [inline, virtual]
 

makes name available to subclasses using the type info facility.

Reimplemented from GeomObject.

Definition at line 35 of file Conic.h.

Vector Conic::normal ( const Point & x ) const [virtual]
 

returns normal-vector at Point x, gradient of howNear function.

Reimplemented from Surface.

Definition at line 40 of file Conic.cxx.

void Conic::printOn ( std::ostream & os = std::cout ) const [virtual]
 

print info about this object.

Reimplemented from GeomObject.

Definition at line 97 of file Conic.cxx.

double Conic::radius ( double z = 0 ) const [inline]
 

Definition at line 32 of file Conic.h.


Member Data Documentation

double Conic::m_radius [private]
 

Definition at line 42 of file Conic.h.

double Conic::m_slope [private]
 

Definition at line 41 of file Conic.h.


The documentation for this class was generated from the following files:
Generated at Wed Nov 21 12:20:13 2001 by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000