Class to make storing and comparing state quick and easy.
vtkStateStorage is just a thin wrapper around std::vector<unsigned char> It is best to use this class as an ivar so that allocs do not happen too often.
Example usage:
this->TempState.Clear();
this->TempState.Append(act->GetProperty()->GetMTime(), "property mtime");
this->TempState.Append(
this->CurrentInput ? this->CurrentInput->GetMTime() : 0, "input mtime");
this->TempState.Append(
act->GetTexture() ? act->GetTexture()->GetMTime() : 0, "texture mtime");
if (this->VBOBuildState != this->TempState)
{
this->VBOBuildState = this->TempState;
do something...
}
Definition at line 129 of file vtkStateStorage.h.