00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef ___HxCorbaHistogram_skel_h__
00016 #define ___HxCorbaHistogram_skel_h__
00017
00018 #include <HxCorbaHistogram.h>
00019
00020 #include <HxCorbaImageRep_skel.h>
00021
00022 #ifndef OB_INTEGER_VERSION
00023 # error No ORBacus version defined! Is <OB/CORBA.h> included?
00024 #endif
00025
00026 #ifndef OB_NO_VERSION_CHECK
00027 # if (OB_INTEGER_VERSION != 4000500L)
00028 # error ORBacus version mismatch!
00029 # endif
00030 #endif
00031
00032
00033
00034
00035 namespace POA_HxCorba
00036 {
00037
00038
00039
00040
00041 class HistogramData : virtual public PortableServer::ServantBase
00042 {
00043 HistogramData(const HistogramData&);
00044 void operator=(const HistogramData&);
00045
00046 protected:
00047
00048
00049
00050
00051 void _OB_op_dimensionality(OB::Upcall_ptr);
00052
00053
00054
00055
00056 void _OB_op_dimensionSize(OB::Upcall_ptr);
00057
00058
00059
00060
00061 void _OB_op_nrOfBins(OB::Upcall_ptr);
00062
00063
00064
00065
00066 void _OB_op_lowBin(OB::Upcall_ptr);
00067
00068
00069
00070
00071 void _OB_op_highBin(OB::Upcall_ptr);
00072
00073
00074
00075
00076 void _OB_op_binWidth(OB::Upcall_ptr);
00077
00078
00079
00080
00081 void _OB_op_binToValue(OB::Upcall_ptr);
00082
00083
00084
00085
00086 void _OB_op_valueToBin(OB::Upcall_ptr);
00087
00088
00089
00090
00091 void _OB_op_get1(OB::Upcall_ptr);
00092
00093
00094
00095
00096 void _OB_op_get2(OB::Upcall_ptr);
00097
00098
00099
00100
00101 void _OB_op_get3(OB::Upcall_ptr);
00102
00103
00104
00105
00106 void _OB_op_sum(OB::Upcall_ptr);
00107
00108
00109
00110
00111 void _OB_op_minVal(OB::Upcall_ptr);
00112
00113
00114
00115
00116 void _OB_op_maxVal(OB::Upcall_ptr);
00117
00118
00119
00120
00121 void _OB_op_maxValIndex(OB::Upcall_ptr);
00122
00123
00124
00125
00126 void _OB_op_getDataDouble(OB::Upcall_ptr);
00127
00128 public:
00129
00130 HistogramData() { }
00131
00132 virtual CORBA::Boolean _is_a(const char*)
00133 throw(CORBA::SystemException);
00134
00135 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00136 PortableServer::POA_ptr);
00137
00138 HxCorba::HistogramData_ptr _this();
00139
00140 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00141 const PortableServer::ObjectId&);
00142 virtual void _OB_dispatch(OB::Upcall_ptr);
00143
00144
00145
00146
00147 virtual CORBA::Long dimensionality()
00148 throw(CORBA::SystemException) = 0;
00149
00150
00151
00152
00153 virtual CORBA::Long dimensionSize(CORBA::Long dim)
00154 throw(CORBA::SystemException) = 0;
00155
00156
00157
00158
00159 virtual CORBA::Long nrOfBins()
00160 throw(CORBA::SystemException) = 0;
00161
00162
00163
00164
00165 virtual CORBA::Double lowBin(CORBA::Long dim)
00166 throw(CORBA::SystemException) = 0;
00167
00168
00169
00170
00171 virtual CORBA::Double highBin(CORBA::Long dim)
00172 throw(CORBA::SystemException) = 0;
00173
00174
00175
00176
00177 virtual CORBA::Double binWidth(CORBA::Long dim)
00178 throw(CORBA::SystemException) = 0;
00179
00180
00181
00182
00183 virtual CORBA::Double binToValue(CORBA::Long bin,
00184 CORBA::Long dim)
00185 throw(CORBA::SystemException) = 0;
00186
00187
00188
00189
00190 virtual CORBA::Long valueToBin(CORBA::Double value,
00191 CORBA::Long dim)
00192 throw(CORBA::SystemException) = 0;
00193
00194
00195
00196
00197 virtual CORBA::Double get1(CORBA::Long bin1)
00198 throw(CORBA::SystemException) = 0;
00199
00200
00201
00202
00203 virtual CORBA::Double get2(CORBA::Long bin1,
00204 CORBA::Long bin2)
00205 throw(CORBA::SystemException) = 0;
00206
00207
00208
00209
00210 virtual CORBA::Double get3(CORBA::Long bin1,
00211 CORBA::Long bin2,
00212 CORBA::Long bin3)
00213 throw(CORBA::SystemException) = 0;
00214
00215
00216
00217
00218 virtual CORBA::Double sum()
00219 throw(CORBA::SystemException) = 0;
00220
00221
00222
00223
00224 virtual CORBA::Double minVal()
00225 throw(CORBA::SystemException) = 0;
00226
00227
00228
00229
00230 virtual CORBA::Double maxVal()
00231 throw(CORBA::SystemException) = 0;
00232
00233
00234
00235
00236 virtual CORBA::Double maxValIndex(CORBA::Long_out index)
00237 throw(CORBA::SystemException) = 0;
00238
00239
00240
00241
00242 virtual HxCorba::BinDataSequence* getDataDouble()
00243 throw(CORBA::SystemException) = 0;
00244 };
00245
00246
00247
00248
00249 class Histogram : virtual public POA_HxCorba::HistogramData
00250 {
00251 Histogram(const Histogram&);
00252 void operator=(const Histogram&);
00253
00254 protected:
00255
00256
00257
00258
00259 void _OB_op_smooth(OB::Upcall_ptr);
00260
00261
00262
00263
00264 void _OB_op_modes(OB::Upcall_ptr);
00265
00266
00267
00268
00269 void _OB_op_normalize(OB::Upcall_ptr);
00270
00271
00272
00273
00274 void _OB_op_intersection(OB::Upcall_ptr);
00275
00276
00277
00278
00279 void _OB_op_chiSquare(OB::Upcall_ptr);
00280
00281
00282
00283
00284 void _OB_op_chiSquareNorm(OB::Upcall_ptr);
00285
00286
00287
00288
00289 void _OB_op_threshold(OB::Upcall_ptr);
00290
00291
00292
00293
00294 void _OB_op_countBins(OB::Upcall_ptr);
00295
00296
00297
00298
00299 void _OB_op_reduceRange(OB::Upcall_ptr);
00300
00301
00302
00303
00304 void _OB_op_reduceRangeVal(OB::Upcall_ptr);
00305
00306
00307
00308
00309 void _OB_op_to1D(OB::Upcall_ptr);
00310
00311
00312
00313
00314 void _OB_op_render3d(OB::Upcall_ptr);
00315
00316
00317
00318
00319 void _OB_op_destroy(OB::Upcall_ptr);
00320
00321 public:
00322
00323 Histogram() { }
00324
00325 virtual CORBA::Boolean _is_a(const char*)
00326 throw(CORBA::SystemException);
00327
00328 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00329 PortableServer::POA_ptr);
00330
00331 HxCorba::Histogram_ptr _this();
00332
00333 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00334 const PortableServer::ObjectId&);
00335 virtual void _OB_dispatch(OB::Upcall_ptr);
00336
00337
00338
00339
00340 virtual HxCorba::Histogram_ptr smooth(CORBA::Double sigma)
00341 throw(CORBA::SystemException) = 0;
00342
00343
00344
00345
00346 virtual HxCorba::HistogramModeSeq* modes()
00347 throw(CORBA::SystemException) = 0;
00348
00349
00350
00351
00352 virtual HxCorba::Histogram_ptr normalize(CORBA::Double weight)
00353 throw(CORBA::SystemException) = 0;
00354
00355
00356
00357
00358 virtual CORBA::Double intersection(HxCorba::Histogram_ptr h)
00359 throw(CORBA::SystemException) = 0;
00360
00361
00362
00363
00364 virtual CORBA::Double chiSquare(HxCorba::Histogram_ptr h)
00365 throw(CORBA::SystemException) = 0;
00366
00367
00368
00369
00370 virtual CORBA::Double chiSquareNorm(HxCorba::Histogram_ptr h)
00371 throw(CORBA::SystemException) = 0;
00372
00373
00374
00375
00376 virtual HxCorba::Histogram_ptr threshold(CORBA::Double valThreshold)
00377 throw(CORBA::SystemException) = 0;
00378
00379
00380
00381
00382 virtual CORBA::Long countBins(CORBA::Double valThreshold)
00383 throw(CORBA::SystemException) = 0;
00384
00385
00386
00387
00388 virtual HxCorba::Histogram_ptr reduceRange(CORBA::Long binMin1,
00389 CORBA::Long binMax1,
00390 CORBA::Long binMin2,
00391 CORBA::Long binMax2,
00392 CORBA::Long binMin3,
00393 CORBA::Long binMax3)
00394 throw(CORBA::SystemException) = 0;
00395
00396
00397
00398
00399 virtual HxCorba::Histogram_ptr reduceRangeVal(CORBA::Double binValMin1,
00400 CORBA::Double binValMax1,
00401 CORBA::Double binValMin2,
00402 CORBA::Double binValMax2,
00403 CORBA::Double binValMin3,
00404 CORBA::Double binValMax3)
00405 throw(CORBA::SystemException) = 0;
00406
00407
00408
00409
00410 virtual HxCorba::Histogram_ptr to1D(CORBA::Long dim)
00411 throw(CORBA::SystemException) = 0;
00412
00413
00414
00415
00416 virtual void render3d(HxCorba::RgbBuffer_ptr buf,
00417 CORBA::Long dataWidth,
00418 CORBA::Long dataHeight,
00419 CORBA::Double elevation,
00420 CORBA::Double alpha,
00421 CORBA::Double threshold)
00422 throw(CORBA::SystemException) = 0;
00423
00424
00425
00426
00427 virtual void destroy()
00428 throw(CORBA::SystemException) = 0;
00429 };
00430
00431
00432
00433
00434 class HistogramFactory : virtual public PortableServer::ServantBase
00435 {
00436 HistogramFactory(const HistogramFactory&);
00437 void operator=(const HistogramFactory&);
00438
00439 protected:
00440
00441
00442
00443
00444 void _OB_op_makeHistogramFromFile(OB::Upcall_ptr);
00445
00446 public:
00447
00448 HistogramFactory() { }
00449
00450 virtual CORBA::Boolean _is_a(const char*)
00451 throw(CORBA::SystemException);
00452
00453 virtual CORBA::RepositoryId _primary_interface(const PortableServer::ObjectId&,
00454 PortableServer::POA_ptr);
00455
00456 HxCorba::HistogramFactory_ptr _this();
00457
00458 virtual OB::DirectStubImpl_ptr _OB_createDirectStubImpl(PortableServer::POA_ptr,
00459 const PortableServer::ObjectId&);
00460 virtual void _OB_dispatch(OB::Upcall_ptr);
00461
00462
00463
00464
00465 virtual HxCorba::Histogram_ptr makeHistogramFromFile(const char* filename)
00466 throw(CORBA::SystemException) = 0;
00467 };
00468
00469 }
00470
00471
00472
00473
00474 namespace OBDirectStubImpl_HxCorba
00475 {
00476
00477
00478
00479
00480 class HistogramData : virtual public OBStubImpl_HxCorba::HistogramData,
00481 virtual public OB::DirectStubImpl
00482 {
00483 HistogramData(const HistogramData&);
00484 void operator=(const HistogramData&);
00485
00486 protected:
00487
00488 #ifdef HAVE_VCPLUSPLUS_BUGS
00489
00490 HistogramData() { }
00491
00492 #endif
00493
00494 HistogramData(PortableServer::POA_ptr,
00495 const PortableServer::ObjectId&,
00496 PortableServer::ServantBase*);
00497
00498 friend class POA_HxCorba::HistogramData;
00499
00500 public:
00501
00502
00503
00504
00505 virtual CORBA::Long dimensionality();
00506
00507
00508
00509
00510 virtual CORBA::Long dimensionSize(CORBA::Long dim);
00511
00512
00513
00514
00515 virtual CORBA::Long nrOfBins();
00516
00517
00518
00519
00520 virtual CORBA::Double lowBin(CORBA::Long dim);
00521
00522
00523
00524
00525 virtual CORBA::Double highBin(CORBA::Long dim);
00526
00527
00528
00529
00530 virtual CORBA::Double binWidth(CORBA::Long dim);
00531
00532
00533
00534
00535 virtual CORBA::Double binToValue(CORBA::Long bin,
00536 CORBA::Long dim);
00537
00538
00539
00540
00541 virtual CORBA::Long valueToBin(CORBA::Double value,
00542 CORBA::Long dim);
00543
00544
00545
00546
00547 virtual CORBA::Double get1(CORBA::Long bin1);
00548
00549
00550
00551
00552 virtual CORBA::Double get2(CORBA::Long bin1,
00553 CORBA::Long bin2);
00554
00555
00556
00557
00558 virtual CORBA::Double get3(CORBA::Long bin1,
00559 CORBA::Long bin2,
00560 CORBA::Long bin3);
00561
00562
00563
00564
00565 virtual CORBA::Double sum();
00566
00567
00568
00569
00570 virtual CORBA::Double minVal();
00571
00572
00573
00574
00575 virtual CORBA::Double maxVal();
00576
00577
00578
00579
00580 virtual CORBA::Double maxValIndex(CORBA::Long_out index);
00581
00582
00583
00584
00585 virtual HxCorba::BinDataSequence* getDataDouble();
00586 };
00587
00588
00589
00590
00591 class Histogram : virtual public OBStubImpl_HxCorba::Histogram,
00592 virtual public OBDirectStubImpl_HxCorba::HistogramData
00593 {
00594 Histogram(const Histogram&);
00595 void operator=(const Histogram&);
00596
00597 protected:
00598
00599 #ifdef HAVE_VCPLUSPLUS_BUGS
00600
00601 Histogram() { }
00602
00603 #endif
00604
00605 Histogram(PortableServer::POA_ptr,
00606 const PortableServer::ObjectId&,
00607 PortableServer::ServantBase*);
00608
00609 friend class POA_HxCorba::Histogram;
00610
00611 public:
00612
00613
00614
00615
00616 virtual HxCorba::Histogram_ptr smooth(CORBA::Double sigma);
00617
00618
00619
00620
00621 virtual HxCorba::HistogramModeSeq* modes();
00622
00623
00624
00625
00626 virtual HxCorba::Histogram_ptr normalize(CORBA::Double weight);
00627
00628
00629
00630
00631 virtual CORBA::Double intersection(HxCorba::Histogram_ptr h);
00632
00633
00634
00635
00636 virtual CORBA::Double chiSquare(HxCorba::Histogram_ptr h);
00637
00638
00639
00640
00641 virtual CORBA::Double chiSquareNorm(HxCorba::Histogram_ptr h);
00642
00643
00644
00645
00646 virtual HxCorba::Histogram_ptr threshold(CORBA::Double valThreshold);
00647
00648
00649
00650
00651 virtual CORBA::Long countBins(CORBA::Double valThreshold);
00652
00653
00654
00655
00656 virtual HxCorba::Histogram_ptr reduceRange(CORBA::Long binMin1,
00657 CORBA::Long binMax1,
00658 CORBA::Long binMin2,
00659 CORBA::Long binMax2,
00660 CORBA::Long binMin3,
00661 CORBA::Long binMax3);
00662
00663
00664
00665
00666 virtual HxCorba::Histogram_ptr reduceRangeVal(CORBA::Double binValMin1,
00667 CORBA::Double binValMax1,
00668 CORBA::Double binValMin2,
00669 CORBA::Double binValMax2,
00670 CORBA::Double binValMin3,
00671 CORBA::Double binValMax3);
00672
00673
00674
00675
00676 virtual HxCorba::Histogram_ptr to1D(CORBA::Long dim);
00677
00678
00679
00680
00681 virtual void render3d(HxCorba::RgbBuffer_ptr buf,
00682 CORBA::Long dataWidth,
00683 CORBA::Long dataHeight,
00684 CORBA::Double elevation,
00685 CORBA::Double alpha,
00686 CORBA::Double threshold);
00687
00688
00689
00690
00691 virtual void destroy();
00692 };
00693
00694
00695
00696
00697 class HistogramFactory : virtual public OBStubImpl_HxCorba::HistogramFactory,
00698 virtual public OB::DirectStubImpl
00699 {
00700 HistogramFactory(const HistogramFactory&);
00701 void operator=(const HistogramFactory&);
00702
00703 protected:
00704
00705 #ifdef HAVE_VCPLUSPLUS_BUGS
00706
00707 HistogramFactory() { }
00708
00709 #endif
00710
00711 HistogramFactory(PortableServer::POA_ptr,
00712 const PortableServer::ObjectId&,
00713 PortableServer::ServantBase*);
00714
00715 friend class POA_HxCorba::HistogramFactory;
00716
00717 public:
00718
00719
00720
00721
00722 virtual HxCorba::Histogram_ptr makeHistogramFromFile(const char* filename);
00723 };
00724
00725 }
00726
00727 #endif