X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=bbtk%2Fsrc%2FbbmaracasvisuDrawAxe3D.cxx;h=fa7a0cfe5c7ebf9fed64923660ecd44af0e51a30;hb=8eebd53dcbe07edf0569621003178ee37d69a39b;hp=9d65ade80712dd580a5db61edbd0472ae07bd1a9;hpb=f828884b0ce84ed5d324a6b7533c7758e53eae91;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuDrawAxe3D.cxx b/bbtk/src/bbmaracasvisuDrawAxe3D.cxx index 9d65ade..fa7a0cf 100644 --- a/bbtk/src/bbmaracasvisuDrawAxe3D.cxx +++ b/bbtk/src/bbmaracasvisuDrawAxe3D.cxx @@ -44,6 +44,7 @@ void DrawAxe3D::Process() std::vector< double > vecty = bbGetInputlstPointY(); std::vector< double > vectz = bbGetInputlstPointZ(); + // vtkImageData* img = bbGetInputImage(); unsigned int i; double spc[3]; @@ -52,7 +53,8 @@ void DrawAxe3D::Process() spc[1]=1; spc[2]=1; - if(!vectx.empty()&&!vecty.empty()&&!vectz.empty()){ + if(!vectx.empty()&&!vecty.empty()&&!vectz.empty()) + { vtkPoints* allPoints = vtkPoints::New( ); vtkCellArray* allTopology = vtkCellArray::New( ); allTopology->InsertNextCell( vectx.size() ); @@ -89,6 +91,9 @@ void DrawAxe3D::Process() } } + + + void DrawAxe3D::bbUserSetDefaultValues() { firsttime = true; @@ -102,6 +107,8 @@ void DrawAxe3D::bbUserSetDefaultValues() colour.push_back(0.0); bbSetInputColour(colour); bbSetInputOpacity(1.0); + bbSetInputRenderer(NULL); + bbSetInputTransform(NULL); }