This class allow to display a OpenCASCADE CAD model in a VTK viewer.
#include <GEOM_OCCReader.h>

Public Member Functions | |
| const TopoDS_Shape & | getTopo () |
| void | setTopo (const TopoDS_Shape &ashape, bool isVector=false) |
| int | getDisplayMode () |
| void | setDisplayMode (int) |
| void | setForceUpdate (Standard_Boolean bol) |
Static Public Member Functions | |
| static GEOM_OCCReader * | New () |
Protected Member Functions | |
| GEOM_OCCReader () | |
| ~GEOM_OCCReader () | |
| void | Execute () |
| void | ComputeShading (vtkPoints *Pts, vtkCellArray *Cells) |
| void | ComputeWireframe (vtkPoints *Pts, vtkCellArray *Cells) |
| void | TransferFaceSData (const TopoDS_Face &aFace, vtkPoints *Pts, vtkCellArray *Cells) |
| void | TransferFaceWData (const TopoDS_Face &aFace, vtkPoints *Pts, vtkCellArray *Cells) |
| void | TransferEdgeSData (const TopoDS_Edge &aEdge, vtkPoints *Pts, vtkCellArray *Cells) |
| void | TransferEdgeWData (const TopoDS_Edge &aEdge, vtkPoints *Pts, vtkCellArray *Cells) |
| void | TransferVertexWData (const TopoDS_Vertex &aVertex, vtkPoints *Pts, vtkCellArray *Cells) |
| void | createISO (const TopoDS_Face &, double, int, vtkPoints *Pts, vtkCellArray *Cells) |
| void | DrawIso (GeomAbs_IsoType aType, Standard_Real PParm, Standard_Real p1, Standard_Real p2, vtkPoints *Pts, vtkCellArray *Cells, Standard_Integer &startidx) |
| void | MoveTo (gp_Pnt P, vtkPoints *Pts) |
| void | DrawTo (gp_Pnt P, vtkPoints *Pts, vtkCellArray *Cells) |
| void | PlotIso (BRepAdaptor_Surface &S, GeomAbs_IsoType T, Standard_Real &U, Standard_Real &V, Standard_Real Step, Standard_Boolean &halt, vtkPoints *Pts, vtkCellArray *Cells) |
Private Attributes | |
| Standard_Boolean | forced |
| int | discretiso |
| int | amode |
| int | nbisos |
| TopoDS_Shape | myShape |
| bool | myIsVector |
| GEOM_OCCReader::GEOM_OCCReader | ( | ) | [protected] |
References amode, discretiso, forced, and nbisos.
| GEOM_OCCReader::~GEOM_OCCReader | ( | ) | [protected] |
| GEOM_OCCReader * GEOM_OCCReader::New | ( | ) | [static] |
References GEOM_OCCReader().
| const TopoDS_Shape & GEOM_OCCReader::getTopo | ( | ) |
References myShape.
| void GEOM_OCCReader::setTopo | ( | const TopoDS_Shape & | ashape, |
| bool | isVector = false |
||
| ) |
References myIsVector, and myShape.
| int GEOM_OCCReader::getDisplayMode | ( | ) |
References amode.
| void GEOM_OCCReader::setDisplayMode | ( | int | thenewmode | ) |
References amode.
| void GEOM_OCCReader::setForceUpdate | ( | Standard_Boolean | bol | ) |
References forced.
| void GEOM_OCCReader::Execute | ( | ) | [protected] |
References amode, ComputeShading(), ComputeWireframe(), Handle(), myShape, and New().
| void GEOM_OCCReader::ComputeShading | ( | vtkPoints * | Pts, |
| vtkCellArray * | Cells | ||
| ) | [protected] |
References myShape, TransferEdgeSData(), and TransferFaceSData().
| void GEOM_OCCReader::ComputeWireframe | ( | vtkPoints * | Pts, |
| vtkCellArray * | Cells | ||
| ) | [protected] |
References myShape, TransferEdgeWData(), TransferFaceWData(), and TransferVertexWData().
| void GEOM_OCCReader::TransferFaceSData | ( | const TopoDS_Face & | aFace, |
| vtkPoints * | Pts, | ||
| vtkCellArray * | Cells | ||
| ) | [protected] |
References Handle(), and PAL_MESH_030_geometry.i.
| void GEOM_OCCReader::TransferFaceWData | ( | const TopoDS_Face & | aFace, |
| vtkPoints * | Pts, | ||
| vtkCellArray * | Cells | ||
| ) | [protected] |
References createISO().
| void GEOM_OCCReader::TransferEdgeSData | ( | const TopoDS_Edge & | aEdge, |
| vtkPoints * | Pts, | ||
| vtkCellArray * | Cells | ||
| ) | [protected] |
| void GEOM_OCCReader::TransferEdgeWData | ( | const TopoDS_Edge & | aEdge, |
| vtkPoints * | Pts, | ||
| vtkCellArray * | Cells | ||
| ) | [protected] |
References Handle(), PAL_MESH_030_geometry.i, and myIsVector.
| void GEOM_OCCReader::TransferVertexWData | ( | const TopoDS_Vertex & | aVertex, |
| vtkPoints * | Pts, | ||
| vtkCellArray * | Cells | ||
| ) | [protected] |
References ZERO_COORD.
| void GEOM_OCCReader::createISO | ( | const TopoDS_Face & | , |
| double | , | ||
| int | , | ||
| vtkPoints * | Pts, | ||
| vtkCellArray * | Cells | ||
| ) | [protected] |
References DrawIso(), Handle(), HatcherConfusion2d, HatcherConfusion3d, IntersectorConfusion, IntersectorTangency, GEOM_moteur.V1, and GEOM_moteur.V2.
| void GEOM_OCCReader::DrawIso | ( | GeomAbs_IsoType | aType, |
| Standard_Real | PParm, | ||
| Standard_Real | p1, | ||
| Standard_Real | p2, | ||
| vtkPoints * | Pts, | ||
| vtkCellArray * | Cells, | ||
| Standard_Integer & | startidx | ||
| ) | [protected] |
References discretiso, DrawTo(), geompy.GetType(), Handle(), GEOM_shellSolid.l, MoveTo(), myShape, PlotCount, PlotIso(), GEOM_moteur.S, GEOM_moteur.V1, and GEOM_moteur.V2.
| void GEOM_OCCReader::MoveTo | ( | gp_Pnt | P, |
| vtkPoints * | Pts | ||
| ) | [protected] |
References lastVTKpoint.
| void GEOM_OCCReader::DrawTo | ( | gp_Pnt | P, |
| vtkPoints * | Pts, | ||
| vtkCellArray * | Cells | ||
| ) | [protected] |
References lastVTKpoint.
| void GEOM_OCCReader::PlotIso | ( | BRepAdaptor_Surface & | S, |
| GeomAbs_IsoType | T, | ||
| Standard_Real & | U, | ||
| Standard_Real & | V, | ||
| Standard_Real | Step, | ||
| Standard_Boolean & | halt, | ||
| vtkPoints * | Pts, | ||
| vtkCellArray * | Cells | ||
| ) | [protected] |
References DrawTo(), IsoRatio, MaxPlotCount, and PlotCount.
Standard_Boolean GEOM_OCCReader.forced [private] |
int GEOM_OCCReader.discretiso [private] |
int GEOM_OCCReader.amode [private] |
int GEOM_OCCReader.nbisos [private] |
TopoDS_Shape GEOM_OCCReader.myShape [private] |
bool GEOM_OCCReader.myIsVector [private] |