33#include "hurricane/Component.h"
34#include "hurricane/Contacts.h"
47 const uint64_t RotateTopMetal = (1 << 0);
48 const uint64_t RotateBottomMetal = (1 << 1);
49 const uint64_t AllRotate = RotateTopMetal|RotateBottomMetal;
59 virtual bool isMaster ()
const {
return false; };
60 virtual std::string _getTypeName ()
const {
return "Contact::AnchorHook"; };
61 virtual std::string _getString ()
const;
82 static inline void enableCheckMinSize ();
83 static inline void disableCheckMinSize ();
99 inline bool isRotatedTopMetal ()
const;
100 inline bool isRotatedBottomMetal ()
const;
101 virtual Hooks getHooks ()
const;
104 virtual Point getPosition ()
const;
105 virtual Box getBoundingBox ()
const;
106 virtual const Layer* getLayer ()
const {
return _layer;};
129 inline void setRotatedTopMetal (
bool state );
130 inline void setRotatedBottomMetal (
bool state );
134 virtual void _preDestroy ();
137 virtual std::string _getTypeName ()
const {
return _TName(
"Contact"); };
138 virtual std::string _getString ()
const;
139 virtual Record* _getRecord ()
const;
141 static bool _checkMinSize;
142 AnchorHook _anchorHook;
153 inline void Contact::enableCheckMinSize () { _checkMinSize=
true; }
154 inline void Contact::disableCheckMinSize () { _checkMinSize=
false; }
155 inline bool Contact::isRotatedTopMetal ()
const {
return _flags & RotateTopMetal; }
156 inline bool Contact::isRotatedBottomMetal ()
const {
return _flags & RotateBottomMetal; }
158 inline void Contact::setRotatedTopMetal (
bool state )
159 {
if (state) _flags |= RotateTopMetal;
else _flags &= ~RotateTopMetal; }
161 inline void Contact::setRotatedBottomMetal (
bool state )
162 {
if (state) _flags |= RotateBottomMetal;
else _flags &= ~RotateBottomMetal; }
168 class JsonContact :
public JsonComponent {
170 static void initialize ();
171 JsonContact (
unsigned long flags );
172 virtual std::string getTypeName ()
const;
173 virtual JsonContact* clone (
unsigned long )
const;
174 virtual void toData ( JsonStack& );
BasicLayer description (API)
Definition BasicLayer.h:42
Box description (API)
Definition Box.h:30
Component description (API)
Definition Component.h:43
std::int64_t Unit
Definition DbU.h:67
Generic Collection auto-pointer.
Definition Collection.h:235
Hook description (API)
Definition Hook.h:34
Layer description (API)
Definition Layer.h:120
Net description (API)
Definition Net.h:46
Point description (API)
Definition Point.h:30
Contains Almost Everything.
Definition BasicLayer.h:39