Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions
HLRBRep_PolyAlgo Class Reference

A framework to compute the shape as seen in
a projection plane. This is done by calculating
the visible and the hidden parts of the shape.
HLRBRep_PolyAlgo works with three types of entity:
More...

#include <HLRBRep_PolyAlgo.hxx>

Inheritance diagram for HLRBRep_PolyAlgo:
Inheritance graph
[legend]

Public Member Functions

 HLRBRep_PolyAlgo ()
 Constructs an empty framework for the
calculation of the visible and hidden lines of a shape in a projection.
Use the functions:

 HLRBRep_PolyAlgo (const Handle< HLRBRep_PolyAlgo > &A)
 HLRBRep_PolyAlgo (const TopoDS_Shape &S)
Standard_Integer NbShapes () const
TopoDS_ShapeShape (const Standard_Integer I)
void Remove (const Standard_Integer I)
 remove the Shape of Index .

Standard_Integer Index (const TopoDS_Shape &S) const
 return the index of the Shape <S> and return 0 if
the Shape <S> is not found.

void Load (const TopoDS_Shape &S)
 Loads the shape S into this framework.
Warning S must have already been triangulated.

Handle_HLRAlgo_PolyAlgo Algo () const
const HLRAlgo_ProjectorProjector () const
 Sets the parameters of the view for this framework.
These parameters are defined by an HLRAlgo_Projector object,
which is returned by the Projector function on a Prs3d_Projector object.

void Projector (const HLRAlgo_Projector &P)
Standard_Real Angle () const
void Angle (const Standard_Real Ang)
Standard_Real TolAngular () const
void TolAngular (const Standard_Real Tol)
Standard_Real TolCoef () const
void TolCoef (const Standard_Real Tol)
void Update ()
 Launches calculation of outlines of the shape
visualized by this framework. Used after setting the point of view and
defining the shape or shapes to be visualized.

void InitHide ()
Standard_Boolean MoreHide () const
void NextHide ()
void Hide (Standard_Address &Coordinates, HLRAlgo_EdgeStatus &status, TopoDS_Shape &S, Standard_Boolean &reg1, Standard_Boolean &regn, Standard_Boolean &outl, Standard_Boolean &intl)
void InitShow ()
Standard_Boolean MoreShow () const
void NextShow ()
void Show (Standard_Address &Coordinates, TopoDS_Shape &S, Standard_Boolean &reg1, Standard_Boolean &regn, Standard_Boolean &outl, Standard_Boolean &intl)
TopoDS_Shape OutLinedShape (const TopoDS_Shape &S) const
 Make a shape with the internal outlines in each
face.

Standard_Boolean Debug () const
void Debug (const Standard_Boolean B)

Detailed Description


Constructor & Destructor Documentation

  • Projector to define the point of view
  • Load to select the shape or shapes to be visualized
  • Update to compute the visible and hidden lines of the shape.
    Warning
    The shape or shapes to be visualized must have already been triangulated.

Member Function Documentation

Handle_HLRAlgo_PolyAlgo HLRBRep_PolyAlgo::Algo ( ) const
void HLRBRep_PolyAlgo::Hide ( Standard_Address Coordinates,
HLRAlgo_EdgeStatus status,
TopoDS_Shape S,
Standard_Boolean reg1,
Standard_Boolean regn,
Standard_Boolean outl,
Standard_Boolean intl 
)

The documentation for this class was generated from the following file: