1. 25 Jul, 2013 1 commit
  2. 18 Jun, 2013 1 commit
    • David C. Lonie's avatar
      Move scalar bar GL2PS special case handler from PV to VTK. · 9f33a74f
      David C. Lonie authored
      This patch moves the special handler code for scalar bars from paraview
      into VTK. The code was originally in PV as the PVScalarBar differed
      significantly from vtkScalarBar, but now that they share more of their
      implementations VTK can handle the export.
      
      Change-Id: Icf37d51f46ba2569db86da1125c5c0c4f247747f
      9f33a74f
  3. 04 Jun, 2013 1 commit
    • David Thompson's avatar
      Use the font scaling provided by vtkTextActor. · 47b6fa6e
      David Thompson authored
      This will increase the size of fonts used on displays
      with high pixel densities.
      
      Also, this changes the signature of vtkTextActor::GetBoundingBox()
      to take a vtkViewport. Since this is a new method for VTK6, it is
      better to fix it now; having it pass a NULL viewport pointer
      internally was causing crashes.
      
      Finally, vtkTextActor::SetConstrainedFontSize() should take font
      scaling into account.
      
      Change-Id: I3cc99f99798da96f5c8e9249538ba269216e302a
      47b6fa6e
  4. 28 May, 2013 2 commits
    • David Thompson's avatar
      Update the scalar bar build time. · 155b7f30
      David Thompson authored
      The BuildTime member is not being updated when the
      scalar bar layout is recalculated, causing layouts
      to be recomputed every time the bar is rendered.
      
      Change-Id: Ib5f8e69573383d2c7cf04ca9cfb18b70fbc40dcb
      155b7f30
    • David Thompson's avatar
      Update the scalar bar build time. · 118aa20a
      David Thompson authored
      The BuildTime member is not being updated when the
      scalar bar layout is recalculated, causing layouts
      to be recomputed every time the bar is rendered.
      
      Change-Id: I79615dfee885cf13b64370bd53dd6bc9485980cd
      118aa20a
  5. 28 Apr, 2013 1 commit
    • David Thompson's avatar
      Fix for subclasses overriding EditAnnotations. · cc42420f
      David Thompson authored
      The accounting done assumed that all annotations were
      contained in the lookup table, but this is not true when
      subclasses provide more. This was revealed by the
      ParaView version of the scalar bar actor, which adds
      min and max values as annotations on the continuous
      scalar bar.
      
      Change-Id: I6186f22ee9f29be889fc83522e67968688759922
      cc42420f
  6. 26 Apr, 2013 1 commit
  7. 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
  8. 25 Oct, 2012 2 commits
  9. 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
  10. 04 Sep, 2012 1 commit
  11. 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
  12. 24 Aug, 2012 1 commit
  13. 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
  14. 21 Aug, 2012 1 commit
  15. 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
  16. 09 Apr, 2012 2 commits
    • VTK Developers's avatar
      Remove trailing whitespace from all source files · 2d323fc4
      VTK Developers authored
      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
      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
  17. 07 Dec, 2011 1 commit
  18. 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
  19. 17 Nov, 2011 1 commit
  20. 16 Nov, 2011 4 commits
  21. 09 Nov, 2011 1 commit
  22. 08 Nov, 2011 2 commits
  23. 07 Nov, 2011 2 commits