Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • VTK VTK
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 750
    • Issues 750
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 206
    • Merge requests 206
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • VTK
  • VTKVTK
  • Merge requests
  • !4520

[WIP]Quick demo of discrete color map

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Mathieu Westphal requested to merge mwestphal/vtk:11790_DiscreteScalarBar into master Jul 20, 2018
  • Overview 19
  • Commits 6
  • Pipelines 5
  • Changes 5

This MR add a UseStepsColors mode to the DiscretizableColorTransferFunction.

When using the mode, Midpoint and Sharpness are both set to 1.0 by default, ensuring a kind of "Step" color space.

When using this mode, the DiscretizableTransferFunction::Build method will ensure the last two point are the same color and will add a point to ensure that if needed. The duplicated point is added because when using a step function for the color, the color of the last point can not be seen, by adding a point before the last point with the same color, this color actually appears.

The duplicated point is then removed when switching back to ColorSpace mode.

The control point is also modifying the sharpness and midpoint of the color in order to get an interpolated color when adding a point, wich is more practical.

Edited Aug 14, 2018 by Mathieu Westphal
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: 11790_DiscreteScalarBar