Beispiel #1
0
void ossimImageChain::connectInputEvent(ossimConnectionEvent& event)
{
   if(theImageChainList.size())
   {
      if(event.getObject()==this)
      {
         if(theImageChainList[theImageChainList.size()-1].valid())
         {
            for(ossim_uint32 i = 0; i < event.getNumberOfNewObjects(); ++i)
            {
               ossimConnectableObject* obj = event.getNewObject(i);
               theImageChainList[theImageChainList.size()-1]->connectMyInputTo(findInputIndex(obj),
                                                                               obj,
                                                                               false);
            }
         }
      }
      else if(event.getObject() == theImageChainList[0].get())
      {
         if(!theLoadStateFlag)
         {
//            theInputObjectList = theImageChainList[0]->getInputList();
         }
      }
      initialize();
   }
}
void ossimImageSourceHistogramFilter::connectInputEvent(ossimConnectionEvent& event)
{
   theInputConnection = PTR_CAST(ossimImageSource, getInput(0));
   if(PTR_CAST(ossimHistogramSource, event.getNewObject()))
   {
      // only initialize if it's a new object
      initialize();
   }
}