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

HxUserOpsServant Class Reference

(Part of) the servant for the GlobalOps interface. More...

#include <HxUserOpsServant.h>

Inheritance diagram for HxUserOpsServant::

HxUserOpsGenSvt POA_HxCorba::UserOps HxGlobalOpsServant List of all members.

Public Methods

 HxUserOpsServant (HxServerBase *)
virtual ~HxUserOpsServant ()
HxCorba::MyMessageMyStringFunction2 () throw (CORBA::SystemException)
HxCorba::AapFeatures JmCalcAapFeatures (HxCorba::ImageRep_ptr aap, HxCorba::ImageRep_ptr aapSegmentation) throw (CORBA::SystemException)
HxCorba::SegmentQueryResultSeqHxTrecDemo (HxCorba::TrecFaceT faces, HxCorba::TrecYesNoT monologue, HxCorba::TrecYesNoT speech, HxCorba::TrecCameraT camera, HxCorba::ImageRep_ptr qimage) throw (CORBA::SystemException)
void HxInitTrack (HxCorba::ImageSeq_ptr seq, CORBA::Long startFrame, CORBA::Long x0, CORBA::Long y0, CORBA::Long x1, CORBA::Long y1) throw (CORBA::SystemException)
CORBA::Boolean HxDoTrack (CORBA::Long nextFrame, CORBA::Long_out x0, CORBA::Long_out y0, CORBA::Long_out x1, CORBA::Long_out y1, CORBA::Boolean_out occlusion) throw (CORBA::SystemException)

Detailed Description

(Part of) the servant for the GlobalOps interface.

The constituent parts of the servant are: HxUserOpsGenSvt, HxUserOpsServant, HxGlobalOpsGenSvt, and HxGlobalOpsServant.


Constructor & Destructor Documentation

HxUserOpsServant::HxUserOpsServant HxServerBase   s
 

00016     : HxUserOpsGenSvt(s)
00017 {
00018 }

HxUserOpsServant::~HxUserOpsServant   [virtual]
 

00021 {
00022 }


Member Function Documentation

HxCorba::MyMessage * HxUserOpsServant::MyStringFunction2   throw (CORBA::SystemException) [virtual]
 

Reimplemented from POA_HxCorba::UserOps.

00030 {
00031     HxString s = ::MyStringFunction2();
00032 
00033     HxCorba::MyMessage* result = new HxCorba::MyMessage();
00034     result->msg = CORBA::string_dup(s.c_str());
00035 
00036     return result;
00037 }

HxCorba::AapFeatures HxUserOpsServant::JmCalcAapFeatures HxCorba::ImageRep_ptr    aap,
HxCorba::ImageRep_ptr    aapSegmentation
throw (CORBA::SystemException)
 

00043 {
00044     HxImageRep hxAap = HxGetTiedObject<HxImageRepTiedSvt>(_server,aap);
00045     HxImageRep hxAapSeg = HxGetTiedObject<HxImageRepTiedSvt>(_server,aapSegmentation);
00046 
00047     HxCorba::Color col;
00048     col.x = 1.2;
00049     col.y = 3.4;
00050     col.z = 5.6;
00051     HxCorba::AapFeatures features;
00052     features.outdoor = false;
00053     features.col = col;
00054     features.percentage = 61.2;
00055     features.label = 12;
00056     return features;
00057 }

HxCorba::SegmentQueryResultSeq * HxUserOpsServant::HxTrecDemo HxCorba::TrecFaceT    faces,
HxCorba::TrecYesNoT    monologue,
HxCorba::TrecYesNoT    speech,
HxCorba::TrecCameraT    camera,
HxCorba::ImageRep_ptr    qimage
throw (CORBA::SystemException)
 

00075 {
00076     HxTrecFaceT _faces_arg = HxTrecFaceT_values[faces];
00077     HxTrecYesNoT _monologue_arg = HxTrecYesNoT_values[monologue];
00078     HxTrecYesNoT _speech_arg = HxTrecYesNoT_values[speech];
00079     HxTrecCameraT _camera_arg = HxTrecCameraT_values[camera];
00080     HxImageRep _qimage_arg = HxGetTiedObject<HxImageRepTiedSvt>(_server,qimage);
00081 
00082     HxTrecSegmentList segList = ::HxTrecDemo(_faces_arg, _monologue_arg, _speech_arg, _camera_arg, _qimage_arg);
00083 
00084     HxCorba::SegmentQueryResultSeq_var segseq = 
00085       new HxCorba::SegmentQueryResultSeq();
00086     segseq->length(segList.size());
00087 
00088     HxTrecSegmentList::const_iterator it = segList.begin();
00089     for (int i=0; it != segList.end() ; i++, it++) {
00090         HxCorba::VxSegment_ptr vp =
00091             HxRegisterTiedServant<VxSegmentTiedSvt>(_server, it->segment);
00092     segseq[i].videoName = CORBA::string_dup(it->videoName.c_str());
00093     segseq[i].segmentationName = CORBA::string_dup("blocks");
00094         segseq[i].segment = vp;
00095     segseq[i].time.start = it->segment.start();
00096     segseq[i].time.end = it->segment.end();
00097     }
00098 
00099     return segseq._retn();
00100 }

void HxUserOpsServant::HxInitTrack HxCorba::ImageSeq_ptr    seq,
CORBA::Long    startFrame,
CORBA::Long    x0,
CORBA::Long    y0,
CORBA::Long    x1,
CORBA::Long    y1
throw (CORBA::SystemException)
 

00113 {
00114   HxImageSeq _seq_arg = HxGetTiedObject<HxImageSeqTiedSvt>(_server, seq);
00115   ::HxInitTrack(_seq_arg, startFrame, x0, y0, x1, y1);
00116 }

CORBA::Boolean HxUserOpsServant::HxDoTrack CORBA::Long    nextFrame,
CORBA::Long_out    x0,
CORBA::Long_out    y0,
CORBA::Long_out    x1,
CORBA::Long_out    y1,
CORBA::Boolean_out    occlusion
throw (CORBA::SystemException)
 

00126 {
00127   int _x0_arg, _x1_arg, _y0_arg, _y1_arg;
00128   int _occ_arg;
00129 
00130   int result = ::HxDoTrack(nextFrame, _x0_arg, _y0_arg, _x1_arg, _y1_arg, 
00131                _occ_arg);
00132   x0 = _x0_arg;
00133   x1 = _x1_arg;
00134   y0 = _y0_arg;
00135   y1 = _y1_arg;
00136   occlusion = _occ_arg;
00137 
00138   return result;
00139 }


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