X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=packages%2Fvtk%2Fsrc%2FbbvtkMarchingCubes.h;h=a04e3bb54f0dc209fbe5726a8ca05592fca00c98;hb=b297410bce4fc9141ade21cbeca71061369b4932;hp=94a689cf7ae86c3519af22dd3ae8d5ef0bebccf4;hpb=e79cf5b88c5c3653fedd7e6efdb0a2892d9bd958;p=bbtk.git diff --git a/packages/vtk/src/bbvtkMarchingCubes.h b/packages/vtk/src/bbvtkMarchingCubes.h index 94a689c..a04e3bb 100644 --- a/packages/vtk/src/bbvtkMarchingCubes.h +++ b/packages/vtk/src/bbvtkMarchingCubes.h @@ -2,8 +2,8 @@ Program: bbtk Module: $RCSfile: bbvtkMarchingCubes.h,v $ Language: C++ - Date: $Date: 2009/12/18 16:47:45 $ - Version: $Revision: 1.8 $ + Date: $Date: 2009/12/18 18:37:56 $ + Version: $Revision: 1.9 $ =========================================================================*/ /* --------------------------------------------------------------------- @@ -61,27 +61,39 @@ namespace bbvtk //======================================================================= class /*BBTK_EXPORT*/ MarchingCubes : - public bbtk::AtomicBlackBox, - public vtkMarchingCubes + public bbtk::AtomicBlackBox +// ,public vtkMarchingCubes { BBTK_VTK_BLACK_BOX_INTERFACE(MarchingCubes, bbtk::AtomicBlackBox, vtkMarchingCubes); BBTK_DECLARE_VTK_INPUT(In,vtkImageData *); + BBTK_DECLARE_INPUT(Value,double); 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... // BBTK_DECLARE_VTK_PARAM(vtkMarchingCubes,Value,double); // Hence have to wrap the accessors "by hand" : + + /* double bbGetInputValue () { return vtkMarchingCubes::GetValue(0); } void bbSetInputValue (double d) - { vtkMarchingCubes::SetValue(0,d); } - - BBTK_VTK_PROCESS(); - + { // vtkMarchingCubes::SetValue(0,d); + + mVtkObject->SetValue(0,1000.0); + + std::cout << "EED MarchingCubes::bbSetInputValue " << d << std::endl; + + } +*/ + + + // BBTK_VTK_PROCESS(); + BBTK_PROCESS(Process); + void Process(); }; //=======================================================================