The BezierSpline class -Composite Cubic Bezier Curve.
More...
#include <BezierSpline.hh>
|
| BezierSpline (std::shared_ptr< utility::Evaluator< ContextType >> childEvaluator, const std::vector< Vector2 > &points, const std::vector< Vector2 > &tangents, float epsilon=0.001f) |
| BezierSpline - Constructor. More...
|
|
| BezierSpline (std::shared_ptr< utility::Evaluator< ContextType >> childEvaluator, std::vector< Vector2 > &&points, std::vector< Vector2 > &&tangents, float epsilon=0.001f) |
| BezierSpline - Constructor. More...
|
|
virtual float | Sample (float argument) const override final |
| Sample - Transforms argument into output value depending on the type of Curve. More...
|
|
std::vector< Vector2 > & | GetPoints () |
| GetPoints. More...
|
|
const std::vector< Vector2 > & | GetPoints () const |
| GetPoints. More...
|
|
std::vector< Vector2 > & | GetTangents () |
| GetTangents. More...
|
|
const std::vector< Vector2 > & | GetTangents () const |
| GetTangents. More...
|
|
EvaluatorType | GetEvaluatorType () const override final |
|
| Curve (std::shared_ptr< utility::Evaluator< ContextType >> childEvaluator) |
| Curve - Constructor. More...
|
|
| Curve (const Curve< ContextType > &other)=default |
|
| Curve (Curve< ContextType > &&other)=default |
|
virtual float | Evaluate (const ContextType &context, UtilityEvaluatorSnapshot *const snapshot) const override final |
| Evaluate - Called from EvaluateContext which also evaluates context, but without automatically filling snapshot with debug data. Should be overriden for each derived Evaluator. More...
|
|
float | EvaluateContext (const ContextType &context, UtilityEvaluatorSnapshot *const snapshot) const |
| EvaluateContext - evaluates provided context and if provided snapshot is not empty, fills it with debug data describing this node. More...
|
|
|
virtual void | DebugDump (const std::map< const void *, std::size_t > &nodeMapping, EvaluationDebugData &debugData) const override final |
| DebugDump - Called from EvaluateContext, which generates additional debug data for each evaluator. Should be overriden in each derived evaluator to better reflect debug tree topology. More...
|
|
template<typename ContextType>
class grail::curves::BezierSpline< ContextType >
The BezierSpline class -Composite Cubic Bezier Curve.
- Template Parameters
-
ContextType | - Type of evaluated object. By default - ValueTuple(AIEntity, Blackboard). |
◆ BezierSpline() [1/2]
template<typename ContextType >
BezierSpline - Constructor.
- Parameters
-
childEvaluator | - Evaluator which output will be transformed by this curve. |
points | - Collection of points. Each two sequenced pair of points describe P0 and P3 of partial spline. |
tangents | - Collection of tangent vectors. Each two sequenced pair of vector, added to corresponding points describe P1 and P2 of partial spline. |
epsilon | - number representing precision of comparison of two floats |
◆ BezierSpline() [2/2]
template<typename ContextType >
BezierSpline - Constructor.
- Parameters
-
childEvaluator | - Evaluator which output will be transformed by this curve. |
points | - Collection of points. Each two sequenced pair of points describe P0 and P3 of partial spline. |
tangents | - Collection of tangent vectors. Each two sequenced pair of vector, added to corresponding points describe P1 and P2 of partial spline. |
epsilon | - number representing precision of comparison of two floats |
◆ GetPoints() [1/2]
template<typename ContextType >
GetPoints.
- Returns
- Points passed to this object in its constructor.
◆ GetPoints() [2/2]
template<typename ContextType >
GetPoints.
- Returns
- Points passed to this object in its constructor.
◆ GetTangents() [1/2]
template<typename ContextType >
GetTangents.
- Returns
- Tangents passed to this object in its constructor
◆ GetTangents() [2/2]
template<typename ContextType >
GetTangents.
- Returns
- Tangents passed to this object in its constructor
◆ Sample()
template<typename ContextType >
|
inlinefinaloverridevirtual |
Sample - Transforms argument into output value depending on the type of Curve.
- Parameters
-
argument | - Value of a curve argument belonging to its domain. |
- Returns
- Transformed argument.
Implements grail::curves::Curve< ContextType >.
The documentation for this class was generated from the following file: