MantisBT - Old ParaView Bugs
View Issue Details
0001566Old ParaView Bugs public2005-02-02 10:372009-12-09 14:52
John Greenfield 
Berk Geveci 
lowmajoralways
assignedopen 
0001566: SNL: Save session doesn't save volume render color
When "Volume Rendering" is selected as the representation in the Display tab of a source in paraview and the session state is saved. When you load that session file back in, the source in question is incorrectly colored by a different variable (in fact the colormap buttons come up instead of the volume rendering color button).

This bug affects the Lookmarks feature in paraview.

Eric Stanton believes the fix involves adding:

vtkGetMacro(VolumeRenderMode,int);

to vtkPVDisplayGUI.h. Then, in vtkPVSource::SaveStateDisplay() add a check for whether we are in volume render mode or not and write out the command accordingly:


//----------------------------------------------------------------------
------
void vtkPVSource::SaveStateDisplay(ofstream *file) {
// Set the color map here for simplicity.
if (this->PVColorMap)
{
if (this->GetPartDisplay()->GetColorField() ==
vtkDataSet::POINT_DATA_FIELD)
{
if(this->GetPVOutput()->GetVolumeRenderMode())
{
*file << "[$kw(" << this->GetTclName()
<< ") GetPVOutput] VolumeRenderPointField {"
<< this->PVColorMap->GetArrayName() << "} "
<< this->PVColorMap->GetNumberOfVectorComponents() << endl;
}
else
{
*file << "[$kw(" << this->GetTclName()
<< ") GetPVOutput] ColorByPointField {"
<< this->PVColorMap->GetArrayName() << "} "
<< this->PVColorMap->GetNumberOfVectorComponents() << endl;
}
}
if (this->GetPartDisplay()->GetColorField() ==
vtkDataSet::CELL_DATA_FIELD)
{
if(this->GetPVOutput()->GetVolumeRenderMode())
{
*file << "[$kw(" << this->GetTclName()
<< ") GetPVOutput] VolumeRenderCellField {"
<< this->PVColorMap->GetArrayName() << "} "
<< this->PVColorMap->GetNumberOfVectorComponents() << endl;
}
else
{
*file << "[$kw(" << this->GetTclName()
<< ") GetPVOutput] ColorByCellField {"
<< this->PVColorMap->GetArrayName() << "} "
<< this->PVColorMap->GetNumberOfVectorComponents() << endl;
}
}
}
else
{

....
No tags attached.
Issue History

There are no notes attached to this issue.