]> Creatis software - creaMaracasVisu.git/blobdiff - lib/maracasVisuLib/src/interface/wxWindows/widgets/vtkBaseData.cxx
#3472 TDx
[creaMaracasVisu.git] / lib / maracasVisuLib / src / interface / wxWindows / widgets / vtkBaseData.cxx
index f8df99a5922db2b4fd84c5dd37bbd18334d8a7f2..3fdede1c3321314b05106ab65e8687c7c9ee42a4 100644 (file)
 #  knowledge of the CeCILL-B license and that you accept its terms.
 # ------------------------------------------------------------------------ */
 
-
 #include "vtkBaseData.h"
 
+//-------------------------------------------------------------------
 vtkBaseData::vtkBaseData()
 {
-
-       _z            = 0;
-       _t            = 0;
-       _marImageData = 0;
+       _z                              = 0;
+       _t                              = 0;
+       _marImageData                   = 0;
+       _interpolate                    = true;
+       _fixAxis2D                              = false;
+       _opacityAxis                    = 1.0;
+       _observable                     = vtkObject::New();
+       _cameraparallelScale    = 100.0;
 }
 
 //-------------------------------------------------------------------
@@ -57,6 +61,7 @@ vtkImageData* vtkBaseData::GetImageData()
        }
        
 }
+
 //-------------------------------------------------------------------
 marImageData* vtkBaseData::GetMarImageData()
 {
@@ -90,7 +95,9 @@ void vtkBaseData::Configure()  // virtual
 }
 
 //-------------------------------------------------------------------
-void vtkBaseData::SetZ(double z){
+void vtkBaseData::SetZ(double z)
+{
+
        //int maxZ;
 
 //     int dim[3];
@@ -128,6 +135,7 @@ void vtkBaseData::SetZ(double z){
                }
 
                _z=z;
+               _observable->InvokeEvent(3);    
        }
 }
 
@@ -143,6 +151,18 @@ int vtkBaseData::GetT()
        return _t;
 }
 
+//-------------------------------------------------------------------
+double vtkBaseData::GetX()  // virtual
+{
+       return 0;
+}
+//-------------------------------------------------------------------
+double vtkBaseData::GetY()  // virtual
+{
+       return 0;
+}
+
+
 //-------------------------------------------------------------------
 void vtkBaseData::SetT(double t)
 {
@@ -182,3 +202,61 @@ double vtkBaseData::GetColorLevel()
        return _colorLevel;
 }
 
+
+//-------------------------------------------------------------------
+void vtkBaseData::AddObserver(int eventNumber, vtkCommand *observer)
+{
+       _observable->AddObserver( eventNumber , observer );
+       //Configure();
+}
+
+//-------------------------------------------------------------------
+bool vtkBaseData::GetInterpolate()     
+{
+       return _interpolate;
+}
+
+//-------------------------------------------------------------------
+void vtkBaseData::SetInterpolate(bool value)   
+{
+       _interpolate = value;
+}
+
+//-------------------------------------------------------------------
+bool vtkBaseData::GetFixAxis2D()       
+{
+       return _fixAxis2D;
+}
+
+//-------------------------------------------------------------------
+void vtkBaseData::SetFixAxis2D(bool value)     
+{
+       _fixAxis2D = value;
+}
+
+//-------------------------------------------------------------------
+double vtkBaseData::GetOpacityAxis()   
+{
+       return _opacityAxis;
+}
+
+//-------------------------------------------------------------------
+void vtkBaseData::SetOpacityAxis(double value) 
+{
+       _opacityAxis = value;
+}
+
+//-------------------------------------------------------------------
+double vtkBaseData::GetCameraParallelScale()
+{
+       return _cameraparallelScale;
+}
+
+//-------------------------------------------------------------------
+void vtkBaseData::SetCameraParallelScale(double value)
+{
+       _cameraparallelScale=value;
+}
+
+
+