64 lines
1.2 KiB
C++
64 lines
1.2 KiB
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, SH Software Co. Ltd.
|
|
// = FileName : XWcsStream 类
|
|
// = Version : ver2.0
|
|
// = Author : zjq
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: XWcsStream 定义
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#include "StdAfx.h"
|
|
#include "XWcsStream.h"
|
|
#include "XGlobalFunc.h"
|
|
|
|
XWcsStream::XWcsStream()
|
|
{
|
|
TCHAR szLay[80] = _T("");
|
|
xg_getvar(_T("CLAYER"), szLay);
|
|
sLayer = szLay;
|
|
}
|
|
|
|
XWcsStream::~XWcsStream()
|
|
{
|
|
|
|
}
|
|
|
|
const TCHAR * XWcsStream::Descriptor()
|
|
{
|
|
return _T("XWcsStream");
|
|
}
|
|
|
|
const TCHAR * XWcsStream::Desc()
|
|
{
|
|
return Descriptor();
|
|
}
|
|
|
|
void XWcsStream::DrawXEntity(const Entity & eEnt) // 生成实体
|
|
{
|
|
Entity ent = eEnt;
|
|
Groups g(_T("*"));
|
|
RBList rbBuf = ads_entgetx(ent, (resbuf *)&g);
|
|
ads_entmake(rbBuf);
|
|
}
|
|
|
|
void XWcsStream::DrawXCurve(const XCurveSegment& curve, double nThick)
|
|
{
|
|
curve.Make(sLayer);
|
|
}
|
|
|
|
void XWcsStream::DrawXPoly(const XPoly2D& poly, double nThick)
|
|
{
|
|
poly.Make(sLayer);
|
|
}
|
|
|
|
void XWcsStream::DrawXPoint(const XPoint& pt)
|
|
{
|
|
pt.Make(sLayer);
|
|
}
|
|
|
|
void XWcsStream::DrawX3DFace(const X3DFace& face)
|
|
{
|
|
face.Make(sLayer);
|
|
}
|