Program: bbtk
Module: $RCSfile: bbvtkMarchingCubes.h,v $
Language: C++
- Date: $Date: 2008/02/13 08:21:38 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2008/05/07 07:26:51 $
+ Version: $Revision: 1.6 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#include "bbtkAtomicBlackBox.h"
+#include "bbtkVtkBlackBoxMacros.h"
#include "vtkMarchingCubes.h"
#include "vtkImageData.h"
public bbtk::AtomicBlackBox,
public vtkMarchingCubes
{
- BBTK_USER_BLACK_BOX_INTERFACE(MarchingCubes,bbtk::AtomicBlackBox);
-
- BBTK_DECLARE_VTK_INPUT(vtkMarchingCubes,In,vtkImageData *);
- BBTK_DECLARE_VTK_OUTPUT(vtkMarchingCubes,Out,vtkPolyData *);
+ BBTK_VTK_BLACK_BOX_INTERFACE(MarchingCubes,
+ bbtk::AtomicBlackBox,
+ vtkMarchingCubes);
+
+ BBTK_DECLARE_VTK_INPUT(In,vtkImageData *);
+ BBTK_DECLARE_VTK_OUTPUT(Out,vtkPolyData *);
// For the 'Value' parameter, the standard bbtk macro does not work
// as vtk Get/Set accessors have a parameter...
void bbSetInputValue (double d)
{ vtkMarchingCubes::SetValue(0,d); }
-
- BBTK_PROCESS(DoProcess);
- void DoProcess() { vtkMarchingCubes::Update(); }
-
- // Overload bbDelete to handle vtk reference counting
- void bbDelete() { Delete(); }
+ BBTK_VTK_PROCESS();
};
//=======================================================================
BBTK_DESCRIPTION("Extracts an iso-surface of an image using the marching cubes algorithm (bbfication of vtkMarchingCubes)");
BBTK_CATEGORY("image;mesh");
- BBTK_INPUT(MarchingCubes,In,"Image",vtkImageData*);
- BBTK_INPUT(MarchingCubes,Value,"Value of the iso-surface",double);
- BBTK_OUTPUT(MarchingCubes,Out,"Output iso-surface",vtkPolyData*);
+ BBTK_INPUT(MarchingCubes,In,"Image",vtkImageData*,"");
+ BBTK_INPUT(MarchingCubes,Value,"Value of the iso-surface",double,"");
+ BBTK_OUTPUT(MarchingCubes,Out,"Output iso-surface",vtkPolyData*,"");
BBTK_END_DESCRIBE_BLACK_BOX(MarchingCubes);
//=======================================================================