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. More...
 
 ~SoNormalCache ()
 
void set (int numNormals, const SbVec3f *normals)
 Stores a list of normals in the cache. More...
 
int getNum () const
 Returns the number of normals and list of normals. More...
 
const SbVec3fgetNormals () const
 
- Public Member Functions inherited from SoCache
 SoCache (SoState *state)
 Constructor. More...
 
void ref ()
 Reference/unreference. More...
 
void unref (SoState *state=NULL)
 
void addElement (const SoElement *elt)
 Adds an element to elements-used list if not already there. More...
 
virtual void addCacheDependency (const SoState *state, SoCache *cache)
 Adds a dependency of this instance on another cache instance. More...
 
virtual bool isValid (const SoState *state) const
 Returns TRUE if cache is valid with respect to the given state. More...
 
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). More...
 
void invalidate ()
 Make this cache invalid. More...
 

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. More...
 
virtual ~SoCache ()
 Destructor. More...
 

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: