Fish - FiberLib for VISH 0.3
Fish - The Fiber Bundle API for the Vish Visualization Shell
Fiber::Curve::ArcLength Struct Reference

Compute the arc length of a curve. More...

#include <CurveOperators.hpp>

Public Types

typedef MemArray< 1, double > ResultArray_t
typedef CurveOperatorData Constructor_t

Public Member Functions

 ArcLength (const CurveOperatorData &CurveData, const MemBase::Creator_t &C=MemCore::NullPtr())
RefPtr< ResultArray_t > result () const
void apply (const CreativeIterator< Eagle::PhysicalSpace::point > &Vertices, const std::vector< LineSet::LineIndex_t > &Line)

Public Attributes

RefPtr< MemArray< 1, double > > Data

Detailed Description

Compute the arc length of a curve.

Use in conjunction with an OnDemandCreator. Example:

(*MyLineSet.CartesianVertices)[ "ArcLength" ]
= new Field( new OnDemandCreator<ArcLengthComputer>(MyLineSet) );
A Field is a collection of CreativeArrayBase reference pointers which are accessed via FragmentID obj...
Definition Field.hpp:245
A Creator object that allows to create data on demand, when they are used and accessed.
Definition OnDemandCreator.hpp:65

Constructor & Destructor Documentation

◆ ArcLength()

Fiber::Curve::ArcLength::ArcLength ( const CurveOperatorData & CurveData,
const MemBase::Creator_t & C = MemCore::NullPtr() )
inline
Todo
Implement cache management

References Fiber::LineSet::getCoords().