]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuDrawAxe3D.cxx
#2647 creaMaracasVisu Feature New Normal - Merge creaButtonContainer BRANCH
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuDrawAxe3D.cxx
index 9d65ade80712dd580a5db61edbd0472ae07bd1a9..fa7a0cfe5c7ebf9fed64923660ecd44af0e51a30 100644 (file)
@@ -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);
 }