121 lines
2.4 KiB
C++
121 lines
2.4 KiB
C++
//-----------------------------------------------------------------------------+
|
|
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
|
|
// = FileName : TGGiCustomSubEntityTraits.cpp
|
|
// = Version : ver2.0
|
|
// = Author : xlc
|
|
// = CreateDate : 2002-09-09
|
|
// = Description: ÀàµÄ¶¨Òå
|
|
// = Maintainers:
|
|
//
|
|
//-----------------------------------------------------------------------------+
|
|
#include "StdAfx.h"
|
|
#include "TGGiCustomSubEntityTraits.h"
|
|
|
|
ACRX_DEFINE_MEMBERS(TGGiCustomSubEntityTraits);
|
|
|
|
TGGiCustomSubEntityTraits::TGGiCustomSubEntityTraits()
|
|
{
|
|
mColorIndex = 5;
|
|
mMarkerId = 1;
|
|
mFillType = kAcGiFillAlways;
|
|
}
|
|
|
|
TGGiCustomSubEntityTraits::~TGGiCustomSubEntityTraits()
|
|
{
|
|
|
|
}
|
|
|
|
void TGGiCustomSubEntityTraits::setColor(const Adesk::UInt16 color)
|
|
{
|
|
mColorIndex = color;
|
|
}
|
|
|
|
void TGGiCustomSubEntityTraits::setLayer(const AcDbObjectId layerId)
|
|
{
|
|
mLayerId = layerId;
|
|
}
|
|
|
|
void TGGiCustomSubEntityTraits::setLineType(const AcDbObjectId linetypeId)
|
|
{
|
|
mLinetypeId = linetypeId;
|
|
}
|
|
void TGGiCustomSubEntityTraits::setMaterial(const AcDbObjectId materialId)
|
|
{
|
|
mMaterialId = materialId;
|
|
}
|
|
|
|
void TGGiCustomSubEntityTraits::setSelectionMarker(const Adesk::LongPtr markerId)
|
|
{
|
|
mMarkerId = markerId;
|
|
}
|
|
|
|
void TGGiCustomSubEntityTraits::setFillType(const AcGiFillType fillType)
|
|
{
|
|
mFillType = fillType;
|
|
}
|
|
|
|
Adesk::UInt16 TGGiCustomSubEntityTraits::color() const
|
|
{
|
|
return mColorIndex;
|
|
}
|
|
|
|
AcDbObjectId TGGiCustomSubEntityTraits::layerId() const
|
|
{
|
|
return mLayerId;
|
|
}
|
|
|
|
AcDbObjectId TGGiCustomSubEntityTraits::lineTypeId() const
|
|
{
|
|
return mLinetypeId;
|
|
}
|
|
|
|
AcDbObjectId TGGiCustomSubEntityTraits::materialId() const
|
|
{
|
|
return mMaterialId;
|
|
}
|
|
|
|
AcGiFillType TGGiCustomSubEntityTraits::fillType() const
|
|
{
|
|
return mFillType;
|
|
}
|
|
|
|
AcDb::LineWeight TGGiCustomSubEntityTraits::lineWeight() const
|
|
{
|
|
return mLineWeight;
|
|
}
|
|
|
|
double TGGiCustomSubEntityTraits::lineTypeScale() const
|
|
{
|
|
return mLineTypeScale;
|
|
}
|
|
|
|
void TGGiCustomSubEntityTraits::setThickness(double dThickness)
|
|
{
|
|
mThickness = dThickness;
|
|
}
|
|
|
|
double TGGiCustomSubEntityTraits::thickness() const
|
|
{
|
|
return mThickness;
|
|
}
|
|
|
|
void TGGiCustomSubEntityTraits::setLineWeight(const AcDb::LineWeight lw)
|
|
{
|
|
mLineWeight = lw;
|
|
}
|
|
|
|
void TGGiCustomSubEntityTraits::setLineTypeScale(double dScale)
|
|
{
|
|
mLineTypeScale = dScale;
|
|
}
|
|
|
|
void TGGiCustomSubEntityTraits::setTrueColor(const AcCmEntityColor& color)
|
|
{
|
|
mTrueColor = color; // R16±»µ÷ÓÃÁË
|
|
}
|
|
|
|
AcCmEntityColor TGGiCustomSubEntityTraits::trueColor() const
|
|
{
|
|
return mTrueColor;
|
|
}
|