Horus Doc || Corba Reference || Corba   Client Server   Stubs C++   Stubs Java   Servant Generator  

HxPolyline2dTiedSvt Class Reference

Tied object for HxPolyline2d. More...

#include <HxPolyline2dTiedSvt.h>

Inheritance diagram for HxPolyline2dTiedSvt::

HxPolyline2d List of all members.

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::PointR2SeqgetPoints ()

Detailed Description

Tied object for HxPolyline2d.


Member Typedef Documentation

typedef POA_HxCorba::Polyline2d_tie<HxPolyline2dTiedSvt> HxPolyline2dTiedSvt::TieT
 

typedef HxPolyline2d HxPolyline2dTiedSvt::HxT
 

typedef HxCorba::Polyline2d HxPolyline2dTiedSvt::CorbaT
 


Constructor & Destructor Documentation

HxPolyline2dTiedSvt::HxPolyline2dTiedSvt const HxPolyline2d   obj
 

00015     : HxPolyline2d(obj)
00016 {
00017 }

HxPolyline2dTiedSvt::~HxPolyline2dTiedSvt   [virtual]
 

00020 {
00021 }


Member Function Documentation

CORBA::Boolean HxPolyline2dTiedSvt::getClosed   [virtual]
 

Reimplemented from HxPolyline2d.

00025 {
00026     return (HxPolyline2d::getClosed() != 0);
00027 }

HxCorba::PointR2 HxPolyline2dTiedSvt::getPoint CORBA::Long    i [virtual]
 

00031 {
00032     HxPointR2 p = HxPolyline2d::getPoint(i);
00033     HxCorba::PointR2 result = {p.x(), p.y()};
00034     return result;
00035 }

HxCorba::PointR2Seq * HxPolyline2dTiedSvt::getPoints   [virtual]
 

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 }


The documentation for this class was generated from the following files:
Generated on Mon Jan 27 15:20:56 2003 for CorbaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001