144 lines
2.9 KiB
C++
144 lines
2.9 KiB
C++
//-------------------------------------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, SH Software Co. Ltd.
|
|
// = FileName : AecEntity.cpp
|
|
// = Version : ver2.0
|
|
// = Author : zjq
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: $·ÇÇúÏß¶ÔÏó»ùÀàµÄ¶¨Òå
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#include "StdAfx.h"
|
|
#include "AecEntity.h"
|
|
#include "XConfigBase.h"
|
|
#include "XGlobalFunc.h"
|
|
#include "XPrivateGlobalFunc.h"
|
|
|
|
ACRX_NO_CONS_DEFINE_MEMBERS(AecEntity, AcDbEntity);
|
|
AEC_IMPLEMENT_MEMBERS(AecEntity, AcDbEntity);
|
|
|
|
AecEntity::AecEntity()
|
|
{
|
|
|
|
}
|
|
|
|
Adesk::UInt32 AecEntity::subSetAttributes(AcGiDrawableTraits * traits)
|
|
{
|
|
Adesk::UInt32 nRet = AcDbEntity::subSetAttributes(traits);
|
|
nRet = AEntityBase::SetAttributes(traits, nRet);
|
|
|
|
return nRet;
|
|
}
|
|
|
|
Adesk::UInt32 AecEntity::subViewportDrawLogicalFlags(AcGiViewportDraw * vd)
|
|
{
|
|
Adesk::UInt32 nRet = AcDbEntity::subViewportDrawLogicalFlags(vd);
|
|
nRet = AEntityBase::ViewportDrawLogicalFlags(vd, nRet);
|
|
|
|
return nRet;
|
|
}
|
|
|
|
void AecEntity::UnionScale(double nScale)
|
|
{
|
|
assertWriteEnabled();
|
|
AcGeMatrix3d mat;
|
|
mat.setToScaling(nScale);
|
|
subTransformBy(mat);
|
|
}
|
|
|
|
#if ARX > 17
|
|
|
|
void AecEntity::subGripStatus(const AcDb::GripStat status)
|
|
{
|
|
assertReadEnabled();
|
|
AEntityBase::GripStatus(status);
|
|
}
|
|
|
|
Acad::ErrorStatus AecEntity::subGetGripPoints(AcDbGripDataPtrArray& grips,
|
|
const double curViewUnitSize,
|
|
const int gripSize,
|
|
const AcGeVector3d& curViewDir,
|
|
const int bitflags) const
|
|
{
|
|
assertReadEnabled();
|
|
return AEntityBase::GetGripPoints(grips,curViewUnitSize,gripSize,curViewDir,bitflags);
|
|
}
|
|
|
|
Acad::ErrorStatus AecEntity::subMoveGripPointsAt(const AcDbVoidPtrArray& appData,
|
|
const AcGeVector3d& offset,
|
|
const int bitflags)
|
|
{
|
|
assertWriteEnabled();
|
|
return AEntityBase::MoveGripPointsAt(appData,offset,bitflags);
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
BOOL AecEntity::TBaseConvertFrom(const AcDbText *pText)
|
|
{
|
|
return FALSE;
|
|
}
|
|
|
|
AcDbEntity* AecEntity::TBaseCreateWipeOut()
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
const TCHAR * AecEntity::TBaseGetText() const
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
void AecEntity::TBaseSetText(const TCHAR *pszText)
|
|
{
|
|
|
|
}
|
|
|
|
XPoint AecEntity::TBaseGetLocation() const
|
|
{
|
|
return XPoint();
|
|
}
|
|
|
|
void AecEntity::TBaseSetLocation(XPoint pt)
|
|
{
|
|
|
|
}
|
|
|
|
void AecEntity::TBaseSetRotation(double nRot)
|
|
{
|
|
|
|
}
|
|
|
|
double AecEntity::TBaseGetRotation() const
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
XDcClip::ClipType AecEntity::GetClipType()const
|
|
{
|
|
return XDcClip::kClipIn;
|
|
}
|
|
|
|
AcDbObjectId AecEntity::InitLayer(LPCTSTR pszLayer, BOOL bApplyChange )
|
|
{
|
|
AcDbObjectId idLay;
|
|
XConfigBase* pBase = GetGlobalConfigBase();
|
|
if (pBase != NULL)
|
|
{
|
|
idLay = pBase->InitLayer(pszLayer,bApplyChange);
|
|
}
|
|
return idLay;
|
|
}
|
|
|
|
void InitEntity(BOOL bTrue)
|
|
{
|
|
if (bTrue)
|
|
{
|
|
AecEntity::rxInit();
|
|
}
|
|
else
|
|
{
|
|
deleteAcRxClass(AecEntity::desc());
|
|
}
|
|
} |