SoPolylineResamplerApproximation2d Class Reference
[Computational Geometry]

ImageViz SoPolylineResamplerApproximation2d polyline approximation. More...

#include <ImageViz/Engines/ImageSegmentation/ComputationalGeometry/SoPolylineResamplerApproximation2d.h>

Inheritance diagram for SoPolylineResamplerApproximation2d:
SoImageVizEngine SoEngine SoFieldContainer SoBase SoRefCounter SoTypedObject

List of all members.

Public Types

enum  InterpolationMode {
  LINEAR = 0,
  CUBIC = 1,
  CATMULLROM = 2
}

Public Member Functions

 SoPolylineResamplerApproximation2d ()

Public Attributes

SoMFVec2f inPolyline
SoSFEnum interpolationMode
SoSFDouble spacing
SoImageVizEngineMFieldOutput
< SoMFVec2f, const SbVec2f * > 
outPolyline

Detailed Description

ImageViz SoPolylineResamplerApproximation2d polyline approximation.

This engine resamples an input 2D polyline using either a linear, cubic or a cubic with Paul Breeuwsma coefficients (Catmull-Rom spline) interpolation.

The spacing between new points is defined by the spacing parameter.

FILE FORMAT/DEFAULT

SEE ALSO

SoPolylineResamplerApproximation3d


Library references:

Member Enumeration Documentation

Enumerator:
LINEAR 

Linear interpolation mode (default).

CUBIC 

Cubic interpolation mode.

CATMULLROM 

Cubic interpolation using Paul Breeuwsma coefficients (Catmull-Rom spline) mode.


Constructor & Destructor Documentation

SoPolylineResamplerApproximation2d::SoPolylineResamplerApproximation2d (  ) 

Constructor.


Member Data Documentation

Input polyline to resample.

Interpolation mode.

Use enum InterpolationMode. Default is LINEAR.

Output resampled polyline.

Spacing between nodes in extrusion.

This spacing is expressed in world coordinates. Default is 1.


The documentation for this class was generated from the following file:

Open Inventor Toolkit reference manual, generated on 12 Feb 2024
Copyright © Thermo Fisher Scientific All rights reserved.
http://www.openinventor.com/