64 lines
1.4 KiB
C++
64 lines
1.4 KiB
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
// = FileName : TGGiWcsDrawStream Àà
|
|
// = Version : ver2.0
|
|
// = Author : wlw
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: TGGiWcsDrawStream ¶¨Òå
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#include "StdAfx.h"
|
|
#include "TGGiWcsDrawStream.h"
|
|
#include "TchGlobalFunc.h"
|
|
|
|
TGGiWcsDrawStream::TGGiWcsDrawStream()
|
|
{
|
|
TCHAR szLay[80] = _T("");
|
|
TGGetVar(_T("CLAYER"), szLay);
|
|
sLayer = szLay;
|
|
}
|
|
|
|
TGGiWcsDrawStream::~TGGiWcsDrawStream()
|
|
{
|
|
|
|
}
|
|
|
|
const TCHAR * TGGiWcsDrawStream::Descriptor()
|
|
{
|
|
return _T("TGGiWcsDrawStream");
|
|
}
|
|
|
|
const TCHAR * TGGiWcsDrawStream::Desc()
|
|
{
|
|
return Descriptor();
|
|
}
|
|
|
|
void TGGiWcsDrawStream::DrawXEntity(const TEntitySet & eEnt) // Éú³ÉʵÌå
|
|
{
|
|
TEntitySet ent = eEnt;
|
|
TGroups g(_T("*"));
|
|
TRBList rbBuf = ads_entgetx(ent, (resbuf *)&g);
|
|
ads_entmake(rbBuf);
|
|
}
|
|
|
|
void TGGiWcsDrawStream::DrawXCurve(const TGGeCurveSegment& curve, double nThick)
|
|
{
|
|
curve.Make(sLayer);
|
|
}
|
|
|
|
void TGGiWcsDrawStream::DrawXPoly(const TGGePoly2D& poly, double nThick)
|
|
{
|
|
poly.Make(sLayer);
|
|
}
|
|
|
|
void TGGiWcsDrawStream::DrawXPoint(const TADSGePoint3d& pt)
|
|
{
|
|
pt.Make(sLayer);
|
|
}
|
|
|
|
void TGGiWcsDrawStream::DrawX3DFace(const TGGe3DFace& face)
|
|
{
|
|
face.Make(sLayer);
|
|
}
|