X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcreaVtk%2FvtkVectorsTensorsVisuBase.h;h=831fc2ccde4b6a719f7da66562bf8ef68b7f2a47;hb=33a2fbec2921c504fd037bdcfd4f156cca8ee118;hp=0d86225e4408a38fa23a407773d65aafb073cab9;hpb=41a74698bb0203749248628baa1503144e1f12f7;p=creaVtk.git diff --git a/lib/creaVtk/vtkVectorsTensorsVisuBase.h b/lib/creaVtk/vtkVectorsTensorsVisuBase.h index 0d86225..831fc2c 100644 --- a/lib/creaVtk/vtkVectorsTensorsVisuBase.h +++ b/lib/creaVtk/vtkVectorsTensorsVisuBase.h @@ -28,7 +28,6 @@ #ifndef _VTKVECTORSTENSORSVISUBASE_H_ #define _VTKVECTORSTENSORSVISUBASE_H_ - #include "vtkActor.h" #include "vtkLookupTable.h" #include "vtkPolyDataMapper.h" @@ -36,15 +35,11 @@ #include "vtkSmartPointer.h" #include "vtkVectorNorm.h" - //--------------------------------------------- // Class Name: vtkVectorsTensorsVisuBase // [classdescription] //--------------------------------------------- - - - class /*VTK_COMMON_EXPORT*/ vtkLookupTableDirectionVector : public vtkScalarsToColors { public: @@ -71,14 +66,11 @@ 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. @@ -86,18 +78,6 @@ private: }; - - - - - - - - - - - - class vtkVectorsTensorsVisuBase { @@ -108,24 +88,25 @@ public : 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); - 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(); - virtual void Process(); -// void Refresh(); - void VisibilityActor(); + virtual void Process(); + void VisibilityActor(); @@ -139,23 +120,21 @@ protected: //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; protected: - bool _firsttime; - bool _active; - - vtkSmartPointer _pdm; - vtkSmartPointer _actor; - vtkLookupTableDirectionVector *_LutEED; - + bool _firsttime; + bool _active; + vtkSmartPointer _pdm; + vtkSmartPointer _actor; + vtkLookupTableDirectionVector *_LutEED; + int _colorlaw; + double _colorR,_colorG,_colorB; }; //-end of _VTKVECTORSTENSORSVISUBASE_H_------------------------------------------------------