- Timestamp:
- Sep 21, 2011 2:33:59 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/blt4/packages/vizservers/vtkvis/RpPseudoColor.cpp
r2542 r2550 10 10 #include <vtkDataSet.h> 11 11 #include <vtkPointData.h> 12 #include <vtkCellData.h> 12 13 #include <vtkDataSetMapper.h> 13 14 #include <vtkUnstructuredGrid.h> … … 235 236 case COLOR_BY_VECTOR_MAGNITUDE: { 236 237 _dsMapper->ScalarVisibilityOn(); 237 _dsMapper->SetScalarModeToUsePointFieldData();238 238 if (ds->GetPointData() != NULL && 239 239 ds->GetPointData()->GetVectors() != NULL) { 240 _dsMapper->SetScalarModeToUsePointFieldData(); 240 241 _dsMapper->SelectColorArray(ds->GetPointData()->GetVectors()->GetName()); 242 } else if (ds->GetCellData() != NULL && 243 ds->GetCellData()->GetVectors() != NULL) { 244 _dsMapper->SetScalarModeToUseCellFieldData(); 245 _dsMapper->SelectColorArray(ds->GetCellData()->GetVectors()->GetName()); 241 246 } 242 247 if (_lut != NULL) { … … 248 253 case COLOR_BY_VECTOR_X: 249 254 _dsMapper->ScalarVisibilityOn(); 250 _dsMapper->SetScalarModeToUsePointFieldData();251 255 if (ds->GetPointData() != NULL && 252 256 ds->GetPointData()->GetVectors() != NULL) { 257 _dsMapper->SetScalarModeToUsePointFieldData(); 253 258 _dsMapper->SelectColorArray(ds->GetPointData()->GetVectors()->GetName()); 259 } else if (ds->GetCellData() != NULL && 260 ds->GetCellData()->GetVectors() != NULL) { 261 _dsMapper->SetScalarModeToUseCellFieldData(); 262 _dsMapper->SelectColorArray(ds->GetCellData()->GetVectors()->GetName()); 254 263 } 255 264 if (_lut != NULL) { … … 261 270 case COLOR_BY_VECTOR_Y: 262 271 _dsMapper->ScalarVisibilityOn(); 263 _dsMapper->SetScalarModeToUsePointFieldData();264 272 if (ds->GetPointData() != NULL && 265 273 ds->GetPointData()->GetVectors() != NULL) { 274 _dsMapper->SetScalarModeToUsePointFieldData(); 266 275 _dsMapper->SelectColorArray(ds->GetPointData()->GetVectors()->GetName()); 276 } else if (ds->GetCellData() != NULL && 277 ds->GetCellData()->GetVectors() != NULL) { 278 _dsMapper->SetScalarModeToUseCellFieldData(); 279 _dsMapper->SelectColorArray(ds->GetCellData()->GetVectors()->GetName()); 267 280 } 268 281 if (_lut != NULL) { … … 274 287 case COLOR_BY_VECTOR_Z: 275 288 _dsMapper->ScalarVisibilityOn(); 276 _dsMapper->SetScalarModeToUsePointFieldData();277 289 if (ds->GetPointData() != NULL && 278 290 ds->GetPointData()->GetVectors() != NULL) { 291 _dsMapper->SetScalarModeToUsePointFieldData(); 279 292 _dsMapper->SelectColorArray(ds->GetPointData()->GetVectors()->GetName()); 293 } else if (ds->GetCellData() != NULL && 294 ds->GetCellData()->GetVectors() != NULL) { 295 _dsMapper->SetScalarModeToUseCellFieldData(); 296 _dsMapper->SelectColorArray(ds->GetCellData()->GetVectors()->GetName()); 280 297 } 281 298 if (_lut != NULL) {
Note: See TracChangeset
for help on using the changeset viewer.