1. 09 Apr, 2013 3 commits
    • David Thompson's avatar
      More adjustable scalar bar widget. · 3893b0be
      David Thompson authored
      Now the padding around text and the border can be adjusted.
      Also the relative amount of space taken up by the title and
      tick labels can be changed as can the thickness of the scalar bar.
      
      Change-Id: Ic66514a80feb0d2c81fd9daa67f743b9a619b529
      3893b0be
    • David Thompson's avatar
      Pad scalar-bar title to prevent ugly layout. · 07be3e42
      David Thompson authored
      Change-Id: I3f69aa027f2228470a31a47872a8ffd53637ced8
      07be3e42
    • David Thompson's avatar
      Use scalar annotations on interval-mode scalar bar. · 55cb7e11
      David Thompson authored
      This commit renders user-provided notes associated with specific
      scalar values on the interval-mode scalar bar. Previously, only
      the categorical mode rendered these annotations.
      
      Also, provide the scalar bar with an optional swatch
      to illustrate the color assigned to NaN values.
      
      Add an option to color leader lines from the scalar bar to
      the annotation labels by the corresponding scalar value.
      
      This commit also breaks the process of rebuilding the scalar bar
      into several virtual methods so that subclasses (particularly
      ParaView's `vtkPVScalarBarActor`) can reuse more of the base class
      functionality. The process is now separated into 2 phases: layout,
      where bounding boxes for scalar bar components are placed; and
      configuration, where actors are positioned and geometry is created.
      This includes some changes to text actor to support constrained
      placement and text size queries.
      
      Add a test for the new scalar bar options.
      There are now many more options controlling how the scalar bar behaves.
      In particular many settings interact with the way geometry is rendered:
      the lookup table may be indexed or not (thus tick marks may not be
      rendered); the orientation may be horizontal or vertical; annotations
      may be rendered or not; the NaN annotation may be omitted; leader lines
      to annotations may be colored by the scalar they annotate or by the label
      color; and the tick marks may precede or succeed the scalar bar.
      Also, we must test how empty labels are handled and how even vs odd
      numbers of labels affect placement (since the algorithm for placement
      behaves differently in these cases).
      
      We cannot perform a full factorial test, but do test independent
      configurations.
      
      Finally, this commit improves the performance of prominent value
      detection for primitive-type arrays (e.g., int, double) by avoiding
      the use of vtkVariant instances to hold the working set of distinct
      values during sampling.
      
      Change-Id: I852f9b497d5e6ab619d9d7b763f641c44e4869cf
      55cb7e11
  2. 25 Oct, 2012 2 commits
  3. 24 Sep, 2012 3 commits
    • David Thompson's avatar
      Layout vertical annotations top-to-bottom. · 8a0cf2b9
      David Thompson authored
      ... so that the left-to-right and top-to-bottom orders match.
      Without this change, the reading order of annotations does
      not satisfy the Priniple of Minimum Astonishment (at least
      for scripts with left-right and top-bottom transitivity; it's
      unclear whether Hebrew, Japanese, Chinese, or Arabic readers
      will feel good about this change -- among others).
      
      Change-Id: I05f6705d77cb3c8181deba92ab56ff31a12bc77c
      8a0cf2b9
    • David Thompson's avatar
      Add a GetBoundingBox method back to MathTextActor. · cf43281e
      David Thompson authored
      Now it inherits one from vtkTextActor.
      
      Change-Id: Ia178a932414d20cc8e704a3fbf16108d5440edf4
      cf43281e
    • David Thompson's avatar
      Fix horizontal label placement. · 153789d7
      David Thompson authored
      There were problems when the number of labels was even.
      
      Change-Id: Ia9339bfbde6d60cadccc3a2e447263def98d11c5
      153789d7
  4. 04 Sep, 2012 1 commit
  5. 27 Aug, 2012 1 commit
    • David Thompson's avatar
      Fix annotation label placement. · 22e64084
      David Thompson authored
      The previous test did not render the scalar bar with
      an even number of labels and missed a bug in the placement
      for that case; this fixes things and modifies the test
      to include multiple scalar bars with both even and odd
      numbers of labels.
      
      Change-Id: I09fb46fe7cbd19ec70f12a9969d2455d1453945c
      22e64084
  6. 24 Aug, 2012 1 commit
  7. 23 Aug, 2012 1 commit
    • David Thompson's avatar
      Fix warnings and move test. · afff227d
      David Thompson authored
      Moving the `IndexedLookup` test from `Interaction/Widgets` to
      `Rendering/Matplotlib` in order to avoid introducing unwanted
      module dependencies.
      
      Change-Id: I8a44d822f130a057c6eae03788d72fb5ac1e4365
      afff227d
  8. 21 Aug, 2012 1 commit
  9. 20 Aug, 2012 6 commits
    • David Thompson's avatar
      Leader lines tested. · 60a7a980
      David Thompson authored
      Fixes for empty annotation strings and for both
      TextPosition values (PrecedeScalarBar and SucceedScalarBar).
      
      Change-Id: I4cff86d1e38c222b8dfa7b2aeb1a2a26afef8842
      60a7a980
    • David Thompson's avatar
      Leader lines implemented. · a0645379
      David Thompson authored
      The only untested functionality is how the `TextPosition`
      setting interacts with label and leader placement.
      
      Change-Id: Ie93e8fe6fb260a990e3da55f03e7c451d8bdb897
      a0645379
    • David Thompson's avatar
      Label horizontal swatches properly. · 039e2574
      David Thompson authored
      Now both horizontal and vertical orientations are annotated
      properly in `IndexedLookup` mode.
      
      Change-Id: I4d2bcfecdd2b1bc8f72192a7f5706ac7167d4a67
      039e2574
    • David Thompson's avatar
      Better layout of text in vertical case. · d4c03f44
      David Thompson authored
      Now annotation text won't overlap.
      This requires an uncommitted change to vtkMathTextActor
      to properly compute bounding rectangles before the first render.
      
      Change-Id: I40eb512e4406fb83eae5933264fa72fe6498eda0
      d4c03f44
    • David Thompson's avatar
      Initial annotation labels. · c4255f1e
      David Thompson authored
      Labels are now allocated and displayed, but
      their positions are only computed for vertical layouts and
      overlap is not prevented. Leader lines are not rendered yet.
      
      Change-Id: I64ce46cac754dd5dd9b736605c60ec2fe7e79456
      c4255f1e
    • David Thompson's avatar
      Color swatches for categorical scalar bar. · e7f4e894
      David Thompson authored
      When a `vtkLookupTable` with `IndexedLookup` set to true
      is passed to `vtkScalarBarActor`, the scalar bar is not drawn.
      Instead, a set of distinct color swatches is rendered -- one
      for each annotated value stored in the lookup table.
      The labels stored with each annotation are not yet rendered.
      
      Change-Id: I3849e5bf99a58ae8884f4061336545781f7b3c65
      e7f4e894
  10. 09 Apr, 2012 2 commits
    • VTK Developers's avatar
      Remove trailing whitespace from all source files · 2d323fc4
      VTK Developers authored and Brad King's avatar Brad King committed
      Exclude ThirdParty, Utilities/MetaIO, and Utilities/KWSys as these
      are maintained outside VTK.
      
      Co-Author: Marcus D. Hanwell <marcus.hanwell@kitware.com>
      Co-Author: Chris Harris <chris.harris@kitware.com>
      Co-Author: Brad King <brad.king@kitware.com>
      2d323fc4
    • VTK Developers's avatar
      Modularize VTK tree layout · cdd4d6fd
      VTK Developers authored and Brad King's avatar Brad King committed
      Move source files from their former monolithic VTK location to their new
      location in modular VTK without modification.  This preserves enough
      information for "git blame -M" and "git log --follow" to connect
      modularized VTK files to their original location and history.
      
      Co-Author: Marcus D. Hanwell <marcus.hanwell@kitware.com>
      Co-Author: Chris Harris <chris.harris@kitware.com>
      Co-Author: Brad King <brad.king@kitware.com>
      Co-Author: Nikhil Shetty <nikhil.shetty@kitware.com>
      cdd4d6fd
  11. 07 Dec, 2011 1 commit
  12. 06 Dec, 2011 1 commit
    • Philippe Pébay's avatar
      Eliminated "Enhanced Mode" option. · a91c9a86
      Philippe Pébay authored
      NB: This means that now, only the enhanced mode, i.e., with
      improved title and label placements, is available.
      
      Change-Id: I269542eb96cf8e36a5ecb6aa11d43edbe7f43a21
      a91c9a86
  13. 17 Nov, 2011 1 commit
  14. 16 Nov, 2011 4 commits
  15. 09 Nov, 2011 1 commit
  16. 08 Nov, 2011 2 commits
  17. 07 Nov, 2011 7 commits
  18. 19 Sep, 2011 2 commits
    • Berk Geveci's avatar
      Replace SetInput etc. with SetInputData etc. · 4ea36770
      Berk Geveci authored
      Since the behaviour of SetInput changed - it no
      longer connects the pipeline but sets up the data
      object as the input -, it was decided to rename
      it to SetInputData. This includes similar methods
      such as AddInputData. This commit makes on
      sweeping change that compiles.
      4ea36770
    • Berk Geveci's avatar
      Made more progress · 56788e10
      Berk Geveci authored
      56788e10