#include <HxSampledBSplineCurveTiedSvt.h>
Inheritance diagram for HxSampledBSplineCurveTiedSvt::
Public Types | |
typedef POA_HxCorba::SampledBSplineCurve_tie< HxSampledBSplineCurveTiedSvt > | TieT |
typedef HxSampledBSplineCurve | HxT |
typedef HxCorba::SampledBSplineCurve | CorbaT |
Public Methods | |
HxSampledBSplineCurveTiedSvt (const HxSampledBSplineCurve &obj) | |
virtual | ~HxSampledBSplineCurveTiedSvt () |
virtual HxCorba::BSplineCurve_ptr | continuousCurve () |
virtual HxCorba::PointR2 | C (CORBA::Long j) |
virtual HxCorba::PointR2Seq * | allC () |
virtual HxCorba::Polyline2d_ptr | CPoly () |
virtual HxCorba::PointR2Seq * | allP () |
virtual HxCorba::Polyline2d_ptr | controlP () |
|
|
|
|
|
|
|
00018 : HxSampledBSplineCurve(obj) 00019 { 00020 } |
|
00023 { 00024 } |
|
Reimplemented from HxSampledBSplineCurve.
00028 { 00029 HxBSplineCurve curve = HxSampledBSplineCurve::continuousCurve(); 00030 return HxRegisterTiedServant<HxBSplineCurveTiedSvt>(curve); 00031 } |
|
00035 { 00036 HxPointR2 p = HxSampledBSplineCurve::C(j); 00037 HxCorba::PointR2 result = {p.x(), p.y()}; 00038 return result; 00039 } |
|
00043 { 00044 int nPoints = HxSampledBSplineCurve::nSamples(); 00045 HxPointSetR2 set = HxSampledBSplineCurve::AllC(); 00046 00047 HxCorba::PointR2Seq_var seq = new HxCorba::PointR2Seq(); 00048 seq->length(nPoints); 00049 HxPointSetR2::const_iterator it = set.begin(); 00050 for(int i=0; i<nPoints; i++, it++) { 00051 seq[i].x = (*it).x(); 00052 seq[i].y = (*it).y(); 00053 } 00054 00055 return seq._retn(); 00056 } |
|
Reimplemented from HxSampledBSplineCurve.
00060 { 00061 HxPolyline2d poly = HxSampledBSplineCurve::CPoly(); 00062 return HxRegisterTiedServant<HxPolyline2dTiedSvt>(poly); 00063 } |
|
Reimplemented from HxSampledBSplineCurve.
00067 { 00068 int nPoints = HxSampledBSplineCurve::numP(); 00069 HxPointSetR2 set = HxSampledBSplineCurve::allP(); 00070 00071 HxCorba::PointR2Seq_var seq = new HxCorba::PointR2Seq(); 00072 seq->length(nPoints); 00073 HxPointSetR2::const_iterator it = set.begin(); 00074 for(int i=0; i<nPoints; i++, it++) { 00075 seq[i].x = (*it).x(); 00076 seq[i].y = (*it).y(); 00077 } 00078 00079 return seq._retn(); 00080 } |
|
Reimplemented from HxSampledBSplineCurve.
00084 { 00085 HxPolyline2d poly = HxSampledBSplineCurve::controlP(); 00086 return HxRegisterTiedServant<HxPolyline2dTiedSvt>(poly); 00087 } |