Open Inventor Reference
SoColorPacker Class Reference

This class is meant to be used by all property nodes that set either a diffuse color or transparency in the lazy element. More...

#include <Inventor/elements/SoLazyElement.h>

Public Member Functions

 SoColorPacker ()
 Constructor, makes a colorPacker with NULL packedColor pointer:
 
 ~SoColorPacker ()
 destructor, deletes packed color array
 
uint32_tgetPackedColors () const
 
bool diffuseMatch (SbNodeIdType nodeId)
 
bool transpMatch (SbNodeIdType nodeId)
 
void setNodeIds (SbNodeIdType diffNodeId, SbNodeIdType tNodeId)
 
int32_t getSize ()
 
void reallocate (int32_t size)
 

Detailed Description

It maintains a cache of the current diffuse color and transparency in a packed color array.

Definition at line 406 of file SoLazyElement.h.

Constructor & Destructor Documentation

◆ SoColorPacker()

SoColorPacker::SoColorPacker ( )

◆ ~SoColorPacker()

SoColorPacker::~SoColorPacker ( )

Member Function Documentation

◆ diffuseMatch()

bool SoColorPacker::diffuseMatch ( SbNodeIdType  nodeId)
inline

Definition at line 417 of file SoLazyElement.h.

◆ getPackedColors()

uint32_t * SoColorPacker::getPackedColors ( ) const
inline

Definition at line 414 of file SoLazyElement.h.

◆ getSize()

int32_t SoColorPacker::getSize ( )
inline

Definition at line 426 of file SoLazyElement.h.

◆ reallocate()

void SoColorPacker::reallocate ( int32_t  size)

◆ setNodeIds()

void SoColorPacker::setNodeIds ( SbNodeIdType  diffNodeId,
SbNodeIdType  tNodeId 
)
inline

Definition at line 423 of file SoLazyElement.h.

◆ transpMatch()

bool SoColorPacker::transpMatch ( SbNodeIdType  nodeId)
inline

Definition at line 420 of file SoLazyElement.h.


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