00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaShape.h 00004 // 00005 // This file contains the definition for the oaShape class. The oaShape class is 00006 // an abstract base for all layer-based objects. 00007 // 00008 // ***************************************************************************** 00009 // Except as specified in the OpenAccess terms of use of Cadence or Silicon 00010 // Integration Initiative, this material may not be copied, modified, 00011 // re-published, uploaded, executed, or distributed in any way, in any medium, 00012 // in whole or in part, without prior written permission from Cadence. 00013 // 00014 // Copyright 2002-2005 Cadence Design Systems, Inc. 00015 // All Rights Reserved. 00016 // 00017 // $Author: icftcm $ 00018 // $Revision: #1 $ 00019 // $Date: 2010/08/09 $ 00020 // $State: Exp $ 00021 // ***************************************************************************** 00022 // ***************************************************************************** 00023 00024 00025 00026 #if !defined(oaShape_P) 00027 #define oaShape_P 00028 00029 00030 00031 // ***************************************************************************** 00032 // Nested includes 00033 // ***************************************************************************** 00034 #include "oaTechDBTypes.h" 00035 #include "oaDesignModTypes.h" 00036 #include "oaFig.h" 00037 00038 00039 00040 // ***************************************************************************** 00041 // Declare and define types in the OpenAccess namespace. 00042 // ***************************************************************************** 00043 BEGIN_OA_NAMESPACE 00044 00045 00046 00047 // ***************************************************************************** 00048 // oaShape 00049 // ***************************************************************************** 00050 class OA_DESIGN_DLL_API oaShape : public oaPinFig { 00051 public: 00052 oaLPPHeader *getHeader() const; 00053 oaLayerNum getLayerNum() const; 00054 oaPurposeNum getPurposeNum() const; 00055 oaRouteStatus getRouteStatus() const; 00056 oaBitNet *getShieldedNet1() const; 00057 oaBitNet *getShieldedNet2() const; 00058 oaBoolean isUnShielded() const; 00059 00060 void setLPP(oaLayerNum layerNum, 00061 oaPurposeNum purposeNum); 00062 void setLayerNum(oaLayerNum layerNum); 00063 void setPurposeNum(oaPurposeNum purposeNum); 00064 void setRouteStatus(const oaRouteStatus &routeStatus); 00065 void setShieldedNet1(oaBitNet *net); 00066 void setShieldedNet2(oaBitNet *net); 00067 void setUnShielded(oaBoolean unShielded); 00068 00069 void transform(oaDouble scale, 00070 oaDouble angle); 00071 00072 oaCollection<oaRoute, oaShape> getConnRoutes() const; 00073 00074 enum {dtIndex = oacShapeDataType}; 00075 }; 00076 00077 00078 00079 // ***************************************************************************** 00080 // Design Traits. 00081 // ***************************************************************************** 00082 template<> 00083 class oaTraits<oaShape> { 00084 public: 00085 typedef oaPinFig parentType; 00086 typedef oaShapeModTypeEnum modTypeType; 00087 enum {domain = oacBlockDomain}; 00088 enum {dbType = oacDesignDBType}; 00089 enum {isMultiDomain = false}; 00090 enum {isConcrete = false}; 00091 enum {dtIndex = oacShapeDataType}; 00092 enum {dataTypeEnumVal = oacShapeDataType}; 00093 enum {abstractTypeEnumVal = oacShapeType}; 00094 }; 00095 00096 00097 00098 END_OA_NAMESPACE 00099 00100 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.