1 // File : GEOM_OCCReader.h
2 // Created : Wed Feb 20 17:24:59 2002
3 // Author : Christophe ATTANASIO
6 // Copyright : Open CASCADE 2002
10 \class GEOM_OCCReader GEOM_OCCReader.h
11 \brief This class allow to display a OpenCASCADE CAD model in a VTK viewer.
14 #ifndef GEOM_OCCREADER_H
15 #define GEOM_OCCREADER_H
18 #include <vtkPolyDataSource.h>
19 #include <vtkPoints.h>
20 #include <vtkCellArray.h>
23 #include <TopoDS_Shape.hxx>
25 #include <Poly_Polygon3D.hxx>
26 #include <Poly_PolygonOnTriangulation.hxx>
27 #include <GeomAbs_IsoType.hxx>
28 #include <BRepAdaptor_Surface.hxx>
31 #define VTKOCC_EXPORT __declspec (dllexport)
35 class VTKOCC_EXPORT GEOM_OCCReader : public vtkPolyDataSource {
41 static GEOM_OCCReader* New();
43 const TopoDS_Shape& getTopo();
45 void setTopo(const TopoDS_Shape& ashape);
48 void setDisplayMode(int);
50 void setForceUpdate(Standard_Boolean bol);
58 void ComputeShading(vtkPoints* Pts,vtkCellArray* Cells);
59 void ComputeWireframe(vtkPoints* Pts,vtkCellArray* Cells);
61 void TransferFaceSData(const TopoDS_Face& aFace,
65 void TransferFaceWData(const TopoDS_Face& aFace,
69 void TransferEdgeSData(const TopoDS_Edge& aEdge,
73 void TransferEdgeWData(const TopoDS_Edge& aEdge,
77 void TransferVertexWData(const TopoDS_Vertex& aVertex,
81 void createISO(const TopoDS_Face &,
86 void DrawIso(GeomAbs_IsoType aType,
92 Standard_Integer& startidx);
101 void PlotIso(BRepAdaptor_Surface& S,
106 Standard_Boolean& halt,
108 vtkCellArray* Cells);
114 Standard_Boolean forced;
118 TopoDS_Shape myShape;
122 #endif //GEOM_OCCREADER_H