View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001566Old ParaView Bugs public2005-02-02 10:372009-12-09 14:52
ReporterJohn Greenfield 
Assigned ToBerk Geveci 
PrioritylowSeveritymajorReproducibilityalways
StatusassignedResolutionopen 
PlatformOSOS Version
Summary0001566: SNL: Save session doesn't save volume render color
DescriptionWhen "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
{

....
TagsNo tags attached.
Attached Files

 Relationships

  Notes
There are no notes attached to this issue.

 Issue History
Date Modified Username Field Change


Copyright © 2000 - 2018 MantisBT Team