Functions
contrib/gel/vsol/vsol_digital_curve_2d.cxx File Reference
#include "vsol_digital_curve_2d.h"
#include <vsol/vsol_point_2d.h>
#include <vcl_iostream.h>
#include <vgl/vgl_point_2d.h>
#include <vgl/vgl_closest_point.h>
#include <vsl/vsl_vector_io.h>
#include <vcl_cmath.h>
#include <vcl_cassert.h>

Go to the source code of this file.

Functions

void vsl_b_write (vsl_b_ostream &os, const vsol_digital_curve_2d *p)
 Binary save vsol_digital_curve_2d to stream.
void vsl_b_read (vsl_b_istream &is, vsol_digital_curve_2d *&p)
 Binary load vsol_digital_curve_2d from stream.
double closest_index (const vgl_point_2d< double > &pt, const vsol_digital_curve_2d_sptr &curve)
 Return the floating point index of the point on the curve nearest to pt.
bool split (const vsol_digital_curve_2d_sptr &input, double index, vsol_digital_curve_2d_sptr &output1, vsol_digital_curve_2d_sptr &output2)
 Split the input curve into two pieces at the floating point index.

Detailed Description

Definition in file vsol_digital_curve_2d.cxx.


Function Documentation

double closest_index ( const vgl_point_2d< double > &  pt,
const vsol_digital_curve_2d_sptr curve 
)

Return the floating point index of the point on the curve nearest to pt.

Return the floating point index of the point on the curve nearest to point.

Definition at line 294 of file vsol_digital_curve_2d.cxx.

bool split ( const vsol_digital_curve_2d_sptr input,
double  index,
vsol_digital_curve_2d_sptr output1,
vsol_digital_curve_2d_sptr output2 
)

Split the input curve into two pieces at the floating point index.

Definition at line 311 of file vsol_digital_curve_2d.cxx.

void vsl_b_read ( vsl_b_istream is,
vsol_digital_curve_2d *&  p 
)

Binary load vsol_digital_curve_2d from stream.

Binary load vsol_digital_curve_2d* from stream.

Definition at line 270 of file vsol_digital_curve_2d.cxx.

void vsl_b_write ( vsl_b_ostream os,
const vsol_digital_curve_2d p 
)

Binary save vsol_digital_curve_2d to stream.

Binary save vsol_digital_curve_2d* to stream.

Definition at line 256 of file vsol_digital_curve_2d.cxx.