1. 18 Dec, 2014 2 commits
  2. 17 Dec, 2014 2 commits
  3. 16 Dec, 2014 2 commits
    • Dave DeMarle's avatar
      COMP: fix a valgrind leak in new test · 7bcf2313
      Dave DeMarle authored
      Change-Id: I2ef4a1643fee0e7ef8d10cd49c398d2128e020b7
      7bcf2313
    • Cory Quammen's avatar
      Added previous signature back for MapScalars() method · dafe5a0b
      Cory Quammen authored
      Even though the MapScalars() method is designated an internal method
      in vtkScalarsToColors and vtkDiscretizableColorTransferFunction
      classes, backwards compatibily for outside classes that override this
      method was broken by a signature change for the method in commit
      94498364. Hat tip to Marcus Hanwell
      for identifying the problem with the previous commit and suggesting
      the fix.
      
      Change-Id: I78c05ae4041bb07c9ec3978c4e6cc6e80433d871
      dafe5a0b
  4. 15 Dec, 2014 1 commit
  5. 13 Dec, 2014 1 commit
    • Ken Martin's avatar
      Fix some release graphics resource issues · 5c1c4b19
      Ken Martin authored
      ParaView IceT does a WindowRemap when using tile display. That
      means everythgin has to work with a new window/context so it
      identifies a bunch of release graphics resource issues. This
      patch fixes a bunch of them. Mostly minor changes the one
      large change is to make ReleaseGraphicsResources in Renderer
      public like it is for every other class. This is the way it
      should be and the original protected method was a mistake from
      way way back.  Making it public save us from doing the
      
      SetRenderWindow(NULL)
      SetRenderWindow(this)
      
      hack that we have been using to free up resources in the
      renderer since we could nto call the protected method.
      
      Change-Id: If31406fa9425417d240311aac110c82409637163
      5c1c4b19
  6. 12 Dec, 2014 1 commit
    • Cory Quammen's avatar
      Enable coloring by indexed lookup for vtkStringArrays · 94498364
      Cory Quammen authored
      This change makes it possible to map vtkStringArrays to colors using
      indexed lookup mode. The vtkStringArrays may be associated with
      points, cells, or neither (field data). A slew of changes were
      required to give this capability:
      
      - Changed signature of vtkScalarsToColors::MapScalars(...) and
        vtkDiscretizableColorTransferFunction::MapScalars(...)  to take a
        vtkAbstractArray instead of a vtkDataArray. This enables mapping
        non-vtkDataArray arrays, such as vtkStringArrays. These changes are
        backwards compatible because vtkAbstractArray is the parent class of
        vtkDataArray.
      
      - Changed vtkLookupTable::MapScalarsThroughTable2(...) to handle
        vtkStringArrays.
      
      - Changed vtkColorTransferFunction::MapScalarsThroughTable2(...) to handle
        vtkStringArrays.
      
      - Added vtkAbstractMapper::GetAbstractScalars(...) that returns a data
        array as a vtkAbstractArray - needed to retrieve vtkStringArray
        scalars.
      
      - Added some error reporting when unhandled array type is encountered
        in vtkScalarsToColors::MapScalarsThroughTable2.
      
      - Enabled use of vtkStringArrays for coloring in the surface mappers.
      
      - Added some tests for mapping vtkStringArrays with
        vtkColorTransferFunction and vtkDiscretizableColorTransferFunction.
      
      - Added some tests for coloring objects by vtkStringArrays in cell data
        and point data.
      
      - Added logic to vtkMapper and vtkPolyDataMapper2D that generates a
        reasonable default lookup table when a vtkStringArray or other
        non-numeric array is selected for coloring by scalars. This requires
        making the vtkRenderingCore module depend on vtkCommonColor. Added
        tests for this feature.
      
      Change-Id: I91e2e451217139a7daabd7f4a63de0b8ff707ad4
      94498364
  7. 11 Dec, 2014 2 commits
    • Cory Quammen's avatar
      Handle coloring by field data · a07731a2
      Cory Quammen authored
      Some level of support was previously available for coloring by field
      data, but this was restricted to drawing triangle strips. This patch
      adds another mode to coloring by field data that enables coloring the
      entire data set by a particular tuple in the field data. The field
      data tuple gets mapped through the color map, and that color is used
      to color the entire data set. The default behavior for triangle strips
      is retained by setting this tuple index to -1, the default value.
      
      The motivation for this change is to make it possible to color blocks
      in a multi-block dataset according to a value in that block's field
      data array, e.g., an initial condition, block ID, etc. Vector values
      (arrays with more than one component) are fully supported.
      
      Several other improvements were also made:
      
      - Added test for existing capability of coloring by field data.
      
      - Added test for coloring by tuple of field data.
      
      - Modified vtkMapper::GetScalarModeAsString() to return
        string for field data scalar mode.
      
      - Fixed vtkDataSetSurfaceFilter::UnstructuredGridExecute(...) and
        vtkUnstructuredGridGeometryFilter::RequestData(...)
        to pass field data through to output
      
      Change-Id: I0d97e84ec77e7ea01ca1b1350acce73cb6c4c15b
      a07731a2
    • Sean McBride's avatar
      Whitespace/spelling · c02f83d0
      Sean McBride authored
      Change-Id: I6371fd07ee079a2f1abbe48da4e9c9ac343ee226
      c02f83d0
  8. 10 Dec, 2014 2 commits
  9. 09 Dec, 2014 3 commits
  10. 08 Dec, 2014 3 commits
  11. 05 Dec, 2014 7 commits
  12. 04 Dec, 2014 3 commits
    • Ken Martin's avatar
      Fix a few issues with parallel passes in VTK · dd3801a1
      Ken Martin authored
      Fixes a number of runtime failures in OpenGL2 with these
      parallel passes.  Added a simple test to verify the code runs.
      
      Change-Id: I2bcd998ab013412f7ee89c5ee122e9a1108954c6
      dd3801a1
    • Dan Lipsa's avatar
      FIX: We don't select 2D annotations. · 8c7db600
      Dan Lipsa authored
      When trying to select a 2D annotation ParaView segfaults in
      vtkInternals::ConvertSelection. This segfault comes from
      GetPixelInformation when this->Convert returns the color of a pixel
      (instead of an actorid) for a 2D annotation so info.Prop is set to NULL.
      
      Change-Id: Ia764ab7ff88f54dcf82040cbd64ecbcab9365573
      8c7db600
    • Ken Martin's avatar
      Minor compile fix for ES · aca55423
      Ken Martin authored
      Change-Id: I171ac053ddb5198f6b647c5b5ab91c4456f9a1d0
      aca55423
  13. 03 Dec, 2014 2 commits
    • Sean McBride's avatar
      Only react to NSView frame changes if VTK itself created the NSView · fca2fd59
      Sean McBride authored
      Without this, VTK will change the size of the NSWindow, which apps
      that create their own NSView and NSWindow and merely use VTK to draw into
      them might not want/expect.
      
      Fixes a regression I added in I3eb86e9982caae464fffe1c8cfc19035a194ec27
      related to bug #14266.
      
      Also added a public getter for the ViewCreated flag.
      Also use getters in PrintSelf, since everything there was done getters.
      
      Change-Id: I13ede32d361f9b17e11b8b0b37ad1997a864bf40
      fca2fd59
    • Ken Martin's avatar
      Improve picking support in OpenGL2 · c1eac93b
      Ken Martin authored
      Point association picking was not implemented this patch
      adds that in. Also cell picking did not work when the input
      contained quads or higher vertex count polygons.  To address
      these issues the picking process needs to give the mapper an
      opporunity to map the index from the frame buffer back into
      a point id or cell id. Added amvirtual method in prop to
      do that and an implementation in OpenGLActor and
      OpenGLPolyDataMapper to properly map gl_PrimativeId in
      the correct point or cell id.
      
      Point picking was not tested in VTK so I added a test for
      that as well.
      
      Change-Id: If276e80ab3966646dd9f6f95fbc7734c006f000c
      c1eac93b
  14. 02 Dec, 2014 5 commits
  15. 01 Dec, 2014 1 commit
    • Ken Martin's avatar
      Add in support for OpenGL ES 3.0 · 8aef7c2b
      Ken Martin authored
      Make the build process use the opengl ES 3.0 header files if
      selected and modify the backend to enable more features when
      using ES 3.0. VAOs, FBOs, and instanced draw calls are enabled.
      
      There are still some changes to be made for textures probably and
      as with ES 2.0 only some modules have been tested/converted.
      
      Change-Id: If244dc5bc9295a86f98b032b3a21995336a8fb05
      8aef7c2b
  16. 28 Nov, 2014 3 commits