Open CASCADE Technology 7.8.2.dev
Graphic3d_BufferRange Struct Reference

Range of values defined as Start + Length pair. More...

#include <Graphic3d_BufferRange.hxx>

Public Member Functions

 Graphic3d_BufferRange ()
 Empty constructor.
 
 Graphic3d_BufferRange (Standard_Integer theStart, Standard_Integer theLength)
 Constructor.
 
Standard_Boolean IsEmpty () const
 Return TRUE if range is empty.
 
Standard_Integer Upper () const
 Return the Upper element within the range.
 
void Clear ()
 Clear the range.
 
void Unite (const Graphic3d_BufferRange &theRange)
 Add another range to this one.
 

Data Fields

Standard_Integer Start
 first element within the range
 
Standard_Integer Length
 number of elements within the range
 

Detailed Description

Range of values defined as Start + Length pair.

Constructor & Destructor Documentation

◆ Graphic3d_BufferRange() [1/2]

Graphic3d_BufferRange::Graphic3d_BufferRange ( )
inline

Empty constructor.

◆ Graphic3d_BufferRange() [2/2]

Graphic3d_BufferRange::Graphic3d_BufferRange ( Standard_Integer theStart,
Standard_Integer theLength )
inline

Constructor.

Member Function Documentation

◆ Clear()

void Graphic3d_BufferRange::Clear ( )
inline

Clear the range.

◆ IsEmpty()

Standard_Boolean Graphic3d_BufferRange::IsEmpty ( ) const
inline

Return TRUE if range is empty.

◆ Unite()

void Graphic3d_BufferRange::Unite ( const Graphic3d_BufferRange & theRange)
inline

Add another range to this one.

◆ Upper()

Standard_Integer Graphic3d_BufferRange::Upper ( ) const
inline

Return the Upper element within the range.

Field Documentation

◆ Length

Standard_Integer Graphic3d_BufferRange::Length

number of elements within the range

◆ Start

Standard_Integer Graphic3d_BufferRange::Start

first element within the range


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