#ifndef _VTKVECTORSTENSORSVISUBASE_H_
#define _VTKVECTORSTENSORSVISUBASE_H_
-
#include "vtkActor.h"
#include "vtkLookupTable.h"
#include "vtkPolyDataMapper.h"
#include "vtkSmartPointer.h"
#include "vtkVectorNorm.h"
-
//---------------------------------------------
// Class Name: vtkVectorsTensorsVisuBase
// [classdescription]
//---------------------------------------------
-
-
-
class /*VTK_COMMON_EXPORT*/ vtkLookupTableDirectionVector : public vtkScalarsToColors
{
public:
void MapScalarsThroughTable2(void *input, unsigned char *output,
int inputDataType, int numberOfValues,
int inputIncrement, int outputIncrement);
-
-
+
protected:
-
- double TableRange[2];
+ double TableRange[2];
vtkLookupTableDirectionVector(int sze=256, int ext=256);
~vtkLookupTableDirectionVector();
-
private:
vtkLookupTableDirectionVector(const vtkLookupTableDirectionVector&); // Not implemented.
};
-
-
-
-
-
-
-
-
-
-
-
-
class vtkVectorsTensorsVisuBase
{
vtkVectorsTensorsVisuBase();
~vtkVectorsTensorsVisuBase();
- void SetActive(bool);
- void SetDataObject(vtkDataObject*);
- void SetRenderer(vtkRenderer *);
- void SetScaleFactor(double);
- void SetOpacity(double);
- void SetTypeForm(int);
+ void SetActive(bool);
+ void SetDataObject(vtkDataObject*);
+ void SetRenderer(vtkRenderer *);
+ void SetScaleFactor(double);
+ void SetOpacity(double);
+ void SetTypeForm(int);
+ void SetColorLaw(int);
+ void SetColor(std::vector<double>);
+ void SetOrientation(int orientation);
+ void SetExternalLut(vtkScalarsToColors* lut);
- bool GetActive();
- vtkDataObject* GetDataObject();
- vtkRenderer* GetRenderer();
- double GetScaleFactor();
- double GetOpacity();
- vtkProp3D* GetProp3D();
- int GetTypeForm();
+ bool GetActive();
+ vtkDataObject* GetDataObject();
+ vtkRenderer* GetRenderer();
+ double GetScaleFactor();
+ double GetOpacity();
+ vtkProp3D* GetProp3D();
+ int GetTypeForm();
+ int GetOrientation();
- virtual void Process();
-// void Refresh();
- void VisibilityActor();
+ virtual void Process();
+ void VisibilityActor();
//Methods and attributes only visible by this class
//---------------------------------------------
private:
- bool _actorAdded;
-
- double _scalefactor;
- double _opacity;
- vtkDataObject *_dataobject;
- vtkRenderer *_renderer;
- int _typeForm;
-
+ bool _actorAdded;
+ double _scalefactor;
+ double _opacity;
+ vtkDataObject *_dataobject;
+ vtkRenderer *_renderer;
+ int _typeForm;
+ int _orientation;
protected:
- bool _firsttime;
- bool _active;
-
- vtkSmartPointer<vtkPolyDataMapper> _pdm;
- vtkSmartPointer<vtkActor> _actor;
- vtkLookupTableDirectionVector *_LutEED;
-
+ bool _firsttime;
+ bool _active;
+ vtkSmartPointer<vtkPolyDataMapper> _pdm;
+ vtkSmartPointer<vtkActor> _actor;
+ vtkLookupTableDirectionVector *_LutEED;
+ vtkScalarsToColors *_externalLut; // lookuptable
+
+ int _colorlaw;
+ double _colorR,_colorG,_colorB;
};
//-end of _VTKVECTORSTENSORSVISUBASE_H_------------------------------------------------------