Open CASCADE Technology Reference Manual 8.0.2
Loading...
Searching...
No Matches
OpenGl_ShadowMapArray Class Reference

Array of shadow maps. More...

#include <OpenGl_ShadowMap.hxx>

Inheritance diagram for OpenGl_ShadowMapArray:

Public Member Functions

 OpenGl_ShadowMapArray ()=default
 Empty constructor.
void Release (OpenGl_Context *theCtx)
 Releases all OpenGL resources.
bool IsValid () const
 Return TRUE if defined.
size_t EstimatedDataSize () const
 Returns estimated GPU memory usage for holding data without considering overheads and allocation alignment rules.
Public Member Functions inherited from Standard_Transient
 Standard_Transient ()
 Empty constructor.
 Standard_Transient (const Standard_Transient &)
 Copy constructor – does nothing.
Standard_Transient & operator= (const Standard_Transient &)
 Assignment operator, needed to avoid copying reference counter.
virtual ~Standard_Transient ()=default
 Destructor must be virtual.
virtual const opencascade::handle< Standard_Type > & DynamicType () const
 Returns a type descriptor about this object.
bool IsInstance (const opencascade::handle< Standard_Type > &theType) const
 Returns a true value if this is an instance of Type.
bool IsInstance (const char *const theTypeName) const
 Returns a true value if this is an instance of TypeName.
bool 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.
bool IsKind (const char *const 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.
Standard_Transient * This () 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.
int GetRefCount () const noexcept
 Get the reference counter of this object.
void IncrementRefCounter () noexcept
 Increments the reference counter of this object. Uses relaxed memory ordering since incrementing only requires atomicity, not synchronization with other memory operations.
int DecrementRefCounter () noexcept
 Decrements the reference counter of this object; returns the decremented value. Uses release ordering for the decrement to ensure all writes to the object are visible before the count reaches zero. An acquire fence is added only when the count reaches zero, ensuring proper synchronization before deletion. This is more efficient than using acq_rel for every decrement.
virtual void Delete () const
 Memory deallocator for transient classes.
Public Member Functions inherited from NCollection_Array1< occ::handle< OpenGl_ShadowMap > >
const_iterator begin () const noexcept
const_iterator cbegin () const noexcept
iterator end () noexcept
const_iterator cend () const noexcept
 NCollection_Array1 () noexcept
virtual ~NCollection_Array1 ()
void Init (const_reference theValue)
 Initialise the items with theValue.
size_t Size () const noexcept
 Size query.
int Length () const noexcept
 Length query (legacy int-returning API).
bool IsEmpty () const noexcept
 Return TRUE if array has zero length.
int Lower () const noexcept
 Lower bound.
int Upper () const noexcept
 Upper bound.
NCollection_Array1 & Assign (const NCollection_Array1 &theOther)
 Replaces this array by a copy of theOther array. Bounds and length are copied from theOther. When this array wraps an external (non-owned) buffer:
NCollection_Array1 & CopyValues (const NCollection_Array1 &theOther)
 Copies values from theOther array without changing this array bounds. This array should be pre-allocated and have the same length as theOther; otherwise exception Standard_DimensionMismatch is thrown.
NCollection_Array1 & Move (NCollection_Array1 &&theOther) noexcept
 Move assignment. This array will borrow all the data from theOther. The moved object will keep pointer to the memory buffer and range, but it will not free the buffer on destruction.
NCollection_Array1 & operator= (const NCollection_Array1 &theOther)
 Assignment operator;.
const_reference First () const noexcept
reference ChangeFirst () noexcept
const_reference Last () const noexcept
reference ChangeLast () noexcept
const_reference Value (const int theIndex) const
 Constant value access.
const_reference operator() (const int theIndex) const
 operator() - alias to Value
const_reference operator[] (const int theIndex) const
 operator[] - alias to Value
reference ChangeValue (const int theIndex)
 Variable value access.
const_reference At (const size_t theIndex) const
 0-based checked access independent of Lower()/Upper().
reference ChangeAt (const size_t theIndex)
 0-based checked mutable access independent of Lower()/Upper().
void SetValue (const int theIndex, const value_type &theItem)
 Set value.
reference EmplaceValue (const int theIndex, Args &&... theArgs)
 Emplace value at the specified index, constructing it in-place.
void UpdateLowerBound (const int theLower) noexcept
 Changes the lowest bound. Do not move data.
void UpdateUpperBound (const int theUpper) noexcept
 Changes the upper bound. Do not move data.
void Resize (const int theLower, const int theUpper, const bool theToCopyData)
 Resizes the array to specified bounds. No re-allocation will be done if length of array does not change, but existing values will not be discarded if theToCopyData set to FALSE.
bool IsDeletable () const noexcept

Additional Inherited Members

typedef void base_type
 Returns a type descriptor about this object.
Public Types inherited from NCollection_Array1< occ::handle< OpenGl_ShadowMap > >
typedef NCollection_Allocator< occ::handle< OpenGl_ShadowMap > > allocator_type
 Memory allocation.
using value_type
using size_type
using difference_type
using pointer
using const_pointer
using reference
using const_reference
using iterator
using const_iterator
using Iterator
static constexpr const char * get_type_name ()
 Returns a type descriptor about this object.
static const opencascade::handle< Standard_Type > & get_type_descriptor ()
 Returns type descriptor of Standard_Transient class.
Protected Member Functions inherited from NCollection_Array1< occ::handle< OpenGl_ShadowMap > >
void resizeImpl (const size_t theNewSize, const int theNewLower, const bool theToCopyData)
 Core resize implementation used by all public Resize() overloads.
const_reference at (const size_t theIndex) const
std::enable_if< std::is_trivially_default_constructible< U >::value, void >::type construct (const size_t, const size_t)
std::enable_if< std::is_trivially_destructible< U >::value, void >::type destroy (pointer, const size_t, const size_t)
void assign (const const_pointer theFrom, const size_t theSize, const int theLower)
std::enable_if< std::is_trivially_copyable< U >::value, void >::type copyAssign (pointer theTarget, const_pointer theFrom, const size_t theCount)
void copyConstruct (const pointer theFrom, const size_t theCount)
Protected Attributes inherited from NCollection_Array1< occ::handle< OpenGl_ShadowMap > >
int myLowerBound
size_t mySize
pointer myPointer
bool myIsOwner
allocator_type myAllocator

Detailed Description

Array of shadow maps.

Constructor & Destructor Documentation

◆ OpenGl_ShadowMapArray()

OpenGl_ShadowMapArray::OpenGl_ShadowMapArray ( )
default

Empty constructor.

Member Function Documentation

◆ EstimatedDataSize()

size_t OpenGl_ShadowMapArray::EstimatedDataSize ( ) const

Returns estimated GPU memory usage for holding data without considering overheads and allocation alignment rules.

◆ IsValid()

bool OpenGl_ShadowMapArray::IsValid ( ) const
inline

Return TRUE if defined.

◆ Release()

void OpenGl_ShadowMapArray::Release ( OpenGl_Context * theCtx)

Releases all OpenGL resources.


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