Open Inventor Reference
SoNormalCache Class Reference

Class SoNormalCache: More...

#include <Inventor/caches/SoNormalCache.h>

Inheritance diagram for SoNormalCache:
SoCache

Public Member Functions

 SoNormalCache (SoState *state)
 Constructor and destructor.
 
 ~SoNormalCache ()
 
void set (int numNormals, const SbVec3f *normals)
 Stores a list of normals in the cache.
 
int getNum () const
 Returns the number of normals and list of normals.
 
const SbVec3fgetNormals () const
 
- Public Member Functions inherited from SoCache
 SoCache (SoState *state)
 Constructor.
 
void ref ()
 Reference/unreference.
 
void unref (SoState *state=NULL)
 
void addElement (const SoElement *elt)
 Adds an element to elements-used list if not already there.
 
virtual void addCacheDependency (const SoState *state, SoCache *cache)
 Adds a dependency of this instance on another cache instance.
 
virtual bool isValid (const SoState *state) const
 Returns TRUE if cache is valid with respect to the given state.
 
const SoElementgetInvalidElement (const SoState *state) const
 Assuming isValid() returns FALSE, this will return the first element that is invalid (auto-caching uses this in its heuristic).
 
void invalidate ()
 Make this cache invalid.
 

Additional Inherited Members

- Protected Member Functions inherited from SoCache
virtual void destroy (SoState *state)
 Subclasses can use this to clean up just before they are deleted.
 
virtual ~SoCache ()
 Destructor.
 

Detailed Description

A normal cache stores a list of normals.

Definition at line 71 of file SoNormalCache.h.

Constructor & Destructor Documentation

◆ SoNormalCache()

SoNormalCache::SoNormalCache ( SoState state)

◆ ~SoNormalCache()

SoNormalCache::~SoNormalCache ( )

Member Function Documentation

◆ getNormals()

const SbVec3f * SoNormalCache::getNormals ( ) const
inline

Definition at line 83 of file SoNormalCache.h.

◆ getNum()

int SoNormalCache::getNum ( ) const
inline

Definition at line 82 of file SoNormalCache.h.

◆ set()

void SoNormalCache::set ( int  numNormals,
const SbVec3f normals 
)

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