#include <HxBSplineCurveTiedSvt.h>
Inheritance diagram for HxBSplineCurveTiedSvt::
Public Types | |
typedef POA_HxCorba::BSplineCurve_tie< HxBSplineCurveTiedSvt > | TieT |
typedef HxBSplineCurve | HxT |
typedef HxCorba::BSplineCurve | CorbaT |
Public Methods | |
HxBSplineCurveTiedSvt (const HxBSplineCurve &obj) | |
virtual | ~HxBSplineCurveTiedSvt () |
virtual HxCorba::BSplineType | curveType () |
virtual HxCorba::PointR2 | P (CORBA::Long i) |
virtual HxCorba::PointR2Seq * | allP () |
virtual HxCorba::Polyline2d_ptr | controlP () |
virtual HxCorba::PointR2 | C (CORBA::Long j) |
virtual HxCorba::PointR2 | center () |
virtual HxCorba::Polyline2d_ptr | sampleC (CORBA::Long n) |
|
|
|
|
|
|
|
00018 : HxBSplineCurve(obj) 00019 { 00020 } |
|
00023 { 00024 } |
|
Reimplemented from HxBSplineCurve.
00028 { 00029 HxBSplineType type = HxBSplineCurve::curveType(); 00030 00031 if(type == closed) 00032 return HxCorba::CLOSED; 00033 else if(type == open) 00034 return HxCorba::OPEN; 00035 else if(type == openRepeatEndPoints) 00036 return HxCorba::OPEN_REPEAT_END_POINTS; 00037 00038 return (HxCorba::BSplineType)0; 00039 } |
|
00043 { 00044 HxPointR2 p = HxBSplineCurve::P(i); 00045 HxCorba::PointR2 result = {p.x(), p.y()}; 00046 return result; 00047 } |
|
Reimplemented from HxBSplineCurve.
00051 { 00052 int nPoints = HxBSplineCurve::numP(); 00053 HxPointSetR2 set = HxBSplineCurve::allP(); 00054 00055 HxCorba::PointR2Seq_var seq = new HxCorba::PointR2Seq(); 00056 seq->length(nPoints); 00057 HxPointSetR2::const_iterator it = set.begin(); 00058 for(int i=0; i<nPoints; i++, it++) { 00059 seq[i].x = (*it).x(); 00060 seq[i].y = (*it).y(); 00061 } 00062 00063 return seq._retn(); 00064 } |
|
Reimplemented from HxBSplineCurve.
00068 { 00069 HxPolyline2d poly = HxBSplineCurve::controlP(); 00070 return HxRegisterTiedServant<HxPolyline2dTiedSvt>(poly); 00071 } |
|
00076 { 00077 HxPointR2 p = HxBSplineCurve::C(j); 00078 HxCorba::PointR2 result = {p.x(), p.y()}; 00079 return result; 00080 } |
|
Reimplemented from HxBSplineCurve.
00084 { 00085 HxPointR2 p = HxBSplineCurve::center(); 00086 HxCorba::PointR2 result = {p.x(), p.y()}; 00087 return result; 00088 } |
|
00092 { 00093 HxPolyline2d poly = HxBSplineCurve::sampleC(n); 00094 return HxRegisterTiedServant<HxPolyline2dTiedSvt>(poly); 00095 } |