Logo Search packages:      
Sourcecode: ktechlab version File versions  Download package

void Component::init4PinLeft ( int  h1 = -1,
int  h2 = -1,
int  h3 = -1,
int  h4 = -1 
) [protected, inherited]

Create 4 pins on the left of the component, either spread out, or at the given heights.

Definition at line 514 of file component.cpp.

{
      if ( h1 == -1 ) h1 = offsetY()+8;
      if ( h2 == -1 ) h2 = offsetY()+24;
      if ( h3 == -1 ) h3 = offsetY()+height()-24;
      if ( h4 == -1 ) h4 = offsetY()+height()-8;
      
      m_pNNode[0] = createPin( offsetX()-8,                 h1, 0,      "n1" );
      m_pNNode[1] = createPin( offsetX()-8,                 h2, 0,      "n2" );
      m_pNNode[2] = createPin( offsetX()-8,                 h3, 0,      "n3" );
      m_pNNode[3] = createPin( offsetX()-8,                 h4, 0,      "n4" );
}


Generated by  Doxygen 1.6.0   Back to index