Program: bbtk
Module: $RCSfile: bbvtkIsoSurfaceExtractor.h,v $
Language: C++
- Date: $Date: 2008/03/03 14:01:49 $
- Version: $Revision: 1.1 $
+ Date: $Date: 2008/04/24 14:11:31 $
+ Version: $Revision: 1.7 $
Copyright (c) CREATIS (Centre de Recherche et d'Applications en Traitement de
l'Image). All rights reserved. See Doc/License.txt or
#ifdef _USE_VTK_
-#ifndef __vtkIsoSurfaceInserter_h__
-#define __vtkIsoSurfaceInserter_h__
+#ifndef __vtkIsoSurfaceExtractor_h__
+#define __vtkIsoSurfaceExtractor_h__
#include "vtkImageData.h"
#include "vtkRenderer.h"
namespace bbvtk
{
- class /*BBTK_EXPORT*/ IsoSurfaceInserter
+ class /*BBTK_EXPORT*/ IsoSurfaceExtractor
:
public bbtk::AtomicBlackBox
{
vtkActor *vtkactor;
- BBTK_USER_BLACK_BOX_INTERFACE(IsoSurfaceInserter,bbtk::AtomicBlackBox);
+ BBTK_BLACK_BOX_INTERFACE(IsoSurfaceExtractor,bbtk::AtomicBlackBox);
BBTK_DECLARE_INPUT(In,vtkImageData *);
- BBTK_DECLARE_INPUT(InVtkObject,vtkObject *);
+ // BBTK_DECLARE_INPUT(InVtkObject,vtkObject *);
BBTK_DECLARE_INPUT(Isovalue,double);
BBTK_DECLARE_INPUT(Opacity,double);
BBTK_DECLARE_INPUT(Colour,std::vector<double>);
- BBTK_DECLARE_INPUT(Renderer,vtkRenderer *);
+ BBTK_DECLARE_INPUT(Renderer,vtkRenderer *);
BBTK_DECLARE_OUTPUT(Out,vtkProp3D *);
BBTK_PROCESS(DoProcess);
void Init();
};
- BBTK_BEGIN_DESCRIBE_BLACK_BOX(IsoSurfaceInserter,bbtk::AtomicBlackBox);
- BBTK_NAME("IsoSurfaceInserter");
+ BBTK_BEGIN_DESCRIBE_BLACK_BOX(IsoSurfaceExtractor,bbtk::AtomicBlackBox);
+ BBTK_NAME("IsoSurfaceExtractor");
BBTK_AUTHOR("eduardo.davila / laurent.guigues at creatis.insa-lyon.fr");
- BBTK_DESCRIPTION("Extracts an iso-surface of a 3D image and insert it into a 3D scene (vtkRenderer)");
+ BBTK_DESCRIPTION("Extracts an iso-surface of a 3D image and creates a vtkProp3D object to insert into a 3D scene (e.g. a Viewer3D)");
typedef std::vector<double> vectorcolour;
- BBTK_INPUT(IsoSurfaceInserter,In,"Input image",vtkImageData*);
- BBTK_INPUT(IsoSurfaceInserter,InVtkObject,"Image vtkObject",vtkObject*);
- BBTK_INPUT(IsoSurfaceInserter,Isovalue,"Isovalue",double);
- BBTK_INPUT(IsoSurfaceInserter,Opacity,"Opacity",double);
- BBTK_INPUT(IsoSurfaceInserter,Colour,"r g b",vectorcolour);
- BBTK_INPUT(IsoSurfaceInserter,Renderer,"3D scene in which to insert the surface",vtkRenderer*);
- BBTK_OUTPUT(IsoSurfaceInserter,Out,"Image",vtkProp3D *);
+ BBTK_CATEGORY("3D object creator");
+ BBTK_INPUT(IsoSurfaceExtractor,In,"Input image",vtkImageData*,"");
+ // BBTK_INPUT(IsoSurfaceExtractor,InVtkObject,"Image vtkObject",vtkObject*);
+
+ BBTK_INPUT(IsoSurfaceExtractor,Isovalue,"Isovalue",double,"");
+ BBTK_INPUT(IsoSurfaceExtractor,Opacity,"Opacity",double,"");
+ BBTK_INPUT(IsoSurfaceExtractor,Colour,"r g b",vectorcolour,"colour");
+ BBTK_INPUT(IsoSurfaceExtractor,Renderer,"3D scene in which to insert the surface",vtkRenderer*,"");
+ BBTK_OUTPUT(IsoSurfaceExtractor,Out,"Extracted iso-surface",vtkProp3D *,"");
- BBTK_END_DESCRIBE_BLACK_BOX(IsoSurfaceInserter);
+ BBTK_END_DESCRIBE_BLACK_BOX(IsoSurfaceExtractor);
}// EO namespace bbtk
-#endif //__IsoSurfaceInserter_h__
+#endif //__IsoSurfaceExtractor_h__
#endif //_USE_VTK_