1 /***************************************************************************
2 csegment.cpp - K Desktop Planetarium
5 copyright : (C) 2004 by Jason Harris
6 email : kstars@30doradus.org
7 ***************************************************************************/
9 /***************************************************************************
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
16 ***************************************************************************/
21 CSegment::CSegment() : Name1(), Name2() {
22 Nodes
.setAutoDelete( true );
25 void CSegment::addPoint( double ra
, double dec
) {
26 SkyPoint
*p
= new SkyPoint( ra
, dec
);
30 bool CSegment::setNames( QString n1
, QString n2
) {
31 if ( n1
.length() == 3 && n2
.length() == 3 ) {
40 bool CSegment::borders( QString cname
) {
41 if ( Name1
== cname
|| Name2
== cname
) return true;