Line 0
Link Here
|
|
|
1 |
--- src/SALOME_PY/SalomePy.cxx.orig 2010-06-17 12:55:19.000000000 -0230 |
2 |
+++ src/SALOME_PY/SalomePy.cxx 2012-09-13 17:12:24.000000000 -0230 |
3 |
@@ -205,8 +205,9 @@ |
4 |
SVTK_ViewWindow* aVTKViewWindow = |
5 |
::GetVTKViewWindow( myCreate ? __Create : __FindOrCreate ); |
6 |
if( aVTKViewWindow && aPyClass ) { |
7 |
- vtkRenderer* aVTKObject = aVTKViewWindow->getRenderer(); |
8 |
- myResult = PyVTKObject_New( aPyClass, aVTKObject ); |
9 |
+ PyObject* aVTKObject = (PyObject*)aVTKViewWindow->getRenderer(); |
10 |
+ vtkObjectBase *vtk_ptr; |
11 |
+ myResult = PyVTKObject_New( aPyClass, aVTKObject, vtk_ptr ); |
12 |
} |
13 |
} |
14 |
}; |
15 |
@@ -254,8 +255,9 @@ |
16 |
SVTK_ViewWindow* aVTKViewWindow = |
17 |
::GetVTKViewWindow( myCreate ? __Create : __FindOrCreate ); |
18 |
if( aVTKViewWindow && aPyClass ) { |
19 |
- vtkRenderWindow* aVTKObject = aVTKViewWindow->getRenderWindow(); |
20 |
- myResult = PyVTKObject_New( aPyClass, aVTKObject ); |
21 |
+ PyObject* aVTKObject = (PyObject*)aVTKViewWindow->getRenderWindow(); |
22 |
+ vtkObjectBase *vtk_ptr; |
23 |
+ myResult = PyVTKObject_New( aPyClass, aVTKObject, vtk_ptr ); |
24 |
} |
25 |
} |
26 |
}; |
27 |
@@ -303,8 +305,9 @@ |
28 |
SVTK_ViewWindow* aVTKViewWindow = |
29 |
::GetVTKViewWindow( myCreate ? __Create : __FindOrCreate ); |
30 |
if( aVTKViewWindow && aPyClass ) { |
31 |
- vtkRenderWindowInteractor* aVTKObject = aVTKViewWindow->getInteractor(); |
32 |
- myResult = PyVTKObject_New( aPyClass, aVTKObject ); |
33 |
+ PyObject* aVTKObject = (PyObject*)aVTKViewWindow->getInteractor(); |
34 |
+ vtkObjectBase *vtk_ptr; |
35 |
+ myResult = PyVTKObject_New( aPyClass, aVTKObject, vtk_ptr ); |
36 |
} |
37 |
} |
38 |
}; |