You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.7 KiB
C

#pragma once
#include "ObjContainer.h"
//<2F><><EFBFBD><EFBFBD><EFBFBD>ò<EFBFBD><C3B2><EFBFBD>
struct SArrayPar{
public:
SArrayPar()
{
m_bRectArray = true;//<2F>Ƿ<EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
m_bCircleArray = false;
m_bFillArray = false;
m_ArrayCntH = 10;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
m_ArrayCntV = 1;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
m_ArrayOffsetH = 20;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
m_ArrayOffsetV = 1;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
m_ArrayCnt = 36;//Բ<><D4B2><EFBFBD><EFBFBD><EFBFBD>е<EFBFBD><D0B5><EFBFBD><EFBFBD><EFBFBD>
m_Radius = 10;//<2F><><EFBFBD>а
m_StartAngle = 90;//<2F><><EFBFBD>п<EFBFBD>ʼ<EFBFBD>Ƕ<EFBFBD>
m_GapAngle = 10;//<2F><><EFBFBD>м<EFBFBD><D0BC><EFBFBD><EFBFBD>Ƕ<EFBFBD>(360 <20>Ƚ<EFBFBD>)
m_FillOffset = -0.1;
m_FillCnt = 1000;
}
public:
bool m_bRectArray;//<2F>Ƿ<EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
bool m_bCircleArray;
bool m_bFillArray;
int m_ArrayCntH;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int m_ArrayCntV;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
double m_ArrayOffsetH;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
double m_ArrayOffsetV;//<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
int m_ArrayCnt;//Բ<><D4B2><EFBFBD><EFBFBD><EFBFBD>е<EFBFBD><D0B5><EFBFBD><EFBFBD><EFBFBD>
double m_Radius;//<2F><><EFBFBD>а
double m_StartAngle;//<2F><><EFBFBD>п<EFBFBD>ʼ<EFBFBD>Ƕ<EFBFBD>(360 <20>Ƚ<EFBFBD>)
double m_GapAngle;//<2F><><EFBFBD>м<EFBFBD><D0BC><EFBFBD><EFBFBD>Ƕ<EFBFBD>(360 <20>Ƚ<EFBFBD>)
double m_FillOffset;
int m_FillCnt;
};
class CArrayMgr
{
public:
CArrayMgr(void);
~CArrayMgr(void);
void Creat(SArrayPar &par);
private:
void RectCreat(SArrayPar &ArrayPar);
void CircleCreat(SArrayPar &ArrayPar);
void FillCreat(SArrayPar &ArrayPar);
void CreatCmd();
private:
CObjContainer m_ObjContainer;
};