Open CASCADE Technology 7.8.0
Public Member Functions
SelectMgr_ViewClipRange Class Reference

Class for handling depth clipping range. It is used to perform checks in case if global (for the whole view) clipping planes are defined inside of SelectMgr_RectangularFrustum class methods. More...

#include <SelectMgr_ViewClipRange.hxx>

Public Member Functions

 SelectMgr_ViewClipRange ()
 Creates an empty clip range.
 
Standard_Boolean IsClipped (const Standard_Real theDepth) const
 Check if the given depth is not within clipping range(s), e.g. TRUE means depth is clipped.
 
Standard_Boolean GetNearestDepth (const Bnd_Range &theRange, Standard_Real &theDepth) const
 Calculates the min not clipped value from the range. Returns FALSE if the whole range is clipped.
 
void SetVoid ()
 Clears clipping range.
 
void AddClippingPlanes (const Graphic3d_SequenceOfHClipPlane &thePlanes, const gp_Ax1 &thePickRay)
 Add clipping planes. Planes and picking ray should be defined in the same coordinate system.
 
Bnd_RangeChangeUnclipRange ()
 Returns the main unclipped range; [-inf, inf] by default.
 
void AddClipSubRange (const Bnd_Range &theRange)
 Adds a clipping sub-range (for clipping chains).
 
void DumpJson (Standard_OStream &theOStream, Standard_Integer theDepth=-1) const
 Dumps the content of me into the stream.
 

Detailed Description

Class for handling depth clipping range. It is used to perform checks in case if global (for the whole view) clipping planes are defined inside of SelectMgr_RectangularFrustum class methods.

Constructor & Destructor Documentation

◆ SelectMgr_ViewClipRange()

SelectMgr_ViewClipRange::SelectMgr_ViewClipRange ( )
inline

Creates an empty clip range.

Member Function Documentation

◆ AddClippingPlanes()

void SelectMgr_ViewClipRange::AddClippingPlanes ( const Graphic3d_SequenceOfHClipPlane thePlanes,
const gp_Ax1 thePickRay 
)

Add clipping planes. Planes and picking ray should be defined in the same coordinate system.

◆ AddClipSubRange()

void SelectMgr_ViewClipRange::AddClipSubRange ( const Bnd_Range theRange)
inline

Adds a clipping sub-range (for clipping chains).

◆ ChangeUnclipRange()

Bnd_Range & SelectMgr_ViewClipRange::ChangeUnclipRange ( )
inline

Returns the main unclipped range; [-inf, inf] by default.

◆ DumpJson()

void SelectMgr_ViewClipRange::DumpJson ( Standard_OStream theOStream,
Standard_Integer  theDepth = -1 
) const

Dumps the content of me into the stream.

◆ GetNearestDepth()

Standard_Boolean SelectMgr_ViewClipRange::GetNearestDepth ( const Bnd_Range theRange,
Standard_Real theDepth 
) const
inline

Calculates the min not clipped value from the range. Returns FALSE if the whole range is clipped.

◆ IsClipped()

Standard_Boolean SelectMgr_ViewClipRange::IsClipped ( const Standard_Real  theDepth) const
inline

Check if the given depth is not within clipping range(s), e.g. TRUE means depth is clipped.

◆ SetVoid()

void SelectMgr_ViewClipRange::SetVoid ( )
inline

Clears clipping range.


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