00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ___HxCorbaMatrix_h__
00016 #define ___HxCorbaMatrix_h__
00017
00018 #ifndef OB_INTEGER_VERSION
00019 # error No ORBacus version defined! Is <OB/CORBA.h> included?
00020 #endif
00021
00022 #ifndef OB_NO_VERSION_CHECK
00023 # if (OB_INTEGER_VERSION != 4010000L)
00024 # error ORBacus version mismatch!
00025 # endif
00026 #endif
00027
00028 namespace HxCorba
00029 {
00030
00031 class Matrix;
00032 typedef Matrix* Matrix_ptr;
00033 typedef Matrix* MatrixRef;
00034
00035 extern OB::TypeCodeConst _tc_Matrix;
00036
00037 class MatrixFactory;
00038 typedef MatrixFactory* MatrixFactory_ptr;
00039 typedef MatrixFactory* MatrixFactoryRef;
00040
00041 extern OB::TypeCodeConst _tc_MatrixFactory;
00042
00043 }
00044
00045 void OBDuplicate(HxCorba::Matrix_ptr);
00046 void OBRelease(HxCorba::Matrix_ptr);
00047
00048 void OBMarshal(HxCorba::Matrix_ptr, OB::OutputStreamImpl*);
00049 void OBUnmarshal(HxCorba::Matrix_ptr&, OB::InputStreamImpl*);
00050
00051 void OBDuplicate(HxCorba::MatrixFactory_ptr);
00052 void OBRelease(HxCorba::MatrixFactory_ptr);
00053
00054 void OBMarshal(HxCorba::MatrixFactory_ptr, OB::OutputStreamImpl*);
00055 void OBUnmarshal(HxCorba::MatrixFactory_ptr&, OB::InputStreamImpl*);
00056
00057 namespace HxCorba
00058 {
00059
00060 typedef OB::ObjVar< Matrix > Matrix_var;
00061 typedef OB::ObjOut< Matrix > Matrix_out;
00062
00063 typedef OB::ObjVar< MatrixFactory > MatrixFactory_var;
00064 typedef OB::ObjOut< MatrixFactory > MatrixFactory_out;
00065
00066 }
00067
00068 namespace OBStubImpl_HxCorba
00069 {
00070
00071 class Matrix;
00072 typedef Matrix* Matrix_ptr;
00073
00074 class MatrixFactory;
00075 typedef MatrixFactory* MatrixFactory_ptr;
00076
00077 }
00078
00079 void OBDuplicate(OBStubImpl_HxCorba::Matrix_ptr);
00080 void OBRelease(OBStubImpl_HxCorba::Matrix_ptr);
00081
00082 void OBDuplicate(OBStubImpl_HxCorba::MatrixFactory_ptr);
00083 void OBRelease(OBStubImpl_HxCorba::MatrixFactory_ptr);
00084
00085 namespace OBStubImpl_HxCorba
00086 {
00087
00088 typedef OB::ObjVar< Matrix > Matrix_var;
00089
00090 typedef OB::ObjVar< MatrixFactory > MatrixFactory_var;
00091
00092 }
00093
00094
00095
00096
00097 namespace HxCorba
00098 {
00099
00100
00101
00102
00103 class Matrix : virtual public CORBA::Object
00104 {
00105 Matrix(const Matrix&);
00106 void operator=(const Matrix&);
00107
00108 protected:
00109
00110 static const char* ids_[];
00111
00112 public:
00113
00114 Matrix() { }
00115 virtual ~Matrix() { }
00116
00117 typedef Matrix_ptr _ptr_type;
00118 typedef Matrix_var _var_type;
00119
00120 static inline Matrix_ptr
00121 _duplicate(Matrix_ptr p)
00122 {
00123 if(p)
00124 p -> _add_ref();
00125 return p;
00126 }
00127
00128 static inline Matrix_ptr
00129 _nil()
00130 {
00131 return 0;
00132 }
00133
00134 static Matrix_ptr _narrow(CORBA::Object_ptr);
00135 static Matrix_ptr _unchecked_narrow(CORBA::Object_ptr);
00136
00137 static Matrix_ptr _narrow(CORBA::AbstractBase_ptr);
00138 static Matrix_ptr _unchecked_narrow(CORBA::AbstractBase_ptr);
00139
00140 static const char** _OB_staticIds();
00141 };
00142
00143
00144
00145
00146 class MatrixFactory : virtual public CORBA::Object
00147 {
00148 MatrixFactory(const MatrixFactory&);
00149 void operator=(const MatrixFactory&);
00150
00151 protected:
00152
00153 static const char* ids_[];
00154
00155 public:
00156
00157 MatrixFactory() { }
00158 virtual ~MatrixFactory() { }
00159
00160 typedef MatrixFactory_ptr _ptr_type;
00161 typedef MatrixFactory_var _var_type;
00162
00163 static inline MatrixFactory_ptr
00164 _duplicate(MatrixFactory_ptr p)
00165 {
00166 if(p)
00167 p -> _add_ref();
00168 return p;
00169 }
00170
00171 static inline MatrixFactory_ptr
00172 _nil()
00173 {
00174 return 0;
00175 }
00176
00177 static MatrixFactory_ptr _narrow(CORBA::Object_ptr);
00178 static MatrixFactory_ptr _unchecked_narrow(CORBA::Object_ptr);
00179
00180 static MatrixFactory_ptr _narrow(CORBA::AbstractBase_ptr);
00181 static MatrixFactory_ptr _unchecked_narrow(CORBA::AbstractBase_ptr);
00182
00183 static const char** _OB_staticIds();
00184
00185
00186
00187
00188 virtual Matrix_ptr translate2d(CORBA::Double x,
00189 CORBA::Double y) = 0;
00190
00191
00192
00193
00194 virtual Matrix_ptr scale2d(CORBA::Double sx,
00195 CORBA::Double sy) = 0;
00196
00197
00198
00199
00200 virtual Matrix_ptr rotate2d(CORBA::Double alpha) = 0;
00201
00202
00203
00204
00205 virtual Matrix_ptr rotate2dDeg(CORBA::Double alpha) = 0;
00206
00207
00208
00209
00210 virtual Matrix_ptr reflect2d(CORBA::Boolean doX,
00211 CORBA::Boolean doY) = 0;
00212
00213
00214
00215
00216 virtual Matrix_ptr shear2d(CORBA::Double sx,
00217 CORBA::Double sy) = 0;
00218
00219
00220
00221
00222 virtual Matrix_ptr translate3d(CORBA::Double x,
00223 CORBA::Double y,
00224 CORBA::Double z) = 0;
00225
00226
00227
00228
00229 virtual Matrix_ptr scale3d(CORBA::Double sx,
00230 CORBA::Double sy,
00231 CORBA::Double sz) = 0;
00232
00233
00234
00235
00236 virtual Matrix_ptr rotateX3d(CORBA::Double alpha) = 0;
00237
00238
00239
00240
00241 virtual Matrix_ptr rotateX3dDeg(CORBA::Double alpha) = 0;
00242
00243
00244
00245
00246 virtual Matrix_ptr rotateY3d(CORBA::Double alpha) = 0;
00247
00248
00249
00250
00251 virtual Matrix_ptr rotateY3dDeg(CORBA::Double alpha) = 0;
00252
00253
00254
00255
00256 virtual Matrix_ptr rotateZ3d(CORBA::Double alpha) = 0;
00257
00258
00259
00260
00261 virtual Matrix_ptr rotateZ3dDeg(CORBA::Double alpha) = 0;
00262
00263
00264
00265
00266 virtual Matrix_ptr reflect3d(CORBA::Boolean doX,
00267 CORBA::Boolean doY,
00268 CORBA::Boolean doZ) = 0;
00269
00270
00271
00272
00273 virtual Matrix_ptr projection(CORBA::Double f) = 0;
00274
00275
00276
00277
00278 virtual Matrix_ptr camera(CORBA::Double f) = 0;
00279
00280
00281
00282
00283 virtual Matrix_ptr lift2dTo3dXY() = 0;
00284 };
00285
00286 }
00287
00288
00289
00290
00291 namespace OBProxy_HxCorba
00292 {
00293
00294
00295
00296
00297 class Matrix : virtual public ::HxCorba::Matrix,
00298 virtual public OBCORBA::Object
00299 {
00300 Matrix(const Matrix&);
00301 void operator=(const Matrix&);
00302
00303 protected:
00304
00305 virtual OB::MarshalStubImpl_ptr _OB_createMarshalStubImpl();
00306
00307 public:
00308
00309 Matrix() { }
00310 virtual ~Matrix() { }
00311
00312 virtual const char** _OB_ids() const;
00313 };
00314
00315
00316
00317
00318 class MatrixFactory : virtual public ::HxCorba::MatrixFactory,
00319 virtual public OBCORBA::Object
00320 {
00321 MatrixFactory(const MatrixFactory&);
00322 void operator=(const MatrixFactory&);
00323
00324 protected:
00325
00326 virtual OB::MarshalStubImpl_ptr _OB_createMarshalStubImpl();
00327
00328 public:
00329
00330 MatrixFactory() { }
00331 virtual ~MatrixFactory() { }
00332
00333 virtual const char** _OB_ids() const;
00334
00335
00336
00337
00338 ::HxCorba::Matrix_ptr translate2d(CORBA::Double x,
00339 CORBA::Double y);
00340
00341
00342
00343
00344 ::HxCorba::Matrix_ptr scale2d(CORBA::Double sx,
00345 CORBA::Double sy);
00346
00347
00348
00349
00350 ::HxCorba::Matrix_ptr rotate2d(CORBA::Double alpha);
00351
00352
00353
00354
00355 ::HxCorba::Matrix_ptr rotate2dDeg(CORBA::Double alpha);
00356
00357
00358
00359
00360 ::HxCorba::Matrix_ptr reflect2d(CORBA::Boolean doX,
00361 CORBA::Boolean doY);
00362
00363
00364
00365
00366 ::HxCorba::Matrix_ptr shear2d(CORBA::Double sx,
00367 CORBA::Double sy);
00368
00369
00370
00371
00372 ::HxCorba::Matrix_ptr translate3d(CORBA::Double x,
00373 CORBA::Double y,
00374 CORBA::Double z);
00375
00376
00377
00378
00379 ::HxCorba::Matrix_ptr scale3d(CORBA::Double sx,
00380 CORBA::Double sy,
00381 CORBA::Double sz);
00382
00383
00384
00385
00386 ::HxCorba::Matrix_ptr rotateX3d(CORBA::Double alpha);
00387
00388
00389
00390
00391 ::HxCorba::Matrix_ptr rotateX3dDeg(CORBA::Double alpha);
00392
00393
00394
00395
00396 ::HxCorba::Matrix_ptr rotateY3d(CORBA::Double alpha);
00397
00398
00399
00400
00401 ::HxCorba::Matrix_ptr rotateY3dDeg(CORBA::Double alpha);
00402
00403
00404
00405
00406 ::HxCorba::Matrix_ptr rotateZ3d(CORBA::Double alpha);
00407
00408
00409
00410
00411 ::HxCorba::Matrix_ptr rotateZ3dDeg(CORBA::Double alpha);
00412
00413
00414
00415
00416 ::HxCorba::Matrix_ptr reflect3d(CORBA::Boolean doX,
00417 CORBA::Boolean doY,
00418 CORBA::Boolean doZ);
00419
00420
00421
00422
00423 ::HxCorba::Matrix_ptr projection(CORBA::Double f);
00424
00425
00426
00427
00428 ::HxCorba::Matrix_ptr camera(CORBA::Double f);
00429
00430
00431
00432
00433 ::HxCorba::Matrix_ptr lift2dTo3dXY();
00434 };
00435
00436 }
00437
00438
00439
00440
00441 namespace OBStubImpl_HxCorba
00442 {
00443
00444
00445
00446
00447 class Matrix : virtual public OB::StubImplBase
00448 {
00449 Matrix(const Matrix&);
00450 void operator=(const Matrix&);
00451
00452 protected:
00453
00454 Matrix() { }
00455
00456 public:
00457
00458 static inline Matrix_ptr
00459 _duplicate(Matrix_ptr p)
00460 {
00461 if(p)
00462 p -> _OB_incRef();
00463 return p;
00464 }
00465
00466 static inline Matrix_ptr
00467 _nil()
00468 {
00469 return 0;
00470 }
00471 };
00472
00473
00474
00475
00476 class MatrixFactory : virtual public OB::StubImplBase
00477 {
00478 MatrixFactory(const MatrixFactory&);
00479 void operator=(const MatrixFactory&);
00480
00481 protected:
00482
00483 MatrixFactory() { }
00484
00485 public:
00486
00487 static inline MatrixFactory_ptr
00488 _duplicate(MatrixFactory_ptr p)
00489 {
00490 if(p)
00491 p -> _OB_incRef();
00492 return p;
00493 }
00494
00495 static inline MatrixFactory_ptr
00496 _nil()
00497 {
00498 return 0;
00499 }
00500
00501
00502
00503
00504 virtual ::HxCorba::Matrix_ptr translate2d(CORBA::Double x,
00505 CORBA::Double y) = 0;
00506
00507
00508
00509
00510 virtual ::HxCorba::Matrix_ptr scale2d(CORBA::Double sx,
00511 CORBA::Double sy) = 0;
00512
00513
00514
00515
00516 virtual ::HxCorba::Matrix_ptr rotate2d(CORBA::Double alpha) = 0;
00517
00518
00519
00520
00521 virtual ::HxCorba::Matrix_ptr rotate2dDeg(CORBA::Double alpha) = 0;
00522
00523
00524
00525
00526 virtual ::HxCorba::Matrix_ptr reflect2d(CORBA::Boolean doX,
00527 CORBA::Boolean doY) = 0;
00528
00529
00530
00531
00532 virtual ::HxCorba::Matrix_ptr shear2d(CORBA::Double sx,
00533 CORBA::Double sy) = 0;
00534
00535
00536
00537
00538 virtual ::HxCorba::Matrix_ptr translate3d(CORBA::Double x,
00539 CORBA::Double y,
00540 CORBA::Double z) = 0;
00541
00542
00543
00544
00545 virtual ::HxCorba::Matrix_ptr scale3d(CORBA::Double sx,
00546 CORBA::Double sy,
00547 CORBA::Double sz) = 0;
00548
00549
00550
00551
00552 virtual ::HxCorba::Matrix_ptr rotateX3d(CORBA::Double alpha) = 0;
00553
00554
00555
00556
00557 virtual ::HxCorba::Matrix_ptr rotateX3dDeg(CORBA::Double alpha) = 0;
00558
00559
00560
00561
00562 virtual ::HxCorba::Matrix_ptr rotateY3d(CORBA::Double alpha) = 0;
00563
00564
00565
00566
00567 virtual ::HxCorba::Matrix_ptr rotateY3dDeg(CORBA::Double alpha) = 0;
00568
00569
00570
00571
00572 virtual ::HxCorba::Matrix_ptr rotateZ3d(CORBA::Double alpha) = 0;
00573
00574
00575
00576
00577 virtual ::HxCorba::Matrix_ptr rotateZ3dDeg(CORBA::Double alpha) = 0;
00578
00579
00580
00581
00582 virtual ::HxCorba::Matrix_ptr reflect3d(CORBA::Boolean doX,
00583 CORBA::Boolean doY,
00584 CORBA::Boolean doZ) = 0;
00585
00586
00587
00588
00589 virtual ::HxCorba::Matrix_ptr projection(CORBA::Double f) = 0;
00590
00591
00592
00593
00594 virtual ::HxCorba::Matrix_ptr camera(CORBA::Double f) = 0;
00595
00596
00597
00598
00599 virtual ::HxCorba::Matrix_ptr lift2dTo3dXY() = 0;
00600 };
00601
00602 }
00603
00604
00605
00606
00607 namespace OBMarshalStubImpl_HxCorba
00608 {
00609
00610
00611
00612
00613 class Matrix : virtual public OBStubImpl_HxCorba::Matrix,
00614 virtual public OB::MarshalStubImpl
00615 {
00616 Matrix(const Matrix&);
00617 void operator=(const Matrix&);
00618
00619 protected:
00620
00621 Matrix() { }
00622 friend class OBProxy_HxCorba::Matrix;
00623
00624 public:
00625 };
00626
00627
00628
00629
00630 class MatrixFactory : virtual public OBStubImpl_HxCorba::MatrixFactory,
00631 virtual public OB::MarshalStubImpl
00632 {
00633 MatrixFactory(const MatrixFactory&);
00634 void operator=(const MatrixFactory&);
00635
00636 protected:
00637
00638 MatrixFactory() { }
00639 friend class OBProxy_HxCorba::MatrixFactory;
00640
00641 public:
00642
00643
00644
00645
00646 virtual ::HxCorba::Matrix_ptr translate2d(CORBA::Double x,
00647 CORBA::Double y);
00648
00649
00650
00651
00652 virtual ::HxCorba::Matrix_ptr scale2d(CORBA::Double sx,
00653 CORBA::Double sy);
00654
00655
00656
00657
00658 virtual ::HxCorba::Matrix_ptr rotate2d(CORBA::Double alpha);
00659
00660
00661
00662
00663 virtual ::HxCorba::Matrix_ptr rotate2dDeg(CORBA::Double alpha);
00664
00665
00666
00667
00668 virtual ::HxCorba::Matrix_ptr reflect2d(CORBA::Boolean doX,
00669 CORBA::Boolean doY);
00670
00671
00672
00673
00674 virtual ::HxCorba::Matrix_ptr shear2d(CORBA::Double sx,
00675 CORBA::Double sy);
00676
00677
00678
00679
00680 virtual ::HxCorba::Matrix_ptr translate3d(CORBA::Double x,
00681 CORBA::Double y,
00682 CORBA::Double z);
00683
00684
00685
00686
00687 virtual ::HxCorba::Matrix_ptr scale3d(CORBA::Double sx,
00688 CORBA::Double sy,
00689 CORBA::Double sz);
00690
00691
00692
00693
00694 virtual ::HxCorba::Matrix_ptr rotateX3d(CORBA::Double alpha);
00695
00696
00697
00698
00699 virtual ::HxCorba::Matrix_ptr rotateX3dDeg(CORBA::Double alpha);
00700
00701
00702
00703
00704 virtual ::HxCorba::Matrix_ptr rotateY3d(CORBA::Double alpha);
00705
00706
00707
00708
00709 virtual ::HxCorba::Matrix_ptr rotateY3dDeg(CORBA::Double alpha);
00710
00711
00712
00713
00714 virtual ::HxCorba::Matrix_ptr rotateZ3d(CORBA::Double alpha);
00715
00716
00717
00718
00719 virtual ::HxCorba::Matrix_ptr rotateZ3dDeg(CORBA::Double alpha);
00720
00721
00722
00723
00724 virtual ::HxCorba::Matrix_ptr reflect3d(CORBA::Boolean doX,
00725 CORBA::Boolean doY,
00726 CORBA::Boolean doZ);
00727
00728
00729
00730
00731 virtual ::HxCorba::Matrix_ptr projection(CORBA::Double f);
00732
00733
00734
00735
00736 virtual ::HxCorba::Matrix_ptr camera(CORBA::Double f);
00737
00738
00739
00740
00741 virtual ::HxCorba::Matrix_ptr lift2dTo3dXY();
00742 };
00743
00744 }
00745
00746
00747
00748
00749 namespace OBV_HxCorba
00750 {
00751
00752 }
00753
00754
00755
00756
00757 namespace CORBA
00758 {
00759
00760 inline void
00761 release(::HxCorba::Matrix_ptr p)
00762 {
00763 if(p)
00764 p -> _remove_ref();
00765 }
00766
00767 inline Boolean
00768 is_nil(::HxCorba::Matrix_ptr p)
00769 {
00770 return p == 0;
00771 }
00772
00773 inline void
00774 release(OBStubImpl_HxCorba::Matrix_ptr p)
00775 {
00776 if(p)
00777 p -> _OB_decRef();
00778 }
00779
00780 inline Boolean
00781 is_nil(OBStubImpl_HxCorba::Matrix_ptr p)
00782 {
00783 return p == 0;
00784 }
00785
00786 }
00787
00788 void operator<<=(CORBA::Any&, HxCorba::Matrix_ptr*);
00789 void operator<<=(CORBA::Any&, HxCorba::Matrix_ptr);
00790 CORBA::Boolean operator>>=(const CORBA::Any&, HxCorba::Matrix_ptr&);
00791
00792 inline void
00793 operator<<=(CORBA::Any_var& any, HxCorba::Matrix_ptr* val)
00794 {
00795 any.inout() <<= val;
00796 }
00797
00798 inline void
00799 operator<<=(CORBA::Any_var& any, HxCorba::Matrix_ptr val)
00800 {
00801 any.inout() <<= val;
00802 }
00803
00804 inline CORBA::Boolean
00805 operator>>=(const CORBA::Any_var& any, HxCorba::Matrix_ptr& val)
00806 {
00807 return any.in() >>= val;
00808 }
00809
00810
00811
00812
00813 namespace CORBA
00814 {
00815
00816 inline void
00817 release(::HxCorba::MatrixFactory_ptr p)
00818 {
00819 if(p)
00820 p -> _remove_ref();
00821 }
00822
00823 inline Boolean
00824 is_nil(::HxCorba::MatrixFactory_ptr p)
00825 {
00826 return p == 0;
00827 }
00828
00829 inline void
00830 release(OBStubImpl_HxCorba::MatrixFactory_ptr p)
00831 {
00832 if(p)
00833 p -> _OB_decRef();
00834 }
00835
00836 inline Boolean
00837 is_nil(OBStubImpl_HxCorba::MatrixFactory_ptr p)
00838 {
00839 return p == 0;
00840 }
00841
00842 }
00843
00844 void operator<<=(CORBA::Any&, HxCorba::MatrixFactory_ptr*);
00845 void operator<<=(CORBA::Any&, HxCorba::MatrixFactory_ptr);
00846 CORBA::Boolean operator>>=(const CORBA::Any&, HxCorba::MatrixFactory_ptr&);
00847
00848 inline void
00849 operator<<=(CORBA::Any_var& any, HxCorba::MatrixFactory_ptr* val)
00850 {
00851 any.inout() <<= val;
00852 }
00853
00854 inline void
00855 operator<<=(CORBA::Any_var& any, HxCorba::MatrixFactory_ptr val)
00856 {
00857 any.inout() <<= val;
00858 }
00859
00860 inline CORBA::Boolean
00861 operator>>=(const CORBA::Any_var& any, HxCorba::MatrixFactory_ptr& val)
00862 {
00863 return any.in() >>= val;
00864 }
00865
00866 #endif