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

HxHistogramTiedSvt Class Reference

Tied object for HxHistogram. More...

#include <HxHistogramTiedSvt.h>

Inheritance diagram for HxHistogramTiedSvt::

HxHistogram List of all members.

Public Types

typedef POA_HxCorba::Histogram_tie<
HxHistogramTiedSvt > 
TieT
typedef HxHistogram HxT
typedef HxCorba::Histogram CorbaT
typedef HxCorba::HistogramList SeqT

Public Methods

 HxHistogramTiedSvt (const HxHistogram &obj)
virtual ~HxHistogramTiedSvt ()
void destroy ()
CORBA::Double get1 (CORBA::Long bin1)
CORBA::Double get2 (CORBA::Long bin1, CORBA::Long bin2)
CORBA::Double get3 (CORBA::Long bin1, CORBA::Long bin2, CORBA::Long bin3)
CORBA::Double maxValIndex (CORBA::Long_out index)
HxCorba::BinDataSequencegetDataDouble ()
void render3d (HxCorba::RgbBuffer_ptr buf, CORBA::Long dataWidth, CORBA::Long dataHeight, CORBA::Double elevation, CORBA::Double alpha, CORBA::Double threshold)
HxCorba::Histogram_ptr smooth (CORBA::Double sigma)
HxCorba::HistogramModeSeqmodes ()
HxCorba::Histogram_ptr normalize (CORBA::Double weight)
CORBA::Double intersection (HxCorba::Histogram_ptr h)
CORBA::Double chiSquare (HxCorba::Histogram_ptr h)
CORBA::Double chiSquareNorm (HxCorba::Histogram_ptr h)
HxCorba::Histogram_ptr threshold (CORBA::Double valThreshold)
HxCorba::Histogram_ptr reduceRange (CORBA::Long binMin1, CORBA::Long binMax1, CORBA::Long binMin2, CORBA::Long binMax2, CORBA::Long binMin3, CORBA::Long binMax3)
HxCorba::Histogram_ptr reduceRangeVal (CORBA::Double binValMin1, CORBA::Double binValMax1, CORBA::Double binValMin2, CORBA::Double binValMax2, CORBA::Double binValMin3, CORBA::Double binValMax3)
HxCorba::Histogram_ptr to1D (CORBA::Long dim)
void put ()

Detailed Description

Tied object for HxHistogram.


Member Typedef Documentation

typedef POA_HxCorba::Histogram_tie<HxHistogramTiedSvt> HxHistogramTiedSvt::TieT
 

typedef HxHistogram HxHistogramTiedSvt::HxT
 

typedef HxCorba::Histogram HxHistogramTiedSvt::CorbaT
 

typedef HxCorba::HistogramList HxHistogramTiedSvt::SeqT
 


Constructor & Destructor Documentation

HxHistogramTiedSvt::HxHistogramTiedSvt const HxHistogram   obj
 

00017     : HxHistogram(obj)
00018 {
00019 }

HxHistogramTiedSvt::~HxHistogramTiedSvt   [virtual]
 

00022 {
00023     //std::cout << "~HxHistogramTiedSvt" << std::endl;
00024 }


Member Function Documentation

void HxHistogramTiedSvt::destroy  
 

00028 {
00029     PortableServer::ObjectId_var myOid = 
00030         HxServer::instance()->getCurrentObjectId();
00031 
00032     HxServer::instance()->unregisterServant(myOid);
00033 
00034     // Who deletes the servant?
00035     // We can not delete the servant here, because this request
00036     // is still in progress. The servant has to be deleted after all its
00037     // request have been processed and after if has been removed from the POA.
00038     // If we want the ORB to delete the servant (the best option), the 
00039     // servant must inherit from PortableServer::RefCountServantBase 
00040     // (and the servant for HxHistogram does).
00041 }

CORBA::Double HxHistogramTiedSvt::get1 CORBA::Long    bin1
 

00045 {
00046     return HxHistogram::get(bin1);
00047 }

CORBA::Double HxHistogramTiedSvt::get2 CORBA::Long    bin1,
CORBA::Long    bin2
 

00051 {
00052     return HxHistogram::get(bin1, bin2);
00053 }

CORBA::Double HxHistogramTiedSvt::get3 CORBA::Long    bin1,
CORBA::Long    bin2,
CORBA::Long    bin3
 

00059 {
00060     return HxHistogram::get(bin1, bin2, bin3);
00061 }

CORBA::Double HxHistogramTiedSvt::maxValIndex CORBA::Long_out    index
 

00065 {
00066     int i;
00067     double v = HxHistogram::maxVal(&i);
00068     index = i;
00069     return v;
00070 }

HxCorba::BinDataSequence * HxHistogramTiedSvt::getDataDouble  
 

Reimplemented from HxHistogram.

