Example #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();
   }
}
Example #2
0
 //virtual void disconnectOutputEvent(ossimConnectionEvent& event);
 virtual void connectInputEvent(ossimConnectionEvent& event)
 {
    if(event.getObject() == theOwner->theImageChain.get())
    {
       ossimKeywordlist kwl;
       ossimImageSource* input = dynamic_cast<ossimImageSource*>(theOwner->theImageChain->getInput(0));
       if(input)
       {
          theOwner->theImageGeometry = input->getImageGeometry();
          theOwner->theImageChain->initialize();
       }
    }
 }
Example #3
0
void ossimImageChain::disconnectInputEvent(ossimConnectionEvent& event)
{
   if(theImageChainList.size())
   {
      if(event.getObject()==this)
      {
         if(theImageChainList[theImageChainList.size()-1].valid())
         {
            for(ossim_uint32 i = 0; i < event.getNumberOfOldObjects(); ++i)
            {
               theImageChainList[theImageChainList.size()-1]->disconnectMyInput(event.getOldObject(i));
            }
         }
      }
   }
}