76 lines
1.9 KiB
C++
76 lines
1.9 KiB
C++
|
|
// -*- C++ -*-
|
|
//
|
|
// This file is part of the Coriolis Software.
|
|
// Copyright (c) UPMC 2008-2013, All Rights Reserved
|
|
//
|
|
// +-----------------------------------------------------------------+
|
|
// | C O R I O L I S |
|
|
// | K i t e - D e t a i l e d R o u t e r |
|
|
// | |
|
|
// | Author : Jean-Paul CHAPUT |
|
|
// | E-mail : Jean-Paul.Chaput@asim.lip6.fr |
|
|
// | =============================================================== |
|
|
// | C++ Module : "./VerticalTrack.cpp" |
|
|
// +-----------------------------------------------------------------+
|
|
|
|
|
|
#include "katana/VerticalTrack.h"
|
|
|
|
|
|
namespace Katana {
|
|
|
|
|
|
// -------------------------------------------------------------------
|
|
// Class : "VerticalTrack".
|
|
|
|
|
|
VerticalTrack::VerticalTrack ( RoutingPlane* routingPlane, uint32_t index )
|
|
: Track(routingPlane,index)
|
|
{ }
|
|
|
|
|
|
void VerticalTrack::_postCreate ()
|
|
{ }
|
|
|
|
|
|
VerticalTrack* VerticalTrack::create ( RoutingPlane* routingPlane, uint32_t index )
|
|
{
|
|
VerticalTrack* track = new VerticalTrack ( routingPlane, index );
|
|
|
|
track->_postCreate ();
|
|
|
|
return track;
|
|
}
|
|
|
|
|
|
VerticalTrack::~VerticalTrack ()
|
|
{ }
|
|
|
|
|
|
void VerticalTrack::_preDestroy ()
|
|
{ }
|
|
|
|
|
|
bool VerticalTrack::isHorizontal () const { return false; }
|
|
bool VerticalTrack::isVertical () const { return true; }
|
|
Flags VerticalTrack::getDirection () const { return Flags::Vertical; }
|
|
|
|
|
|
Point VerticalTrack::getPosition ( DbU::Unit coordinate ) const
|
|
{ return Point ( getAxis(), coordinate ); }
|
|
|
|
|
|
string VerticalTrack::_getTypeName () const
|
|
{ return "VerticalTrack"; }
|
|
|
|
|
|
Record* VerticalTrack::_getRecord () const
|
|
{
|
|
Record* record = Track::_getRecord ();
|
|
return record;
|
|
}
|
|
|
|
|
|
} // Katana namespace.
|