]> Creatis software - creaVtk.git/blobdiff - lib/creaVtk/vtkVectorsTensorsVisuBase.cpp
VectorField 2D view
[creaVtk.git] / lib / creaVtk / vtkVectorsTensorsVisuBase.cpp
index 3d7c20bba4595da8466fa35800fc7668c56c2e32..8da1d1a0cf5854268dc2b5e91ceb2d84de7b2200 100644 (file)
@@ -111,7 +111,7 @@ void vtkLookupTableMapDirVectorEED(vtkLookupTableDirectionVector *self, T *input
        
        
 inIncr=3;
-       printf("EED length %d  %p\n", length,input);
+//     printf("EED length %d  %p\n", length,input);
 //     mag = new double[length];
        for (i = 0; i < length; ++i)
     {
@@ -151,7 +151,7 @@ void vtkLookupTableDirectionVector::MapScalarsThroughTable2(void *input,
                                              int inputIncrement,
                                              int outputFormat)
 {
-  printf("vtkLookupTableEED::MapScalarsThroughTable2 inputIncrement=%d   inputDataType=%d\n",inputIncrement,inputDataType);
+//  printf("vtkLookupTableEED::MapScalarsThroughTable2 inputIncrement=%d   inputDataType=%d\n",inputIncrement,inputDataType);
 // if (this->UseMagnitude && inputIncrement > 1)
 // {
      switch (inputDataType)
@@ -194,6 +194,7 @@ vtkVectorsTensorsVisuBase::vtkVectorsTensorsVisuBase()
        _dataobject             = NULL;
        _renderer               = NULL;
        _typeForm               = 0;
+       _orientation    = 0;
 
        _LutEED         = vtkLookupTableDirectionVector::New();
        //_LutEED->SetVectorMode(0);
@@ -338,4 +339,16 @@ void vtkVectorsTensorsVisuBase::SetColor(std::vector<double> rgb)
        }
 }
 
+//------------------------------------------------------------------------------
+void vtkVectorsTensorsVisuBase::SetOrientation(int orientation)
+{
+       _orientation = orientation;
+}
+
+//------------------------------------------------------------------------------
+int vtkVectorsTensorsVisuBase::GetOrientation()
+{
+       return _orientation;
+}
+