]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Porting to VTK 6.
authorouv <ouv@opencascade.com>
Fri, 1 Feb 2013 10:36:39 +0000 (10:36 +0000)
committerouv <ouv@opencascade.com>
Fri, 1 Feb 2013 10:36:39 +0000 (10:36 +0000)
Debug.

src/OCC2VTK/GEOM_EdgeSource.cxx
src/OCC2VTK/GEOM_EdgeSource.h
src/OCC2VTK/GEOM_FaceSource.cxx
src/OCC2VTK/GEOM_FaceSource.h
src/OCC2VTK/GEOM_ShadingFace.cxx
src/OCC2VTK/GEOM_VertexSource.cxx
src/OCC2VTK/GEOM_VertexSource.h
src/OCC2VTK/GEOM_WireframeFace.cxx

index 66dafa00804d593a93c1598744b0c4d48870b994..6d8f0880bccf5945b0abf0d74abdb525a43c5882 100755 (executable)
@@ -42,6 +42,7 @@ vtkStandardNewMacro(GEOM_EdgeSource);
 GEOM_EdgeSource::GEOM_EdgeSource() :
   myIsVector(false)
 { 
+  this->SetNumberOfInputPorts(0);
 } 
  
 GEOM_EdgeSource::~GEOM_EdgeSource() 
