Changeset 6425 for vtkvis/branches


Ignore:
Timestamp:
Jul 18, 2016, 12:00:15 PM (8 years ago)
Author:
ldelgass
Message:

Merge from vtkvis trunk, bump version

Location:
vtkvis/branches/1.8
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • vtkvis/branches/1.8

  • vtkvis/branches/1.8/Molecule.cpp

    r5836 r6425  
    105105            setCulling(_atomProp->GetProperty(), true);
    106106        _atomProp->GetProperty()->EdgeVisibilityOff();
     107        _atomProp->GetProperty()->SetColor(_color[0], _color[1], _color[2]);
    107108        _atomProp->GetProperty()->SetEdgeColor(_edgeColor[0], _edgeColor[1], _edgeColor[2]);
    108109        _atomProp->GetProperty()->SetLineWidth(_edgeWidth);
     
    170171            strcmp(ds->GetPointData()->GetScalars()->GetName(), "element") != 0) {
    171172            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;
    172179            setColorMap(ColorMap::getDefault());
    173             if (_atomScaling != NO_ATOM_SCALING)
    174                 _atomScaling = NO_ATOM_SCALING;
    175180        } else {
    176181            TRACE("Using element default colormap");
     
    463468            }
    464469            _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            }
    465491        }
    466492    }
  • vtkvis/branches/1.8/RenderServer.h

    r6389 r6425  
    1616class Renderer;
    1717
    18 #define VTKVIS_VERSION_STRING "1.8.5"
     18#define VTKVIS_VERSION_STRING "1.8.6"
    1919
    2020#define MSECS_ELAPSED(t1, t2) \
Note: See TracChangeset for help on using the changeset viewer.