Files
envi-code/SourceCode/Code2026/tg_shs/inc/geo/TAcDbLayerTable.h
T
2026-09-28 15:28:50 +08:00

106 lines
1.9 KiB
C++

//-----------------------------------------------------------------------------+
// Copyright (C), 1998-2007, Beijing Tangent Software Co. Ltd.
// = FileName : TAcDbLayerTable Àà
// = Version : ver2.0
// = Author : wlw
// = CreateDate : 2002-09-09
// = Description: TAcDbLayerTable ÉùÃ÷
// = Maintainers:
//
//-----------------------------------------------------------------------------+
#ifndef _TACDBLAYERTABLE_H_
#define _TACDBLAYERTABLE_H_
#ifndef _TSYMBOLTABLERECORD_H_
#include "TSymbolTableRecord.h"
#endif
#ifndef _TACSTRING_H_
#include "TACString.h"
#endif
#ifndef _TWCSTRING_H_
#include "TWCString.h"
#endif
#ifndef _TCHGLOBALFUNC_H_
#include "TchGlobalFunc.h"
#endif
class GEOAPI TAcDbLayerTable : public TAcDbSymbolTable
{
public:
TAcDbLayerTable();
TAcDbLayerTable(TAcDbLayerTable &);
TAcDbLayerTable(const TCHAR *sym, int setnext = 0);
int IsOff();
int IsFrozen();
int IsFrozenNewViewPorts();
int IsLocked();
int IsCurrent();
int Color();
LPCTSTR LineType();
protected:
int m_nFlag; // 70
int m_nColor; // 62
TCString m_sName; // 2
TCString m_sLineType; // 6
};
inline TAcDbLayerTable::TAcDbLayerTable()
{
assert(0);
}
inline TAcDbLayerTable::TAcDbLayerTable(TAcDbLayerTable &xLayTab)
{
assert(0);
}
inline int TAcDbLayerTable::Color()
{
return abs(m_nColor);
}
inline LPCTSTR TAcDbLayerTable::LineType()
{
TCHAR *pLType = m_sLineType;
return (LPCTSTR)pLType;
}
inline int TAcDbLayerTable::IsOff()
{
return (m_nColor < 0);
}
inline int TAcDbLayerTable::IsFrozen()
{
return (m_nFlag & 0x01);
}
inline int TAcDbLayerTable::IsFrozenNewViewPorts()
{
return (m_nFlag & 0x02);
}
inline int TAcDbLayerTable::IsLocked()
{
return (m_nFlag & 0x04);
}
inline int TAcDbLayerTable::IsCurrent()
{
TCString sLayer;
TGGetVar(_T("CLAYER"), (TCHAR *)sLayer);
return !_tcsicmp(m_sName,sLayer);
}
#endif