00074 {
00075     int nBins = 1;
00076     for(int i=1; i<=HxHistogram::dimensionality(); i++)
00077         nBins *= HxHistogram::dimensionSize(i); 
00078 
00079     CORBA::Double* data = new CORBA::Double[nBins];
00080     HxHistogram::getDataDouble((double*)data);
00081 
00082     HxCorba::BinDataSequence* seq = 
00083         new HxCorba::BinDataSequence(nBins, nBins, data, true);
00084 
00085     return seq;
00086 }

void HxHistogramTiedSvt::render3d HxCorba::RgbBuffer_ptr    buf,
CORBA::Long    dataWidth,
CORBA::Long    dataHeight,
CORBA::Double    elevation,
CORBA::Double    alpha,
CORBA::Double    threshold
 

00093 {
00094     HxRgbBuffer tmpBuf(buf, dataWidth * dataHeight);
00095     HxHistogram::render3d(tmpBuf.getBuffer(), dataWidth, dataHeight, 
00096         elevation, alpha, threshold);
00097 }

HxCorba::Histogram_ptr HxHistogramTiedSvt::smooth CORBA::Double    sigma
 

00126 {
00127     HxHistogram hist = HxHistogram::smooth(sigma);
00128     return HxRegisterTiedServant<HxHistogramTiedSvt>(hist);
00129 }

HxCorba::HistogramModeSeq * HxHistogramTiedSvt::modes  
 

Reimplemented from HxHistogram.

00140 {
00141     std::list<HxVec2Double> lst = HxHistogram::modes();
00142 
00143     HxCorba::HistogramModeSeq* seq = new HxCorba::HistogramModeSeq();
00144     seq->length(lst.size());
00145 
00146     std::list<HxVec2Double>::const_iterator it = lst.begin();
00147     for(int i=0; it != lst.end(); i++, it++) {
00148         (*seq)[i].x = it->x();
00149         (*seq)[i].y = it->y();
00150     }
00151 
00152     return seq;
00153 }

HxCorba::Histogram_ptr HxHistogramTiedSvt::normalize CORBA::Double    weight
 

00133 {
00134     HxHistogram hist = HxHistogram::normalize(weight);
00135     return HxRegisterTiedServant<HxHistogramTiedSvt>(hist);
00136 }

CORBA::Double HxHistogramTiedSvt::intersection HxCorba::Histogram_ptr    h
 

00102 {
00103     HxHistogram argHist = HxGetTiedObject<HxHistogramTiedSvt>(h);
00104 
00105     return HxHistogram::intersection(argHist);
00106 }

CORBA::Double HxHistogramTiedSvt::chiSquare HxCorba::Histogram_ptr    h
 

00110 {
00111     HxHistogram argHist = HxGetTiedObject<HxHistogramTiedSvt>(h);
00112 
00113     return HxHistogram::chiSquare(argHist);
00114 }

CORBA::Double HxHistogramTiedSvt::chiSquareNorm HxCorba::Histogram_ptr    h
 

00118 {
00119     HxHistogram argHist = HxGetTiedObject<HxHistogramTiedSvt>(h);
00120 
00121     return HxHistogram::chiSquareNorm(argHist);
00122 }

HxCorba::Histogram_ptr HxHistogramTiedSvt::threshold CORBA::Double    valThreshold
 

00157 {
00158     HxHistogram hist = HxHistogram::threshold(valThreshold);
00159     return HxRegisterTiedServant<HxHistogramTiedSvt>(hist);
00160 }

HxCorba::Histogram_ptr HxHistogramTiedSvt::reduceRange CORBA::Long    bMin1,
CORBA::Long    bMax1,
CORBA::Long    bMin2,
CORBA::Long    bMax2,
CORBA::Long    bMin3,
CORBA::Long    bMax3
 

00166 {
00167     HxHistogram hist = HxHistogram::reduceRange(
00168         bMin1,bMax1,bMin2,bMax2,bMin3,bMax3);
00169     return HxRegisterTiedServant<HxHistogramTiedSvt>(hist);
00170 }

HxCorba::Histogram_ptr HxHistogramTiedSvt::reduceRangeVal CORBA::Double    vMin1,
CORBA::Double    vMax1,
CORBA::Double    vMin2,
CORBA::Double    vMax2,
CORBA::Double    vMin3,
CORBA::Double    vMax3
 

00176 {
00177     HxHistogram hist = HxHistogram::reduceRangeVal(
00178         vMin1,vMax1,vMin2,vMax2,vMin3,vMax3);
00179     return HxRegisterTiedServant<HxHistogramTiedSvt>(hist);
00180 }

HxCorba::Histogram_ptr HxHistogramTiedSvt::to1D CORBA::Long    dim
 

00184 {
00185     HxHistogram hist = HxHistogram::to1D(dim);
00186     return HxRegisterTiedServant<HxHistogramTiedSvt>(hist);
00187 }

void HxHistogramTiedSvt::put  
 

Reimplemented from HxHistogram.

00191 {
00192     HxHistogram::put(STD_COUT);
00193 }


The documentation for this class was generated from the following files:
Generated on Mon Jan 27 15:20:55 2003 for CorbaReference by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001