Salome HOME
projects
/
modules
/
geom.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove redundant code
[modules/geom.git]
/
src
/
OCC2VTK
/
GEOM_VertexSource.cxx
diff --git
a/src/OCC2VTK/GEOM_VertexSource.cxx
b/src/OCC2VTK/GEOM_VertexSource.cxx
index 9df081137a5ca257cf2a36f08df6a8f4c9df6277..6dfcf5f1f96a016ef057adacdd1f744adeae8ae7 100755
(executable)
--- a/
src/OCC2VTK/GEOM_VertexSource.cxx
+++ b/
src/OCC2VTK/GEOM_VertexSource.cxx
@@
-1,4
+1,4
@@
-// Copyright (C) 2007-201
4
CEA/DEN, EDF R&D, OPEN CASCADE
+// Copyright (C) 2007-201
5
CEA/DEN, EDF R&D, OPEN CASCADE
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Lesser General Public
@@
-18,7
+18,6
@@
//
#include "GEOM_VertexSource.h"
//
#include "GEOM_VertexSource.h"
-#include "OCC2VTK_internal.h"
#include <vtkObjectFactory.h>
#include <vtkObjectFactory.h>
@@
-35,29
+34,20
@@
vtkStandardNewMacro(GEOM_VertexSource);
GEOM_VertexSource::GEOM_VertexSource()
vtkStandardNewMacro(GEOM_VertexSource);
GEOM_VertexSource::GEOM_VertexSource()
-{
- myData = new VertexSourceInternal;
+{
this->SetNumberOfInputPorts(0);
this->SetNumberOfInputPorts(0);
-}
+}
GEOM_VertexSource::~GEOM_VertexSource()
GEOM_VertexSource::~GEOM_VertexSource()
-{
- delete myData;
-}
+{
+}
void
GEOM_VertexSource::
AddVertex(const TopoDS_Vertex& theVertex)
void
GEOM_VertexSource::
AddVertex(const TopoDS_Vertex& theVertex)
-{
- myData->myVertexSet.Add(theVertex);
-}
-
-void
-GEOM_VertexSource::
-Clear()
-{
- myData->myVertexSet.Clear();
-}
+{
+ myVertexSet.Add(theVertex);
+}
int GEOM_VertexSource::RequestData(vtkInformation *vtkNotUsed(request),
vtkInformationVector **vtkNotUsed(inputVector),
int GEOM_VertexSource::RequestData(vtkInformation *vtkNotUsed(request),
vtkInformationVector **vtkNotUsed(inputVector),
@@
-72,7
+62,7
@@
int GEOM_VertexSource::RequestData(vtkInformation *vtkNotUsed(request),
aPolyData->SetPoints(aPts);
aPts->Delete();
aPolyData->SetPoints(aPts);
aPts->Delete();
- TVertexSet::Iterator anIter(my
Data->my
VertexSet);
+ TVertexSet::Iterator anIter(myVertexSet);
for(; anIter.More(); anIter.Next()){
const TopoDS_Vertex& aVertex = anIter.Value();
OCC2VTK(aVertex,aPolyData,aPts);
for(; anIter.More(); anIter.Next()){
const TopoDS_Vertex& aVertex = anIter.Value();
OCC2VTK(aVertex,aPolyData,aPts);