Changeset 6425 for vtkvis/branches
- Timestamp:
- Jul 18, 2016, 12:00:15 PM (8 years ago)
- Location:
- vtkvis/branches/1.8
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
vtkvis/branches/1.8
- Property svn:mergeinfo changed
/vtkvis/trunk merged: 4812,6408-6409
- Property svn:mergeinfo changed
-
vtkvis/branches/1.8/Molecule.cpp
r5836 r6425 105 105 setCulling(_atomProp->GetProperty(), true); 106 106 _atomProp->GetProperty()->EdgeVisibilityOff(); 107 _atomProp->GetProperty()->SetColor(_color[0], _color[1], _color[2]); 107 108 _atomProp->GetProperty()->SetEdgeColor(_edgeColor[0], _edgeColor[1], _edgeColor[2]); 108 109 _atomProp->GetProperty()->SetLineWidth(_edgeWidth); … … 170 171 strcmp(ds->GetPointData()->GetScalars()->GetName(), "element") != 0) { 171 172 WARN("No element array in dataset %s", _dataSet->getName().c_str()); 173 if (ds->GetPointData()->GetScalars() == NULL) { 174 _colorMode = COLOR_CONSTANT; 175 } else { 176 _colorMode = COLOR_BY_SCALAR; 177 } 178 _atomScaling = NO_ATOM_SCALING; 172 179 setColorMap(ColorMap::getDefault()); 173 if (_atomScaling != NO_ATOM_SCALING)174 _atomScaling = NO_ATOM_SCALING;175 180 } else { 176 181 TRACE("Using element default colormap"); … … 463 468 } 464 469 _lut->SetRange(r); 470 } else { 471 switch (mode) { 472 case COLOR_CONSTANT: 473 case COLOR_BY_SCALAR: 474 _lut->SetRange(_dataRange); 475 break; 476 case COLOR_BY_VECTOR_MAGNITUDE: 477 _lut->SetRange(_vectorMagnitudeRange); 478 break; 479 case COLOR_BY_VECTOR_X: 480 _lut->SetRange(_vectorComponentRange[0]); 481 break; 482 case COLOR_BY_VECTOR_Y: 483 _lut->SetRange(_vectorComponentRange[1]); 484 break; 485 case COLOR_BY_VECTOR_Z: 486 _lut->SetRange(_vectorComponentRange[2]); 487 break; 488 default: 489 break; 490 } 465 491 } 466 492 } -
vtkvis/branches/1.8/RenderServer.h
r6389 r6425 16 16 class Renderer; 17 17 18 #define VTKVIS_VERSION_STRING "1.8. 5"18 #define VTKVIS_VERSION_STRING "1.8.6" 19 19 20 20 #define MSECS_ELAPSED(t1, t2) \
Note: See TracChangeset
for help on using the changeset viewer.