1. 24 Nov, 2014 1 commit
  2. 27 Sep, 2014 1 commit
    • Ken Martin's avatar
      Fix otherPrint and TestEmptyInput tests · f5a7a1a8
      Ken Martin authored
      There were a lot of abstract classes defined in Rendering/Core or
      Rendering/Volume that the OpenGL2 backend has not implemented yet.
      This causes a crach whenever such a class is instantiated as is
      done by some of the tests. The fix is to either remove or provide
      implementations for these classes. For the volme code this patch adds
      a VolumeOpenGL2 directory which will be where the new/converted
      volume rendering implementations will go.
      
      The other big piece is the painters. As we are not/can not support that API
      the classes were moved to OpenGL. The excpetion is the PainterDeviceAdapter
      which is part of RenderWindow. When building with OpenGL2 that class is
      treated in RenderWindow as a plain vtkObject that does nothing.
      
      vtkSmartVolumeMapper is not currenty built by OpenGL2 but could be if we
      are willing to add a bunch of ifdefs. The basic approach is there already
      in the class, just need to add a bunch more if we want to have that in the
      short term prior to the new GPU mapper being completed.
      
      This patch includes some other fixes that were required to get the tests to
      pass. Generally related to missing file properties or extra includes that
      were not needed.
      
      Change-Id: Id41db2d90526c109b1acb7442d99d8c2371cc396
      f5a7a1a8
  3. 10 Jul, 2014 2 commits
  4. 09 Jul, 2014 1 commit
    • Ben Boeckel's avatar
      vtkCompositePolyDataMapper2: cache opacity check · 43d7a64d
      Ben Boeckel authored
      There is a report[1] that this method takes excessive time in newer
      versions. Cache the opacity check based on the input's modified time.
      
      Change-Id: Ia2e737dc4aca2b1d0d1dc9ed33440b0e817c3c31
      43d7a64d
  5. 02 May, 2013 1 commit
    • Kyle Lutz's avatar
      Refactoring code to set color/opacity/visibility for blocks. · 52fd8ad8
      Kyle Lutz authored
      This commit refactors some of the code added in recent weeks to add ability for
      users to set display paramaters for blocks within a composite dataset. This
      commit additionally adds support for changing block opacity.
      
      Blocks colors/opacities can also be overridden when using scalar coloring.
      The only issue is when depth-peeling gets used. In that case, point-data coloring
      with texture (i.e. using interpolate scalars before mapping) results in color
      bleeds. We need to dig into the depth peeling code to address that issue.
      
      Change-Id: I2c86912b45bc0516dc4dc726df9448e0569c8312
      52fd8ad8
  6. 05 Apr, 2013 1 commit
  7. 07 Mar, 2013 1 commit
    • Kyle Lutz's avatar
      Only allow selection on visible blocks · 82aee804
      Kyle Lutz authored
      This updates the composite poly data mapper to only allow
      selections for visible blocks.
      
      Change-Id: Ib971062717dcb056e65f0adc42ff012d9892c0bf
      82aee804
  8. 06 Feb, 2013 1 commit
    • Kyle Lutz's avatar
      Add composite data display attributes · 6de46c18
      Kyle Lutz authored
      This adds new functionality to specify renderering attributes
      for specific blocks in a multi-block dataset.
      
      This also updates the vtkCompositePainter to make use of the
      composite data attributes if available.
      
      Change-Id: I3240564f2570ab41530421aefd1a3bb77fbfa628
      6de46c18
  9. 09 Apr, 2012 1 commit
    • 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
  10. 21 Feb, 2012 1 commit
    • Utkarsh Ayachit's avatar
      Make test for tranlucency more robust. · f0d13c94
      Utkarsh Ayachit authored
      When using direct scalar array mapping (without LUT), test the scalar ranges to
      correctly determine if the rendering is translucent or not.
      
      Also cleaned up the vtkActor::GetIsOpaque() test cases.
      Reorganized the code to be a bit less error prone.
      
      Change-Id: I006ef61122c4781d627356e90d77aabd0d2b231e
      f0d13c94
  11. 12 Jan, 2012 1 commit
    • Utkarsh Ayachit's avatar
      Add support for scalar opacity when scalars are no being mapped. · 74a6ad91
      Utkarsh Ayachit authored
      When scalar coloring, if the mapper decides that it can directly render the
      input scalar array as RGBA, or LA etc., then the mapper should use the opacity
      specified in the scalar array for rendering. However, that was not the case. The
      mappper simply ignored the scalar opacity.
      
      This patch fixes the issue when not mapping scalars. It's possible that when
      mapping scalars, the LUT would return a range for alpha. That case is not
      handled by this.
      74a6ad91
  12. 31 Aug, 2010 3 commits
  13. 20 May, 2010 1 commit
    • Mark Olesen's avatar
      Remove vtk(Cxx|Type)RevisionMacro · ecbbf7f7
      Mark Olesen authored
      The CVS $Revision$ keyword replacement will no longer maintain these
      macros automatically.  They were used only to implement CollectRevisions
      and vtkObjectBase::PrintRevisions, an API that was never used.
      
      Automated as follows:
      
        pass 0:
        catch templates
        ---------------
        $ git grep 'vtk\(Cxx\|Type\)RevisionMacro' | grep '<'
      
        pass 1:
        main changes
        ---------------
        $ git grep -l '^vtkCxxRevisionMacro' | while read file; do
          echo "$file" 1>&2
          perl -i -ne 'print unless (/^vtkCxxRevisionMacro/ and /\)/)' $file
        done
        $ git grep -l -e 'vtkTypeRevisionMacro(' | while read file; do
          echo "$file" 1>&2
          perl -i -pe 's/vtkTypeRevisionMacro/vtkTypeMacro/g' $file
        done
      
        pass 2:
        verify
        ---------------
        $ git grep 'vtk\(Cxx\|Type\)RevisionMacro'
      
      Fixed multi-line vtkCxxRevisionMacro and templates by hand.
      ecbbf7f7
  14. 23 Apr, 2010 1 commit
    • Mark Olesen's avatar
      Remove vtk(Cxx|Type)RevisionMacro · 19c55e0e
      Mark Olesen authored
      The CVS $Revision$ keyword replacement will no longer maintain these
      macros automatically.  They were used only to implement CollectRevisions
      and vtkObjectBase::PrintRevisions, an API that was never used.
      
      Automated as follows:
      
        pass 0:
        catch templates
        ---------------
        $ git grep 'vtk\(Cxx\|Type\)RevisionMacro' | grep '<'
      
        pass 1:
        main changes
        ---------------
        $ git grep -l '^vtkCxxRevisionMacro' | while read file; do
          echo "$file" 1>&2
          perl -i -ne 'print unless (/^vtkCxxRevisionMacro/ and /\)/)' $file
        done
        $ git grep -l -e 'vtkTypeRevisionMacro(' | while read file; do
          echo "$file" 1>&2
          perl -i -pe 's/vtkTypeRevisionMacro/vtkTypeMacro/g' $file
        done
      
        pass 2:
        verify
        ---------------
        $ git grep 'vtk\(Cxx\|Type\)RevisionMacro'
      
      Fixed multi-line vtkCxxRevisionMacro and templates by hand.
      19c55e0e
  15. 17 Jun, 2009 1 commit
  16. 18 Jul, 2008 2 commits
  17. 14 Jul, 2008 1 commit
    • Francois Bertel's avatar
      BUG:Fixed double *GetBounds() on vtkAbstractMapper3D subclasses. In... · 11e0f703
      Francois Bertel authored
      BUG:Fixed double *GetBounds() on vtkAbstractMapper3D subclasses. In vtkAbstractMapper3D, GetCenter() and GetLength() call GetBounds and rely on the side effect that it will update this->Bounds, the subclasses implementations were not changing this->Bounds to uninitialized (1,-1,1,-1,1,-1) and were returning some arbitrary (-1,1,-1,1,-1,1) valid bounds instead when the input is null. It could be problematic if the scene has one mapper with a valid input with bounds out of (-1,1,-1,1-1,1) and another mapper with an empty input. Fixed another bug in vtkCompositePolyDataMapper2.cxx where input can be used before checking it is not null.
      11e0f703
  18. 15 Feb, 2008 1 commit
  19. 10 Jan, 2008 2 commits
    • Utkarsh Ayachit's avatar
      BUG: Fixed PrintSelf defect. · cda7f829
      Utkarsh Ayachit authored
      cda7f829
    • Utkarsh Ayachit's avatar
      BUG: Fixes BUG #2809. vtkPainter now passes along a vtkDataObject. Restructured · b8556888
      Utkarsh Ayachit authored
      the painter hierarchy to make those painters that don't really use polydata to
      be subclasses of vtkPainter (they were made subclasses of vtkPolyDataPainter so
        that they could pass the polydata along the pipeline).
      
      ENH: Added new vtkMultiGroupPolyDataMapper2 and vtkCompositePainter for
      rendering composite datasets without using multiple mappers.
      vtkMultiGroupPolyDataMapper2 will create a single display list for rendering all
      blocks when display lists are enabled.
      b8556888