Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
SoCacheElement Class Reference

Stores the most recently opened cache. More...

#include <Inventor/elements/SoCacheElement.h>

+ Inheritance diagram for SoCacheElement:

Public Member Functions

SoCachegetCache () const
 Returns the cache stored in an instance.
 
virtual void pop (SoState *state, const SoElement *prevTopElement)
 Overrides this method to unref cache.
 
SoCacheElementgetNextCacheElement () const
 Returns the next cache element in the stack.
 
virtual void push (SoState *state)
 push to save dependencies list
 
- Public Member Functions inherited from SoElement
virtual void print (FILE *fp) const
 Prints element (for debugging).
 
virtual SoType getTypeId () const
 Returns type identifier for element instance.
 
- Public Member Functions inherited from SoTypedObject
SbBool isOfType (const SoType &type) const
 Returns TRUE if this object is of the type specified in type or is derived from that type.
 
template<typename TypedObjectClass >
SbBool isOfType () const
 Returns TRUE if this object is of the type of class TypedObjectClass or is derived from that class.
 

Static Public Member Functions

static SoType getClassTypeId ()
 Returns the type identifier for this class.
 
static int getClassStackIndex ()
 Returns the stack id for this element.
 
static void set (SoState *state, SoCache *cache)
 Sets cache in element accessed from state.
 
static SbBool anyOpen (SoState *state)
 Returns TRUE if any cache is currently open in the state.
 
static void closeAnyOpen (SoState *state)
 Closes any open cache.
 
static void invalidate (SoState *state)
 Invalidate any open caches.
 
- Static Public Member Functions inherited from SoElement
static SoType getClassTypeId ()
 Returns type identifier for SoElement class.
 
- Static Public Member Functions inherited from SoTypedObject
static SoType getClassTypeId ()
 Returns the type identifier for this class.
 

Friends

class SoElement
 

Detailed Description

Stores the most recently opened cache.

This element stores the most recently opened cache.

SEE ALSO

SoSeparator, SoRenderList

Definition at line 77 of file SoCacheElement.h.

Member Function Documentation

◆ anyOpen()

static SbBool SoCacheElement::anyOpen ( SoState state)
static

Returns TRUE if any cache is currently open in the state.

◆ closeAnyOpen()

static void SoCacheElement::closeAnyOpen ( SoState state)
static

Closes any open cache.

◆ getCache()

SoCache * SoCacheElement::getCache ( ) const
inline

Returns the cache stored in an instance.

This may be NULL.

Definition at line 90 of file SoCacheElement.h.

◆ getClassStackIndex()

static int SoCacheElement::getClassStackIndex ( )
static

Returns the stack id for this element.


◆ getClassTypeId()

static SoType SoCacheElement::getClassTypeId ( )
static

Returns the type identifier for this class.


◆ getNextCacheElement()

SoCacheElement * SoCacheElement::getNextCacheElement ( ) const
inline

Returns the next cache element in the stack.

Definition at line 116 of file SoCacheElement.h.

◆ invalidate()

static void SoCacheElement::invalidate ( SoState state)
static

Invalidate any open caches.

This is called by nodes that should not be cached.

◆ pop()

virtual void SoCacheElement::pop ( SoState state,
const SoElement prevTopElement 
)
virtual

Overrides this method to unref cache.

Reimplemented from SoElement.

◆ push()

virtual void SoCacheElement::push ( SoState state)
virtual

push to save dependencies list

Reimplemented from SoElement.

◆ set()

static void SoCacheElement::set ( SoState state,
SoCache cache 
)
static

Sets cache in element accessed from state.

Friends And Related Symbol Documentation

◆ SoElement

friend class SoElement
friend

Definition at line 358 of file SoCacheElement.h.


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