| View Issue Details [ Jump to Notes ] | [ Print ] | ||||||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||||||
| 0001566 | Old ParaView Bugs | public | 2005-02-02 10:37 | 2009-12-09 14:52 | |||||||||
| Reporter | John Greenfield | ||||||||||||
| Assigned To | Berk Geveci | ||||||||||||
| Priority | low | Severity | major | Reproducibility | always | ||||||||
| Status | assigned | Resolution | open | ||||||||||
| Platform | OS | OS Version | |||||||||||
| Summary | 0001566: SNL: Save session doesn't save volume render color | ||||||||||||
| Description | 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 { .... | ||||||||||||
| Tags | No tags attached. | ||||||||||||
| Attached Files | |||||||||||||
| Relationships | |
| Relationships |
| Notes | |
| There are no notes attached to this issue. |
| Notes |
| Issue History | |||
| Date Modified | Username | Field | Change |
| Issue History |
| Copyright © 2000 - 2018 MantisBT Team |