X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaVtk%2FvtkVectorsTensorsVisuBase.cpp;fp=lib%2FcreaVtk%2FvtkVectorsTensorsVisuBase.cpp;h=8da1d1a0cf5854268dc2b5e91ceb2d84de7b2200;hb=7b056a20a4768265dac820ba75338779e04c787d;hp=3d7c20bba4595da8466fa35800fc7668c56c2e32;hpb=15546f370a550eb33623748e220d611441a4451c;p=creaVtk.git diff --git a/lib/creaVtk/vtkVectorsTensorsVisuBase.cpp b/lib/creaVtk/vtkVectorsTensorsVisuBase.cpp index 3d7c20b..8da1d1a 100644 --- a/lib/creaVtk/vtkVectorsTensorsVisuBase.cpp +++ b/lib/creaVtk/vtkVectorsTensorsVisuBase.cpp @@ -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 rgb) } } +//------------------------------------------------------------------------------ +void vtkVectorsTensorsVisuBase::SetOrientation(int orientation) +{ + _orientation = orientation; +} + +//------------------------------------------------------------------------------ +int vtkVectorsTensorsVisuBase::GetOrientation() +{ + return _orientation; +} +