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.h
diff --git
a/src/OCC2VTK/GEOM_VertexSource.h
b/src/OCC2VTK/GEOM_VertexSource.h
index d3e64c1c827ed00174a4c642d7faf0e195e670e5..6b06a34553f87da10413612c574392f9b7460e19 100755
(executable)
--- a/
src/OCC2VTK/GEOM_VertexSource.h
+++ b/
src/OCC2VTK/GEOM_VertexSource.h
@@
-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
@@
-23,12
+23,15
@@
#include "OCC2VTK.h"
#include <TopoDS_Vertex.hxx>
#include "OCC2VTK.h"
#include <TopoDS_Vertex.hxx>
+#include <TopTools_ShapeMapHasher.hxx>
+#include <NCollection_Map.hxx>
+
+typedef NCollection_Map<TopoDS_Vertex, TopTools_ShapeMapHasher> TVertexSet;
#include <vtkPoints.h>
#include <vtkPolyDataAlgorithm.h>
class vtkPolyData;
#include <vtkPoints.h>
#include <vtkPolyDataAlgorithm.h>
class vtkPolyData;
-class VertexSourceInternal;
class OCC2VTK_EXPORT GEOM_VertexSource: public vtkPolyDataAlgorithm
{
class OCC2VTK_EXPORT GEOM_VertexSource: public vtkPolyDataAlgorithm
{
@@
-37,7
+40,7
@@
public:
static GEOM_VertexSource* New();
void AddVertex(const TopoDS_Vertex& theVertex);
static GEOM_VertexSource* New();
void AddVertex(const TopoDS_Vertex& theVertex);
- void Clear()
;
+ void Clear()
{ myVertexSet.Clear();}
static
void OCC2VTK(const TopoDS_Vertex& theVertex,
static
void OCC2VTK(const TopoDS_Vertex& theVertex,
@@
-45,7
+48,7
@@
public:
vtkPoints* thePts);
protected:
vtkPoints* thePts);
protected:
- VertexSourceInternal* myData;
+ TVertexSet myVertexSet;
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *);