PeriDyno 1.2.1
Loading...
Searching...
No Matches
dyno::Curve Class Reference

#include <Curve.h>

Inheritance diagram for dyno::Curve:
Collaboration diagram for dyno::Curve:

Public Member Functions

 Curve ()
 
 Curve (CurveMode mode)
 
 Curve (const Curve &curve)
 
 ~Curve ()
 
void updateResampleBezierCurve (std::vector< Coord2D > &myBezierPoint_H)
 Resample Bezier curve.
 
void UpdateFieldFinalCoord () override
 Updating the data of a Field.
 
bool isSquard () override
 
- Public Member Functions inherited from dyno::Canvas
 Canvas ()
 
 ~Canvas ()
 
void addPoint (float x, float y)
 
void addPointAndHandlePoint (Coord2D point, Coord2D handle_1, Coord2D handle_2)
 
void addFloatItemToCoord (float x, float y, std::vector< Coord2D > &coordArray)
 
void clearMyCoord ()
 
void setCurveClose (bool s)
 
void setInterpMode (bool useBezier)
 
void setResample (bool s)
 
void useBezier ()
 
void useLinear ()
 
void setSpacing (double s)
 
virtual void updateBezierCurve ()
 
void updateBezierPointToBezierSet (Coord2D p0, Coord2D p1, Coord2D p2, Coord2D p3, std::vector< Coord2D > &bezierSet)
 
void updateResampleLinearLine ()
 
void resamplePointFromLine (std::vector< Coord2D > pointSet)
 
std::vector< Coord2DgetPoints ()
 
unsigned getPointSize ()
 
Canvas::InterpolationgetInterpMode ()
 
void convertCoordToStr (std::string VarName, std::vector< Canvas::Coord2D > Array, std::string &Str)
 
template<typename T>
void convertVarToStr (std::string VarName, T value, std::string &Str)
 
void setVarByStr (std::string Str, double &value)
 
void setVarByStr (std::string Str, float &value)
 
void setVarByStr (std::string Str, int &value)
 
void setVarByStr (std::string Str, bool &value)
 
void setVarByStr (std::string Str, Canvas::Interpolation &value)
 
std::vector< Coord2D > & getUserPoints ()
 
std::vector< Coord2D > & getUserHandles ()
 
bool & getResample ()
 
bool & getClose ()
 
float & getSpacing ()
 

Additional Inherited Members

- Public Types inherited from dyno::Canvas
enum  Interpolation { Linear = 0 , Bezier = 1 , InterpolationCount = 2 }
 
enum  CurveMode { Open = 0 , Close = 1 }
 
- Protected Member Functions inherited from dyno::Canvas
void rebuildHandlePoint (std::vector< Coord2D > coordSet)
 
void buildSegMent_Length_Map (std::vector< Coord2D > BezierPtSet)
 
- Protected Attributes inherited from dyno::Canvas
Canvas::Interpolation mInterpMode = Linear
 
float mSpacing = 5
 
bool mResample = true
 
bool mClose = false
 
std::vector< Coord2DmUserCoord
 
std::vector< Coord2DmUserHandle
 
std::vector< Coord2DmBezierPoint
 
std::vector< Coord2DmFinalCoord
 
std::vector< Coord2DmResamplePoint
 
std::map< float, EndPointmLength_EndPoint_Map
 
std::vector< double > mLengthArray
 

Detailed Description

Definition at line 12 of file Curve.h.

Constructor & Destructor Documentation

◆ Curve() [1/3]

dyno::Curve::Curve ( )

Definition at line 8 of file Curve.cpp.

Here is the caller graph for this function:

◆ Curve() [2/3]

dyno::Curve::Curve ( CurveMode mode)
inline

Definition at line 17 of file Curve.h.

◆ Curve() [3/3]

dyno::Curve::Curve ( const Curve & curve)

Definition at line 14 of file Curve.cpp.

Here is the call graph for this function:

◆ ~Curve()

dyno::Curve::~Curve ( )
inline

Definition at line 20 of file Curve.h.

Member Function Documentation

◆ isSquard()

bool dyno::Curve::isSquard ( )
inlineoverridevirtual

Reimplemented from dyno::Canvas.

Definition at line 31 of file Curve.h.

◆ UpdateFieldFinalCoord()

void dyno::Curve::UpdateFieldFinalCoord ( )
overridevirtual

Updating the data of a Field.

Reimplemented from dyno::Canvas.

Definition at line 40 of file Curve.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ updateResampleBezierCurve()

void dyno::Curve::updateResampleBezierCurve ( std::vector< Coord2D > & myBezierPoint_H)

Resample Bezier curve.

Definition at line 85 of file Curve.cpp.

Here is the call graph for this function:
Here is the caller graph for this function:

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