https://github.com/ialhashim/topo-blend
Revision 39b13612ebd645a65eda854771b517371f2f858a authored by ennetws on 13 March 2015, 18:17:18 UTC, committed by ennetws on 13 March 2015, 18:17:18 UTC
1 parent c702819
Raw File
Tip revision: 39b13612ebd645a65eda854771b517371f2f858a authored by ennetws on 13 March 2015, 18:17:18 UTC
Create README.md
Tip revision: 39b1361
TaskCurve.h
#pragma once
#include "Task.h"

class TaskCurve : public Task
{
public:
    TaskCurve( Structure::Graph * activeGraph, Structure::Graph * targetGraph, TaskType taskType, int ID ) :
        Task(activeGraph, targetGraph, taskType, ID){}

    void prepareCurve();
    void executeCurve(double t);

    /// Prepare Task
    void prepareGrowCurve();
    void prepareShrinkCurve();
    void prepareMorphCurve();

    /// Prepare sub-routines
    void prepareShrinkCurveOneEdge( Structure::Link* link );
	void prepareGrowCurveOneEdge( Structure::Link * tlink );
	void prepareCrossingMorphCurve();
	void encodeCurve(const Vector4d& coordinateA, const Vector4d& coordinateB);

    /// Execute
    void executeCrossingCurve( double t );
    void executeMorphCurve( double t );
    void foldCurve( double t );

    // Quick access
    Structure::Curve * targetCurve();

};
back to top