SDC C-Project CF Review 프로그램
LYW
2021-07-27 281a73558e8d437fc778b390281560fa2e7a0e5e
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#pragma once
#include "CHPathScheduler/PathScheduler.h"
 
inline bool AscendAxisX(SPathData& a, SPathData& b)
{
    return (a.nPosX < b.nPosX);
}
 
inline bool DescendAxisX(SPathData& a, SPathData& b)
{
    return (a.nPosX > b.nPosX);
}
 
inline bool AscendAxisY(SPathData& a, SPathData& b)
{
    return (a.nPosY < b.nPosY);
}
 
inline bool DescendAxisY(SPathData& a, SPathData& b)
{
    return (a.nPosY > b.nPosY);
}
 
class AFX_EXT_CLASS CPathScheduler_Sorting : public CPathScheduler
{
public:
    CPathScheduler_Sorting(void);
    virtual ~CPathScheduler_Sorting(void);
    virtual int        GetSchedulerType() const    { return SchedulerType_Sorting; }
 
protected:
    virtual int        CalculatePath(const SPathData& startPath, const VectorPathData& vecTotalPathData, CPathSchedulerResult& scheduleResult);
 
    virtual int        CalculatePath(const SPathData& startPath, const VectorPathData& vecFirstPathData, const VectorPathData& vecSecondPathData, CPathSchedulerResult& scheduleResult)    { return 1; }
};