1 /*=========================================================================
4 Module: $RCSfile: bbtkBlackBoxInputConnector.cxx,v $
6 Date: $Date: 2008/04/18 12:59:15 $
7 Version: $Revision: 1.3 $
9 Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
10 l'Image). All rights reserved. See Doc/License.txt or
11 http://www.creatis.insa-lyon.fr/Public/bbtk/License.html for details.
13 This software is distributed WITHOUT ANY WARRANTY; without even
14 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
15 PURPOSE. See the above copyright notices for more information.
17 =========================================================================*/
21 * \brief Class bbtk::BlackBoxInputConnector :
23 #include "bbtkBlackBoxInputConnector.h"
24 #include "bbtkMessageManager.h"
25 #include "bbtkBlackBox.h"
29 BlackBoxInputConnector::BlackBoxInputConnector(BlackBox::Pointer b)
30 : mBox(b), mConnection(), mStatus(MODIFIED)
32 bbtkDebugMessage("Kernel",9,"BlackBoxInputConnector::BlackBoxInputConnector()"<<std::endl);
36 BlackBoxInputConnector::~BlackBoxInputConnector()
38 bbtkDebugMessageInc("Kernel",9,"BlackBoxInputConnector::~BlackBoxInputConnector()"<<std::endl);
39 bbtkDebugDecTab("Kernel",9);
42 void BlackBoxInputConnector::SetConnection(Connection::Pointer c)
44 bbtkDebugMessage("Kernel",9,"BlackBoxInputConnector::SetConnection("<<c<<")"<<std::endl);
48 void BlackBoxInputConnector::UnsetConnection(Connection::Pointer c)
50 bbtkDebugMessage("Kernel",9,"BlackBoxInputConnector::UnsetConnection("
55 IOStatus BlackBoxInputConnector::BackwardUpdate()
57 bbtkDebugMessageInc("Process",4,"BlackBoxInputConnector::BackwardUpdate()"
60 if (mConnection.lock())
62 IOStatus s = mConnection.lock()->BackwardUpdate();
70 bbtkDecTab("Process",4);