Open CASCADE Technology Reference Manual 8.0.0
Loading...
Searching...
No Matches
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.
 
bool IsClipped (const double theDepth) const
 Check if the given depth is not within clipping range(s), e.g. TRUE means depth is clipped.
 
bool GetNearestDepth (const Bnd_Range &theRange, double &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, int 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,
int theDepth = -1 ) const

Dumps the content of me into the stream.

◆ GetNearestDepth()

bool SelectMgr_ViewClipRange::GetNearestDepth ( const Bnd_Range & theRange,
double & theDepth ) const
inline

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

◆ IsClipped()

bool SelectMgr_ViewClipRange::IsClipped ( const double 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: