Program: bbtk
Module: $RCSfile: bbtkSystem.h,v $
Language: C++
- Date: $Date: 2008/11/20 17:41:41 $
- Version: $Revision: 1.11 $
+ Date: $Date: 2009/01/08 10:18:29 $
+ Version: $Revision: 1.12 $
=========================================================================*/
/* ---------------------------------------------------------------------
// produce errors if applied using infix notation
#pragma warning ( disable : 4284 )
// 'type' : forcing value to bool 'true' or 'false' (performance warning)
+// Has revealed a real error !
+// bbSignalOutputModification(bool) called rather than
+// bbSignalOutputModification(const std::string&, bool = true)
+// when invoking bbSignalOutputModification("Out")
+// KEEP IT !
// //#pragma warning ( disable : 4800 )
+// To avoid warning :
+// 'PACKAGE_NAMEGetPackage' has C-linkage specified, but returns UDT 'boost::shared_ptr<T>' which is incompatible with C
+#pragma warning ( disable : 4190 )
#endif //_MSC_VER
connect color.BoxChange refresh.In1
connect opacity.BoxChange refresh.In2
- new "vtkImageData*Relay" image
+ new vtkImageDataPointerRelay image
connect image.Out color.In
connect image.Out opacity.In
connect image.Out renderer.In
Program: bbtk
Module: $RCSfile: bbstdRelay.h,v $
Language: C++
- Date: $Date: 2008/12/12 08:55:21 $
- Version: $Revision: 1.8 $
+ Date: $Date: 2009/01/08 10:18:34 $
+ Version: $Revision: 1.9 $
=========================================================================*/
/* ---------------------------------------------------------------------
}
// namespace bbstd
+//=======================================================================
+// MACRO
+
+#define BBTK_DEFINE_RELAY_BLACK_BOX(TYPE,PACKAGE,NAME) \
+class bb ## PACKAGE ## _EXPORT NAME : public bbtk::AtomicBlackBox { \
+ BBTK_BLACK_BOX_INTERFACE(NAME,bbtk::AtomicBlackBox); \
+ BBTK_DECLARE_INPUT(In,TYPE); \
+ BBTK_DECLARE_OUTPUT(Out,TYPE); \
+ BBTK_PROCESS(Process); \
+ protected: \
+ void Process() { bbSetOutputOut ( bbGetInputIn() ); } \
+}; \
+BBTK_BEGIN_DESCRIBE_BLACK_BOX(NAME,bbtk::AtomicBlackBox);\
+BBTK_NAME(#NAME); \
+BBTK_AUTHOR("laurent.guigues at creatis.insa-lyon.fr"); \
+BBTK_CATEGORY("misc"); \
+BBTK_DESCRIPTION("Just copies the value of its input to its output. Usefull to plug an input of a complex box into different internal boxes."); \
+BBTK_INPUT(NAME,In,"Input",TYPE,"");\
+BBTK_OUTPUT(NAME,Out,"Output",TYPE,"");\
+BBTK_END_DESCRIBE_BLACK_BOX(NAME);
+
+//=======================================================================
+
#endif // __bbstdRelay_h_INCLUDED_H__
Program: bbtk
Module: $RCSfile: bbvtkImagePlanes.cxx,v $
Language: C++
- Date: $Date: 2008/12/18 11:55:00 $
- Version: $Revision: 1.18 $
+ Date: $Date: 2009/01/08 10:18:37 $
+ Version: $Revision: 1.19 $
=========================================================================*/
/* ---------------------------------------------------------------------
#include "bbstdRelay.h"
+
+
namespace bbstd
{
bbtk::AtomicBlackBox);
//====================================================================
//====================================================================
- BBTK_BLACK_BOX_TEMPLATE_IMPLEMENTATION(Relay,
- bbtk::AtomicBlackBox);
+// BBTK_BLACK_BOX_TEMPLATE_IMPLEMENTATION(Relay,
+// bbtk::AtomicBlackBox);
//====================================================================
}
using namespace bbstd;
-
-
+/*
+namespace bbtk
+{
+ typedef vtkImageData::Pointer vtkImageDataPointer;
+ BBTK_DEFINE_HUMAN_READABLE_TYPE_NAME(vtkImageDataPointer,
+ "vtkImageDataPointer");
+}
+*/
namespace bbvtk
{
BBTK_ADD_TEMPLATE2_BLACK_BOX_TO_PACKAGE(vtk,Cast,I,O);
- BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(vtk,Relay,vtkImageDataPointer);
+ BBTK_DEFINE_RELAY_BLACK_BOX(vtkImageDataPointer,vtk,vtkImageDataPointerRelay);
+ BBTK_BLACK_BOX_IMPLEMENTATION(vtkImageDataPointerRelay,bbtk::AtomicBlackBox);
+
+ BBTK_ADD_BLACK_BOX_TO_PACKAGE(vtk,vtkImageDataPointerRelay);
+ // BBTK_ADD_TEMPLATE_BLACK_BOX_TO_PACKAGE(vtk,Relay,vtkImageDataPointer);
+ //Pointer);
}
Program: bbtk
Module: $RCSfile: bbvtkImagePlanes.h,v $
Language: C++
- Date: $Date: 2008/12/18 11:55:00 $
- Version: $Revision: 1.11 $
+ Date: $Date: 2009/01/08 10:18:37 $
+ Version: $Revision: 1.12 $
=========================================================================*/
/* ---------------------------------------------------------------------
}//namespace bbvtk
+
+/*
namespace bbvtk
{
- typedef vtkImageData* vtkImageDataPointer;
+ typedef vtkImageData* vtkImageDataPointer;
}
+*/
+ typedef vtkImageData* vtkImageDataPointer;
+
namespace bbtk
{
- BBTK_DEFINE_HUMAN_READABLE_TYPE_NAME(bbvtk::vtkImageDataPointer,
- "vtkImageDataPointer");
+ BBTK_DEFINE_HUMAN_READABLE_TYPE_NAME(vtkImageDataPointer,
+ "vtkImageDataPointer");
}
Program: bbtk
Module: $RCSfile: bbwxSlider.cxx,v $
Language: C++
- Date: $Date: 2008/12/11 15:30:14 $
- Version: $Revision: 1.16 $
+ Date: $Date: 2009/01/08 10:18:39 $
+ Version: $Revision: 1.17 $
=========================================================================*/
/* ---------------------------------------------------------------------
mBox->bbSetOutputOut( mwxSlider->GetValue() );
mBox->bbSetInputIn( mwxSlider->GetValue() );
// and signal that the output has changed
- mBox->bbSignalOutputModification("Out");
+ mBox->bbSignalOutputModification(std::string("Out"));
}
RefreshLabels();
}
mBox->bbSetOutputOut( mwxSlider->GetValue() );
mBox->bbSetInputIn( mwxSlider->GetValue() );
// and signal that the output has changed
- mBox->bbSignalOutputModification("Out");
+ mBox->bbSignalOutputModification(std::string("Out"));
}
//-------------------------------------------------------------------------
class vtkRenderer;
class vtkRenderWindowInteractor;
-class VTK_RENDERING_EXPORT wxvtkImageViewer2 : public vtkObject
+class /*VTK_RENDERING_EXPORT*/ wxvtkImageViewer2 : public vtkObject
{
public:
static wxvtkImageViewer2 *New();