Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ParaView ParaView
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,859
    • Issues 1,859
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 96
    • Merge requests 96
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • ParaView
  • ParaViewParaView
  • Issues
  • #14189
Closed
Open
Created Jul 24, 2013 by Kitware Robot@kwrobotOwner

vtkScalarsToColors::SetAnnotations(...) does not update correctly.

This issue was created automatically from an original Mantis Issue. Further discussion may take place here.


If vtkScalarsToColors::SetAnnotations(..,...) is called with certain arrays, and those array are later changed from code outside vtkScalarsToColors, vtkScalarsToColors never realizes the change. Calling SetAnnotations(..) again has no effect.

e.g.

vtkVariantArray* foo=... vtkStringArray* bar=...

/// fill values

stc->SetAnnotations(foo, bar);

/// Render/Update the LUT. Annotations shown/used as expected

/// change values in foo and bar

stc->SetAnnnotations(foo, bar);

/// Render/Update the LUT. Annotations won't be changed, it will still /// use the old values. DOing the following overcomes the issue:

stc->SetAnnnotations(NULL, NULL); stc->SetAnnnotations(foo, bar);

Edited Mar 23, 2021 by Utkarsh Ayachit
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking