Go::ParamFunctionInt Class Reference
[Intersections]

This class is a base class providing an interface to the parametric "intersection objects" with 1-dimensional range. More...

#include <ParamFunctionInt.h>

Inheritance diagram for Go::ParamFunctionInt:

Go::ParamObjectInt Go::GeomObjectInt Go::Param0FunctionInt Go::Param1FunctionInt Go::Param2FunctionInt Go::Spline1FunctionInt Go::Spline2FunctionInt List of all members.

Public Member Functions

virtual ~ParamFunctionInt ()
 Destructor.
virtual Param0FunctionIntgetParam0FunctionInt ()
 If the object is not of type Param0FunctionInt, return NULL, otherwise return the object.
virtual Param1FunctionIntgetParam1FunctionInt ()
 If the object is not of type Param1FunctionInt, return NULL, otherwise return the object.
virtual Param2FunctionIntgetParam2FunctionInt ()
 If the object is not of type Param2FunctionInt, return NULL, otherwise return the object.
virtual void subdivide (int pardir, double par, std::vector< boost::shared_ptr< ParamFunctionInt > > &subdiv_objs, std::vector< boost::shared_ptr< ParamFunctionInt > > &bd_objs)=0
 Subdivide the object in the specified parameter direction and parameter value.
virtual bool monotone (Point &dir, double tol=1.0e-15) const=0
 Returns true if the object is monotone in any direction.
virtual void getBoundaryObjects (std::vector< boost::shared_ptr< BoundaryFunctionInt > > &bd_objs)=0
 Return the boundary objects of this object.
virtual int getMeshSize (int dir)=0
 Return the size of the geometric sample mesh in the specified direction.
virtual double paramFromMesh (int dir, int idx)=0
 Return the corresponding mesh parameter.
virtual std::vector< double
>::iterator 
getMesh ()=0
 Return the geometric sample mesh for the parametric function.

Protected Attributes

std::vector< boost::shared_ptr<
BoundaryFunctionInt > > 
boundary_obj_

Detailed Description

This class is a base class providing an interface to the parametric "intersection objects" with 1-dimensional range.

Definition at line 57 of file ParamFunctionInt.h.


Member Function Documentation

virtual void Go::ParamFunctionInt::subdivide ( int  pardir,
double  par,
std::vector< boost::shared_ptr< ParamFunctionInt > > &  subdiv_objs,
std::vector< boost::shared_ptr< ParamFunctionInt > > &  bd_objs 
) [pure virtual]

Subdivide the object in the specified parameter direction and parameter value.

Parameters:
pardir direction in which to subdive. Indexing starts at 0.
par parameter in which to subdivide.
subdiv_objs The subparts of this object. Of the same geometric dimension as this object.
bd_objs the boundaries between the returned subdiv_objs. Of geometric dimension 1 less than this object.

Implemented in Go::Param0FunctionInt, Go::Param1FunctionInt, and Go::Param2FunctionInt.

virtual bool Go::ParamFunctionInt::monotone ( Point &  dir,
double  tol = 1.0e-15 
) const [pure virtual]

Returns true if the object is monotone in any direction.

Parameters:
dir the direction in which the object is monotone. Relevant only if object is monotone.

Implemented in Go::Param0FunctionInt, Go::Param1FunctionInt, Go::Param2FunctionInt, Go::Spline1FunctionInt, and Go::Spline2FunctionInt.

virtual void Go::ParamFunctionInt::getBoundaryObjects ( std::vector< boost::shared_ptr< BoundaryFunctionInt > > &  bd_objs  )  [pure virtual]

Return the boundary objects of this object.

Parameters:
bd_objs the boundary objects of this object.

Implemented in Go::Param0FunctionInt, Go::Param1FunctionInt, Go::Param2FunctionInt, and Go::Spline2FunctionInt.

virtual int Go::ParamFunctionInt::getMeshSize ( int  dir  )  [pure virtual]

Return the size of the geometric sample mesh in the specified direction.

Parameters:
dir the parameter direction in question. Indexing starts at 0.

Implemented in Go::Param0FunctionInt, Go::Param1FunctionInt, Go::Param2FunctionInt, and Go::Spline1FunctionInt.

virtual double Go::ParamFunctionInt::paramFromMesh ( int  dir,
int  idx 
) [pure virtual]

Return the corresponding mesh parameter.

Parameters:
dir the parameter direction in question. Indexing starts at 0.
idx the mesh idx in the specified direction. Indexing starts at 0.

Implemented in Go::Param0FunctionInt, Go::Param1FunctionInt, Go::Param2FunctionInt, and Go::Spline1FunctionInt.


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