#include <HxPolyline2dTiedSvt.h>
Inheritance diagram for HxPolyline2dTiedSvt::
Public Types | |
typedef POA_HxCorba::Polyline2d_tie< HxPolyline2dTiedSvt > | TieT |
typedef HxPolyline2d | HxT |
typedef HxCorba::Polyline2d | CorbaT |
Public Methods | |
HxPolyline2dTiedSvt (const HxPolyline2d &obj) | |
virtual | ~HxPolyline2dTiedSvt () |
virtual CORBA::Boolean | getClosed () |
virtual HxCorba::PointR2 | getPoint (CORBA::Long i) |
virtual HxCorba::PointR2Seq * | getPoints () |
|
|
|
|
|
|
|
00015 : HxPolyline2d(obj) 00016 { 00017 } |
|
00020 { 00021 } |
|
Reimplemented from HxPolyline2d.
00025 { 00026 return (HxPolyline2d::getClosed() != 0); 00027 } |
|
00031 { 00032 HxPointR2 p = HxPolyline2d::getPoint(i); 00033 HxCorba::PointR2 result = {p.x(), p.y()}; 00034 return result; 00035 } |
|
Reimplemented from HxPolyline2d.
00039 { 00040 int nPoints = HxPolyline2d::getNrPoints(); 00041 HxPointSetR2 set = HxPolyline2d::getPoints(); 00042 00043 HxCorba::PointR2Seq_var seq = new HxCorba::PointR2Seq(); 00044 seq->length(nPoints); 00045 HxPointSetR2::const_iterator it = set.begin(); 00046 for(int i=0; i<nPoints; i++, it++) { 00047 seq[i].x = (*it).x(); 00048 seq[i].y = (*it).y(); 00049 } 00050 00051 return seq._retn(); 00052 } |