Go::IntersectorAlgPar Class Reference
[Intersections]

This class is an interface class used to compute the intersection between an algebraic object and a parametric object. More...

#include <IntersectorAlgPar.h>

Inheritance diagram for Go::IntersectorAlgPar:

Go::Intersector List of all members.

Public Member Functions

 IntersectorAlgPar (boost::shared_ptr< AlgObjectInt > alg_obj, boost::shared_ptr< ParamObjectInt > param_obj, boost::shared_ptr< GeoTol > epsge, Intersector *prev=0, int eliminated_parameter=-1, double eliminated_value=0)
 Constructor.
virtual ~IntersectorAlgPar ()
 Destructor.
virtual void compute (bool compute_at_boundary=true)
 Compute the current intersections (topology).
virtual void getResult (std::vector< boost::shared_ptr< IntersectionPoint > > &int_points, std::vector< boost::shared_ptr< IntersectionCurve > > &int_curves)
 Return intersection points and curves.
virtual int numParams () const
 Return the number of parameter directions for the object.

Protected Member Functions

virtual int repairIntersections ()

Protected Attributes

boost::shared_ptr< ParamObjectIntparam_int_
boost::shared_ptr< AlgObjectIntalgobj_int_
boost::shared_ptr< IntersectorFuncConstint_func_const_

Detailed Description

This class is an interface class used to compute the intersection between an algebraic object and a parametric object.

The algebraic object is "plugged" into the parametric object, resulting in a scalar function. We then use the IntersectorFuncConst class to find the intersection.

Definition at line 61 of file IntersectorAlgPar.h.


Constructor & Destructor Documentation

Go::IntersectorAlgPar::IntersectorAlgPar ( boost::shared_ptr< AlgObjectInt alg_obj,
boost::shared_ptr< ParamObjectInt param_obj,
boost::shared_ptr< GeoTol epsge,
Intersector prev = 0,
int  eliminated_parameter = -1,
double  eliminated_value = 0 
)

Constructor.

The last two variables are relevant only if the parent has one more parameter than the Intersector to be constructed.

Parameters:
alg_obj the algebraic object.
param_obj the parametric object.
epsge the associated tolerance.
prev the "parent" Intersector (0 if there is no parent).
eliminated_parameter the index of the parameter that was removed from the parent prev.
eliminated_value the value of the parameter that was removed from the parent prev.


Member Function Documentation

virtual void Go::IntersectorAlgPar::compute ( bool  compute_at_boundary = true  )  [virtual]

Compute the current intersections (topology).

Parameters:
compute_at_boundary flag to indicate that we compute at the boundary

Reimplemented from Go::Intersector.

virtual void Go::IntersectorAlgPar::getResult ( std::vector< boost::shared_ptr< IntersectionPoint > > &  int_points,
std::vector< boost::shared_ptr< IntersectionCurve > > &  int_curves 
) [virtual]

Return intersection points and curves.

Parameters:
int_points vector of shared pointers to IntersectionPoints
int_curves vector of shared pointers to IntersectionCurves

Reimplemented from Go::Intersector.

virtual int Go::IntersectorAlgPar::numParams (  )  const [virtual]

Return the number of parameter directions for the object.

Returns:
thenumber of parameter directions

Implements Go::Intersector.


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