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

#include <Ramp.h>

Inheritance diagram for dyno::Ramp:
Collaboration diagram for dyno::Ramp:

Public Member Functions

 Ramp ()
 
 Ramp (const Ramp &ramp)
 
 ~Ramp ()
 
float getCurveValueByX (float inputX)
 Get the value value"Y" of the curve by value"X" .
 
void updateBezierCurve () override
 Update the data of the Bezier curve points.
 
double calculateLengthForPointSet (std::vector< Coord2D > BezierPtSet)
 
void updateResampleBezierCurve ()
 Resample Bezier curve.
 
void borderCloseResort ()
 Reordering points on canvas boundaries.
 
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)
 
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 ()
 

Public Attributes

std::vector< Coord2DmyBezierPoint_H
 
std::vector< Coord2DFE_MyCoord
 
std::vector< Coord2DFE_HandleCoord
 

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 13 of file Ramp.h.

Constructor & Destructor Documentation

◆ Ramp() [1/2]

dyno::Ramp::Ramp ( )

Definition at line 5 of file Ramp.cpp.

Here is the caller graph for this function:

◆ Ramp() [2/2]

dyno::Ramp::Ramp ( const Ramp & ramp)

Definition at line 10 of file Ramp.cpp.

Here is the call graph for this function:

◆ ~Ramp()

dyno::Ramp::~Ramp ( )
inline

Definition at line 19 of file Ramp.h.

Member Function Documentation

◆ borderCloseResort()

void dyno::Ramp::borderCloseResort ( )

Reordering points on canvas boundaries.

Definition at line 157 of file Ramp.cpp.

Here is the caller graph for this function:

◆ calculateLengthForPointSet()

double dyno::Ramp::calculateLengthForPointSet ( std::vector< Coord2D > BezierPtSet)

Definition at line 143 of file Ramp.cpp.

Here is the call graph for this function:

◆ getCurveValueByX()

float dyno::Ramp::getCurveValueByX ( float inputX)

Get the value value"Y" of the curve by value"X" .

Definition at line 35 of file Ramp.cpp.

◆ isSquard()

bool dyno::Ramp::isSquard ( )
inlineoverridevirtual

Reimplemented from dyno::Canvas.

Definition at line 44 of file Ramp.h.

◆ updateBezierCurve()

void dyno::Ramp::updateBezierCurve ( )
overridevirtual

Update the data of the Bezier curve points.

Reimplemented from dyno::Canvas.

Definition at line 70 of file Ramp.cpp.

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

◆ UpdateFieldFinalCoord()

void dyno::Ramp::UpdateFieldFinalCoord ( )
overridevirtual

Updating the data of a Field.

Reimplemented from dyno::Canvas.

Definition at line 225 of file Ramp.cpp.

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

◆ updateResampleBezierCurve()

void dyno::Ramp::updateResampleBezierCurve ( )

Resample Bezier curve.

Definition at line 89 of file Ramp.cpp.

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

Member Data Documentation

◆ FE_HandleCoord

std::vector<Coord2D> dyno::Ramp::FE_HandleCoord

Definition at line 52 of file Ramp.h.

◆ FE_MyCoord

std::vector<Coord2D> dyno::Ramp::FE_MyCoord

Definition at line 51 of file Ramp.h.

◆ myBezierPoint_H

std::vector<Coord2D> dyno::Ramp::myBezierPoint_H

Definition at line 49 of file Ramp.h.


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