author "Info-dev at creatis.insa-lyon.fr"
category "example mesh"
-load vtk
+
load wx
load wxvtk
load std
-include vtk/boxes/bbLoadBunny_vtkPolyData
+include vtk
//new PolyDataReader pdr
// set pdr.In "/Users/davila/Borrame/Images/Helena/bunny.vtk"
-new bbLoadBunny_vtkPolyData pdr
+new LoadBunny_vtkPolyData pdr
new PolyDataToActor pdActor
connect pdr.Out pdActor.In
define LoadHola_vtkPolyData vtk
description "Loads the image 'hola_vtkPolyData.vtk'"
author "eduardo.davila at creatis.insa-lyon.fr"
- category "image;read/write"
+ category "mesh;read/write"
new PolyDataReader reader
new PrependPackageDataPath ppdp
connect ppdp.Out reader.In
output Out reader.Out "The poly data"
- output FileName ppdp.Out "The path to the image loaded"
+ output FileName ppdp.Out "The path to the mesh to load"
endefine
Program: bbtk
Module: $RCSfile: bbvtkMIPCreator.cxx,v $
Language: C++
- Date: $Date: 2011/03/23 15:49:19 $
- Version: $Revision: 1.10 $
+ Date: $Date: 2011/05/04 12:23:55 $
+ Version: $Revision: 1.11 $
=========================================================================*/
/* ---------------------------------------------------------------------
// mVolume->GetProperty()->SetColor( bbGetInputColour()[0], bbGetInputColour()[1], bbGetInputColour()[2] );
// mVolume->GetProperty()->SetOpacity( bbGetInputOpacity() );
-
}
}//namespace bbtk
bbSetInputTransform(NULL);
bbSetInputOpacity(1);
- polydatamapper = NULL;
- vtkactor = NULL;
+ polydatamapper = NULL;
+ vtkactor = NULL;
}
//---------------------------------------------------------------------
void PolyDataToActor::bbUserInitializeProcessing()
{
- polydatamapper = vtkPolyDataMapper::New();
+ polydatamapper = vtkPolyDataMapper::New();
vtkactor = vtkActor::New();
// polydatamapper->SetInput(marchingcubes->GetOutput());
//---------------------------------------------------------------------
void PolyDataToActor::DoProcess()
- {
- std::cout << "EED PolyDataToActor::DoProcess" << std::endl;
-
- polydatamapper->SetInput( bbGetInputIn() );
+ {
+ polydatamapper->SetInput( bbGetInputIn() );
vtkactor->GetProperty()->SetColor( bbGetInputColour()[0],
bbGetInputColour()[1],
BBTK_DECLARE_INPUT(Opacity,double);
BBTK_DECLARE_INPUT(Colour,std::vector<double>);
BBTK_DECLARE_INPUT(Renderer,vtkRenderer *);
- BBTK_DECLARE_INPUT(Transform, vtkLinearTransform *);
+ BBTK_DECLARE_INPUT(Transform, vtkLinearTransform *);
BBTK_DECLARE_OUTPUT(Out,vtkProp3D *);
BBTK_PROCESS(DoProcess);