X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;ds=sidebyside;f=bbtk%2Fsrc%2FbbmaracasvisuDrawAxe3D.cxx;h=fa7a0cfe5c7ebf9fed64923660ecd44af0e51a30;hb=d92a7b41bf7a8a91f68ea25a66618fd94742c9c7;hp=dbc6f4da5f888d40437966dcf4b204506f473af0;hpb=e4ef2b5df5aac431ff3b806f83b7dd5e55e89d86;p=creaMaracasVisu.git diff --git a/bbtk/src/bbmaracasvisuDrawAxe3D.cxx b/bbtk/src/bbmaracasvisuDrawAxe3D.cxx index dbc6f4d..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() ); @@ -72,7 +74,10 @@ void DrawAxe3D::Process() mvtkactor->GetProperty()->SetColor( bbGetInputColour()[0], bbGetInputColour()[1], bbGetInputColour()[2] ); - + //EC Axe Opacity property added + ///Default Values + double opacity=bbGetInputOpacity(); + mvtkactor->GetProperty()->SetOpacity( opacity ); if ( bbGetInputTransform()!=NULL ) { mvtkactor->SetUserTransform( bbGetInputTransform() ); @@ -86,6 +91,9 @@ void DrawAxe3D::Process() } } + + + void DrawAxe3D::bbUserSetDefaultValues() { firsttime = true; @@ -98,6 +106,9 @@ void DrawAxe3D::bbUserSetDefaultValues() colour.push_back(0.0); colour.push_back(0.0); bbSetInputColour(colour); + bbSetInputOpacity(1.0); + bbSetInputRenderer(NULL); + bbSetInputTransform(NULL); }