55#ifndef  _SO_CACHE_ELEMENT_ 
   56#define  _SO_CACHE_ELEMENT_ 
  133    static bool         invalidated;            
 
 
#define SoEXTENDER
Provide inline template functions for abs, swap, min, max, and clamp.
 
#define INVENTOR_API
Disable some annoying warnings on MSVC 6.
 
#define SO_ELEMENT_HEADER(className)
This one is for non-abstract element classes.
 
Element that stores the most recently opened cache.
 
static void invalidate(SoState *state)
Invalidate any open caches.
 
SoCacheElement * getNextCacheElement() const
Returns the next cache element in the stack.
 
static void initClass()
Initializes the SoCacheElement class.
 
virtual ~SoCacheElement()
 
static bool anyOpen(SoState *state)
Returns TRUE if any cache is currently open in the state.
 
virtual void pop(SoState *state, const SoElement *prevTopElement)
Overrides this method to unref cache.
 
static void addElement(SoState *state, const SoElement *elt)
Adds the given element to the elements used lists of all currently open caches in the state.
 
virtual SoElement * copyMatchInfo() const
Copy method prints error and returns NULL; see comment above.
 
static bool setInvalid(bool newValue)
Sets invalidated bit, and returns its old value.
 
static void addCacheDependency(SoState *state, SoCache *cache)
Adds a dependency on the given cache to all currently open caches in the state.
 
static SoCache * getCurrentCache(SoState *state)
returns the current cache, from the top of the stack.
 
static void set(SoState *state, SoCache *cache)
Sets cache in element accessed from state.
 
virtual bool matches(const SoElement *elt) const
Overrides this method to print an error message and return FALSE.
 
virtual void init(SoState *state)
Initializes element.
 
SoCache * getCache() const
Returns the cache stored in an instance. This may be NULL.
 
This is the abstract base class for all state elements.
 
SoElement * getNextInStack() const
Returns next instance in specific element stack.
 
An SoState collects and holds state while traversing a scene graph.
 
SoElement * getElementNoPush(int stackIndex) const
Internal-only, dangerous method that returns a writeable element without checking for state depth and...