]> Creatis software - creaMaracasVisu.git/blobdiff - bbtk/src/bbmaracasvisuDrawAxisTree3D.cxx
*** empty log message ***
[creaMaracasVisu.git] / bbtk / src / bbmaracasvisuDrawAxisTree3D.cxx
index 3e9090d33e914a11dd3cc9c1a01f37eec2df3b90..ab3ad3110cd05c73f03ac4a10ca7f862325b2e85 100644 (file)
@@ -1,5 +1,6 @@
 #include "bbmaracasvisuDrawAxisTree3D.h"
 #include "bbcreaMaracasVisuPackage.h"
+#include "vtkLinearTransform.h"
 
 namespace bbcreaMaracasVisu
 {
@@ -39,7 +40,7 @@ void DrawAxisTree3D::DrawOneAxis(int iGeneral,int numPoints, int iAxis)
                for (i=iGeneral;i<size;i++)
                {
                        //multiplicar ver parametros spacing, en maracas cuando se toca la imagen y se ve dycom
-                       //hay parámetro dycom, vtkImagedata valor spacing y esos datos hay que multiplicar al polydata
+                       //hay par·metro dycom, vtkImagedata valor spacing y esos datos hay que multiplicar al polydata
                        allPoints->InsertNextPoint( bbGetInputlstPointX()[i]*spc[0],  
                                                                                bbGetInputlstPointY()[i]*spc[1], 
                                                                                bbGetInputlstPointZ()[i]*spc[2] );
@@ -54,7 +55,7 @@ void DrawAxisTree3D::DrawOneAxis(int iGeneral,int numPoints, int iAxis)
        // color
        double r,g,b;
 
-       if ( (iAxis*3+1) < bbGetInputColour().size() ){
+       if ( (iAxis*3+1) < (int)(bbGetInputColour().size()) ){
                        r = bbGetInputColour()[0+iAxis*3];
                        g = bbGetInputColour()[1+iAxis*3]; 
                        b = bbGetInputColour()[2+iAxis*3];
@@ -113,7 +114,7 @@ void DrawAxisTree3D::Process()
 
 }
 
-void DrawAxisTree3D::bbUserConstructor()
+void DrawAxisTree3D::bbUserSetDefaultValues()
 { 
         bbSetInputiAxis(0);
      std::vector<double> colour;
@@ -147,13 +148,18 @@ void DrawAxisTree3D::bbUserConstructor()
 
 }
 
-void DrawAxisTree3D::bbUserCopyConstructor(bbtk::BlackBox::Pointer)
-{  
-}
-
-void DrawAxisTree3D::bbUserDestructor()
-{  
-}
+       
+       //-----------------------------------------------------------------     
+       void DrawAxisTree3D::bbUserInitializeProcessing()
+       {
+       }
+       
+       //-----------------------------------------------------------------     
+       void DrawAxisTree3D::bbUserFinalizeProcessing()
+       {
+       }
+       
+       //-----------------------------------------------------------------     
 
 }
 // EO namespace bbcreaMaracasVisu