@@ -56,7 +57,7 @@ void GEOM_EdgeSource::AddEdge (const TopoDS_Edge& theEdge,
 }
 
 int GEOM_EdgeSource::RequestData(vtkInformation *vtkNotUsed(request),
-                                 vtkInformationVector **inputVector,
+                                 vtkInformationVector **vtkNotUsed(inputVector),
                                  vtkInformationVector *outputVector)
 {
   vtkInformation *outInfo = outputVector->GetInformationObject(0);
index 89d04f56d384247502fb833ee94cf137a2671254..71e25a044e5e4d39c9fe3163413984cc90437778 100755 (executable)
 typedef NCollection_Set<TopoDS_Edge> TEdgeSet; 
  
 #include <vtkPoints.h> 
-#include <vtkAlgorithm.h> 
+#include <vtkPolyDataAlgorithm.h> 
 
 class vtkPolyData;
 
-class OCC2VTK_EXPORT GEOM_EdgeSource: public vtkAlgorithm 
+class OCC2VTK_EXPORT GEOM_EdgeSource: public vtkPolyDataAlgorithm 
 { 
 public: 
-  vtkTypeMacro(GEOM_EdgeSource,vtkAlgorithm); 
+  vtkTypeMacro(GEOM_EdgeSource,vtkPolyDataAlgorithm); 
   static GEOM_EdgeSource* New(); 
  
   void AddEdge (const TopoDS_Edge& theEdge,
index 868232a63c5fbd0f6fcfdb7536959cca680b1b80..dba3eb5e4cfda577a52c8b70eb7599a18fd3cafe 100755 (executable)
@@ -29,6 +29,7 @@
  
 GEOM_FaceSource::GEOM_FaceSource() 
 { 
+  this->SetNumberOfInputPorts(0);
 } 
  
 GEOM_FaceSource::~GEOM_FaceSource() 
index e0226cc946fb10599441297951ef02b7e49b6af9..03163eff6a9a0a3bcc2261d539cb2be359a46148 100755 (executable)
 typedef NCollection_Set<TopoDS_Face> TFaceSet; 
  
 #include <vtkPoints.h> 
-#include <vtkAlgorithm.h> 
+#include <vtkPolyDataAlgorithm.h> 
 
 class vtkPolyData;
 
-class OCC2VTK_EXPORT GEOM_FaceSource: public vtkAlgorithm 
+class OCC2VTK_EXPORT GEOM_FaceSource: public vtkPolyDataAlgorithm 
 { 
 public: 
-  vtkTypeMacro(GEOM_FaceSource,vtkAlgorithm); 
+  vtkTypeMacro(GEOM_FaceSource,vtkPolyDataAlgorithm); 
  
   void AddFace(const TopoDS_Face& theFace); 
   void Clear(){ myFaceSet.Clear();} 
index aae437dc862c7645b26dc83225b8fef35eeb5957..7352e5eb64afd805856a0f92e767e856fa689ef2 100755 (executable)
@@ -37,6 +37,7 @@ vtkStandardNewMacro(GEOM_ShadingFace);
  
 GEOM_ShadingFace::GEOM_ShadingFace() 
 { 
+  this->SetNumberOfInputPorts(0);
 } 
  
 GEOM_ShadingFace::~GEOM_ShadingFace() 
@@ -44,7 +45,7 @@ GEOM_ShadingFace::~GEOM_ShadingFace()
 } 
  
 int GEOM_ShadingFace::RequestData(vtkInformation *vtkNotUsed(request),
-                                  vtkInformationVector **inputVector,
+                                  vtkInformationVector **vtkNotUsed(inputVector),
                                   vtkInformationVector *outputVector)
 {
   vtkInformation *outInfo = outputVector->GetInformationObject(0);
index 4509dc12a2d0aad245b512a6f2f62d09ef255de6..3bde4829eacb57c783d2052f0d412e9a6eaae719 100755 (executable)
@@ -35,6 +35,7 @@ vtkStandardNewMacro(GEOM_VertexSource);
  
 GEOM_VertexSource::GEOM_VertexSource() 
 { 
+  this->SetNumberOfInputPorts(0);
 } 
  
 GEOM_VertexSource::~GEOM_VertexSource() 
@@ -49,7 +50,7 @@ AddVertex(const TopoDS_Vertex& theVertex)
 } 
  
 int GEOM_VertexSource::RequestData(vtkInformation *vtkNotUsed(request),
-                                   vtkInformationVector **inputVector,
+                                   vtkInformationVector **vtkNotUsed(inputVector),
                                    vtkInformationVector *outputVector)
 {
   vtkInformation *outInfo = outputVector->GetInformationObject(0);
index 6a1ef4b07e521c87e66746e59f3311854d609917..4dfea778e1e11e6ac1b35309a57dc2f4d4c2f5ab 100755 (executable)
 typedef NCollection_Set<TopoDS_Vertex> TVertexSet; 
  
 #include <vtkPoints.h> 
-#include <vtkAlgorithm.h> 
+#include <vtkPolyDataAlgorithm.h> 
 
 class vtkPolyData;
 
-class OCC2VTK_EXPORT GEOM_VertexSource: public vtkAlgorithm
+class OCC2VTK_EXPORT GEOM_VertexSource: public vtkPolyDataAlgorithm
 { 
 public: 
-  vtkTypeMacro(GEOM_VertexSource,vtkAlgorithm); 
+  vtkTypeMacro(GEOM_VertexSource,vtkPolyDataAlgorithm); 
   static GEOM_VertexSource* New(); 
  
   void AddVertex(const TopoDS_Vertex& theVertex); 
index dceab70b5b5a1fef00e5d68d5280a5612f81a10a..e66c5d010a2f62de7b5080bdd7b5db09a38ce6ab 100755 (executable)
@@ -57,6 +57,8 @@ GEOM_WireframeFace::GEOM_WireframeFace():
 { 
   NbIso[0] = 1;
   NbIso[1] = 1;
+
+  this->SetNumberOfInputPorts(0);
 } 
  
 GEOM_WireframeFace::~GEOM_WireframeFace() 
@@ -64,7 +66,7 @@ GEOM_WireframeFace::~GEOM_WireframeFace()
 } 
  
 int GEOM_WireframeFace::RequestData(vtkInformation *vtkNotUsed(request),
-                                    vtkInformationVector **inputVector,
+                                    vtkInformationVector **vtkNotUsed(inputVector),
                                     vtkInformationVector *outputVector)
 {
   vtkInformation *outInfo = outputVector->GetInformationObject(0);