00001 // ***************************************************************************** 00002 // ***************************************************************************** 00003 // oaDot.h 00004 // 00005 // This file contains the definition for the oaDot class. This class implements 00006 // a dot shape. 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(oaDot_P) 00027 #define oaDot_P 00028 00029 00030 00031 // ***************************************************************************** 00032 // Nested includes 00033 // ***************************************************************************** 00034 #include "oaShape.h" 00035 #include "oaBlock.h" 00036 00037 00038 00039 // ***************************************************************************** 00040 // Declare and define types in the OpenAccess namespace. 00041 // ***************************************************************************** 00042 BEGIN_OA_NAMESPACE 00043 00044 00045 00046 // ***************************************************************************** 00047 // oaDot 00048 // ***************************************************************************** 00049 class OA_DESIGN_DLL_API oaDot : public oaShape { 00050 public: 00051 static oaDot *create(oaBlock *block, 00052 oaLayerNum layerNum, 00053 oaPurposeNum purposeNum, 00054 const oaPoint &location, 00055 oaDist width = 0, 00056 oaDist height = 0); 00057 00058 void getLocation(oaPoint &point) const; 00059 oaDist getWidth() const; 00060 oaDist getHeight() const; 00061 00062 void setLocation(const oaPoint &location); 00063 void setWidth(oaDist width); 00064 void setHeight(oaDist height); 00065 }; 00066 00067 00068 00069 // ***************************************************************************** 00070 // Design Traits. 00071 // ***************************************************************************** 00072 template<> 00073 class oaTraits<oaDot> { 00074 public: 00075 typedef oaShapeModTypeEnum modTypeType; 00076 typedef oaShape parentType; 00077 enum {dtIndex = oacShapeDataType}; 00078 enum {dataTypeEnumVal = oacShapeDataType}; 00079 enum {domain = oacBlockDomain}; 00080 enum {dbType = oacDesignDBType}; 00081 enum {isMultiDomain = false}; 00082 enum {isConcrete = true}; 00083 enum {objectTypeEnumVal = oacDotType}; 00084 }; 00085 00086 00087 00088 END_OA_NAMESPACE 00089 00090 #endif
Copyright © 2002 - 2010 Cadence Design Systems, Inc.
All Rights Reserved.