Open CASCADE Technology  7.3.1.dev
Public Member Functions
HLRBRep_PolyAlgo Class Reference

to remove Hidden lines on Shapes with Triangulations. 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: More...
 
 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 . More...
 
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. More...
 
void Load (const TopoDS_Shape &S)
 Loads the shape S into this framework. Warning S must have already been triangulated. More...
 
Handle< HLRAlgo_PolyAlgoAlgo () 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. More...
 
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. More...
 
void InitHide ()
 
Standard_Boolean MoreHide () const
 
void NextHide ()
 
HLRAlgo_BiPoint::PointsTHide (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 ()
 
HLRAlgo_BiPoint::PointsTShow (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. More...
 
Standard_Boolean Debug () const
 
void Debug (const Standard_Boolean B)
 
- Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor. More...
 
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing. More...
 
Standard_Transientoperator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter. More...
 
virtual ~Standard_Transient ()
 Destructor must be virtual. More...
 
virtual void Delete () const
 Memory deallocator for transient classes. More...
 
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object. More...
 
Standard_Boolean IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type. More...
 
Standard_Boolean IsInstance (const Standard_CString theTypeName) const
 Returns a true value if this is an instance of TypeName. More...
 
Standard_Boolean IsKind (const opencascade::handle< Standard_Type > &theType) const
 Returns true if this is an instance of Type or an instance of any class that inherits from Type. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_Boolean IsKind (const Standard_CString theTypeName) const
 Returns true if this is an instance of TypeName or an instance of any class that inherits from TypeName. Note that multiple inheritance is not supported by OCCT RTTI mechanism. More...
 
Standard_TransientThis () const
 Returns non-const pointer to this object (like const_cast). For protection against creating handle to objects allocated in stack or call from constructor, it will raise exception Standard_ProgramError if reference counter is zero. More...
 
Standard_Integer GetRefCount () const
 Get the reference counter of this object. More...
 
void IncrementRefCounter () const
 Increments the reference counter of this object. More...
 
Standard_Integer DecrementRefCounter () const
 Decrements the reference counter of this object; returns the decremented value. More...
 

Additional Inherited Members

- Public Types inherited from Standard_Transient
typedef void base_type
 Returns a type descriptor about this object. More...
 
- Static Public Member Functions inherited from Standard_Transient
static const char * get_type_name ()
 Returns a type descriptor about this object. More...
 
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class. More...
 

Detailed Description

to remove Hidden lines on Shapes with Triangulations. 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:

Constructor & Destructor Documentation

◆ HLRBRep_PolyAlgo() [1/3]

HLRBRep_PolyAlgo::HLRBRep_PolyAlgo ( )

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

  • 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.

◆ HLRBRep_PolyAlgo() [2/3]

HLRBRep_PolyAlgo::HLRBRep_PolyAlgo ( const Handle< HLRBRep_PolyAlgo > &  A)

◆ HLRBRep_PolyAlgo() [3/3]

HLRBRep_PolyAlgo::HLRBRep_PolyAlgo ( const TopoDS_Shape S)

Member Function Documentation

◆ Algo()

Handle< HLRAlgo_PolyAlgo > HLRBRep_PolyAlgo::Algo ( ) const

◆ Angle() [1/2]

Standard_Real HLRBRep_PolyAlgo::Angle ( ) const

◆ Angle() [2/2]

void HLRBRep_PolyAlgo::Angle ( const Standard_Real  Ang)

◆ Debug() [1/2]

Standard_Boolean HLRBRep_PolyAlgo::Debug ( ) const

◆ Debug() [2/2]

void HLRBRep_PolyAlgo::Debug ( const Standard_Boolean  B)

◆ Hide()

HLRAlgo_BiPoint::PointsT& HLRBRep_PolyAlgo::Hide ( HLRAlgo_EdgeStatus status,
TopoDS_Shape S,
Standard_Boolean reg1,
Standard_Boolean regn,
Standard_Boolean outl,
Standard_Boolean intl 
)

◆ Index()

Standard_Integer HLRBRep_PolyAlgo::Index ( const TopoDS_Shape S) const

return the index of the Shape <S> and return 0 if the Shape <S> is not found.

◆ InitHide()

void HLRBRep_PolyAlgo::InitHide ( )

◆ InitShow()

void HLRBRep_PolyAlgo::InitShow ( )

◆ Load()

void HLRBRep_PolyAlgo::Load ( const TopoDS_Shape S)

Loads the shape S into this framework. Warning S must have already been triangulated.

◆ MoreHide()

Standard_Boolean HLRBRep_PolyAlgo::MoreHide ( ) const

◆ MoreShow()

Standard_Boolean HLRBRep_PolyAlgo::MoreShow ( ) const

◆ NbShapes()

Standard_Integer HLRBRep_PolyAlgo::NbShapes ( ) const

◆ NextHide()

void HLRBRep_PolyAlgo::NextHide ( )

◆ NextShow()

void HLRBRep_PolyAlgo::NextShow ( )

◆ OutLinedShape()

TopoDS_Shape HLRBRep_PolyAlgo::OutLinedShape ( const TopoDS_Shape S) const

Make a shape with the internal outlines in each face.

◆ Projector() [1/2]

const HLRAlgo_Projector& HLRBRep_PolyAlgo::Projector ( ) 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.

◆ Projector() [2/2]

void HLRBRep_PolyAlgo::Projector ( const HLRAlgo_Projector P)

◆ Remove()

void HLRBRep_PolyAlgo::Remove ( const Standard_Integer  I)

remove the Shape of Index .

◆ Shape()

TopoDS_Shape& HLRBRep_PolyAlgo::Shape ( const Standard_Integer  I)

◆ Show()

HLRAlgo_BiPoint::PointsT& HLRBRep_PolyAlgo::Show ( TopoDS_Shape S,
Standard_Boolean reg1,
Standard_Boolean regn,
Standard_Boolean outl,
Standard_Boolean intl 
)

◆ TolAngular() [1/2]

Standard_Real HLRBRep_PolyAlgo::TolAngular ( ) const

◆ TolAngular() [2/2]

void HLRBRep_PolyAlgo::TolAngular ( const Standard_Real  Tol)

◆ TolCoef() [1/2]

Standard_Real HLRBRep_PolyAlgo::TolCoef ( ) const

◆ TolCoef() [2/2]

void HLRBRep_PolyAlgo::TolCoef ( const Standard_Real  Tol)

◆ Update()

void HLRBRep_PolyAlgo::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.


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