30 lines
1.0 KiB
C++
30 lines
1.0 KiB
C++
#pragma once
|
|
#include "XDrawUGRampEdJig.h"
|
|
#define DOUBLET_SPACING 200
|
|
#define BROKEN_LINE_OFFSET 800
|
|
class CUndergroundRampStyle
|
|
{
|
|
enum ERampShape
|
|
{
|
|
eLineRamp= 0, //直坡道
|
|
eArcRamp, //弧坡道
|
|
};
|
|
public:
|
|
CUndergroundRampStyle(void);
|
|
~CUndergroundRampStyle(void);
|
|
void DrawUnderGroundRamp();
|
|
int DragDrawLine( XDrawUGRampEdJig &jig, XPoint &ptStart, const TCHAR *prompt, XPoint &ptEnd, const TCHAR *kword,
|
|
int *kwordId, BOOL *bDiscontinue, XPoly2D &rampPolyBase);
|
|
// 给定起点, 终点进行拖动半径绘制弧
|
|
int DragDrawArc_SER(XDrawUGRampEdJig &jig, const XPoint &ptStart, const XPoint &ptEnd, XPoint &ptAny, const TCHAR *prompt,
|
|
double *nRadius, XPoly2D &rampPolyBase, const TCHAR *kword=NULL, int *kwordId=NULL);
|
|
|
|
// 给定起点, 终点进行弧上一点拖动绘制弧
|
|
int DragDrawArc_SEP(XDrawUGRampEdJig &jig, const XPoint &ptStart, const XPoint &ptEnd, const TCHAR *prompt,
|
|
XPoint &ptAny, XPoly2D &rampPolyBase, const TCHAR *kword=NULL, int *kwordId=NULL);
|
|
|
|
//生成实体
|
|
void GenerateEntity(XPoly2D &rampPolyBase);
|
|
};
|
|
|