Table of contents Introduction Tutorial Main classes
Top Previous Up Next

Curve::Grid class reference
[Core module]

Declaration

#include <Goptical/Curve/Grid>

namespace Goptical {
namespace Curve {
class Grid;
};
};

This class is a member of the Curve namespace.

Inheritance








Description

This class use the Data::Grid 2d data set container to define a 3d non-symmetric curve. Several data interpolation algorithms are available allowing use of Data::Bicubic spline interpolation with or without prescribed derivative/gradient data. .

The Spline curve model is preferred when dealing with rotationally symmetric curves.

See also Data::Grid class.

Members

See also the full member list section for this class.

Inherited members

  • 5 members inherited from Base

Functions

  • Grid (unsigned int n, double radius)
  • ~Grid ()
  • virtual void derivative (const Math::Vector2 &xy, Math::Vector2 &dxdy) const
  • void fit (const Base &c)
  • const Data::Grid & get_data () const
  • Data::Grid & get_data ()
  • virtual double sagitta (const Math::Vector2 &xy) const

Members detail

Grid(unsigned int n, double radius)

Creates a grid curve with n*n sample points defined over the given radius.

~Grid()

No documentation available

virtual void derivative(const Math::Vector2 &xy, Math::Vector2 &dxdy) const

This virtual function overrides the derivative virtual function defined in the Base base abstract class.

Documentation inherited from base class:

Get curve x and y derivative (gradient) at specified point

void fit(const Base &c)

Set grid values to best fit an other curve. Gradient data will be extracted only if the interpolation have been set to Data::BicubicDeriv previously

const Data::Grid & get_data() const

Get embedded sagitta/gradient data container

Data::Grid & get_data()

Get embedded sagitta/gradient data container

virtual double sagitta(const Math::Vector2 &xy) const

This virtual function implements the sagitta pure function declared in the Base base abstract class.

Documentation inherited from base class:

Get curve sagitta at specified point

Valid XHTML 1.0 StrictGenerated by diaxen on Sun Jan 8 00:47:23 2012 using MkDoc

AltStyle によって変換されたページ (->オリジナル) /