1 /*=========================================================================
4 Module: $RCSfile: bbtkBlackBoxInputConnector.cxx,v $
6 Date: $Date: 2008/04/24 10:11:28 $
7 Version: $Revision: 1.5 $
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(0), 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* c)
44 bbtkDebugMessage("Kernel",9,"BlackBoxInputConnector::SetConnection("<<c<<")"<<std::endl);
48 void BlackBoxInputConnector::UnsetConnection(Connection* c)
50 bbtkDebugMessage("Kernel",9,"BlackBoxInputConnector::UnsetConnection("
52 mConnection = 0; //.reset();
55 IOStatus BlackBoxInputConnector::BackwardUpdate()
57 bbtkDebugMessage("process",9,"==> BlackBoxInputConnector::BackwardUpdate()"
60 if (mConnection) //.lock())
62 IOStatus s = mConnection->BackwardUpdate();