Program: bbtk
Module: $RCSfile: bbtkAtomicBlackBox.h,v $
Language: C++
- Date: $Date: 2008/04/08 06:59:29 $
- Version: $Revision: 1.3 $
+ Date: $Date: 2008/04/18 12:59:14 $
+ Version: $Revision: 1.4 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
{
//==================================================================
public:
+ //==================================================================
+ bbtk::BlackBoxDescriptor::Pointer bbGetDescriptor() const
+ {
+ return bbmDescriptorPointer;
+ }
//==================================================================
/// Gets the output Data of a given label
Data bbGetOutput( const std::string &label );
//==================================================================
//==================================================================
- /// Destructor
- virtual ~AtomicBlackBox();
+ std::string GetObjectInfo() const;
+ size_t GetObjectSize() const;
+ size_t GetObjectRecursiveSize() const;
//==================================================================
//==================================================================
AtomicBlackBox(AtomicBlackBox& from, const std::string &name,
bool alloc = true);
//==================================================================
+ //==================================================================
+ /// Destructor
+ virtual ~AtomicBlackBox();
+ //==================================================================
+
+ //==================================================================
+ protected:
+ virtual void bbLockDescriptor() = 0;
+ // private:
+ // virtual void bbReleaseDescriptor();
+ //==================================================================
public:
//==================================================================
/// - updates its inputs by calling bbUpdateInputs (which recursively calls bbBackwardUpdate on upstream boxes)
/// - calls bbProcess which here simply calls the user callback bbUserProcess which does the actual processing.
/// bbProcess is overloaded in WxBlackBox to handle widget creation and show
- virtual IOStatus bbBackwardUpdate(Connection* caller);
+ virtual IOStatus bbBackwardUpdate(Connection::Pointer caller);
//==================================================================
//==================================================================
AtomicBlackBox() : BlackBox("") {}
//==================================================================
+ protected:
+ //==================================================================
+ // The pointer on the descriptor
+ bbtk::BlackBoxDescriptor::Pointer bbmDescriptorPointer;
+ //==================================================================
};
// Class AtomicBlackBox