1. 01 Nov, 2013 1 commit
  2. 10 May, 2013 1 commit
  3. 25 Mar, 2013 1 commit
    • David C. Lonie's avatar
      Restore ability to scale gl2ps linewidth/pointsize. · 6643a930
      David C. Lonie authored
      The functions:
      
      static void vtkGL2PSExporter::SetGlobalLineWidthFactor(float);
      static void vtkGL2PSExporter::SetGlobalPointSizeFactor(float);
      
      were removed during the GL2PS rewrite. This patch restores the
      functionality by adding LineWidthFactor and PointSizeFactor ivars to
      vtkGL2PSExporter and the associated setters:
      
      void vtkGL2PSExporter::SetLineWidthFactor(float)
      void vtkGL2PSExporter::SetPointSizeFactor(float)
      
      These attributes are specific to the vtkGL2PSExporter instances, while
      the old implementation stored them in global variables.
      
      A vtkOpenGLGL2PSHelper is added to RenderingOpenGL that fakes the
      GL2PS function calls needed to update line width, point size, and
      stipple state. The public static methods are called from the rendering
      code when the GL state is changed to inform GL2PS of the change. The
      vtkOpenGLGL2PSHelper class is used to update GL2PS without introducing
      a dependency on vtkgl2ps to vtkRenderingOpenGL.
      
      The TestContextGL2PS unit test is modified to ensure that 1.0 scaling
      factors are used.
      
      The vtkGL2PSContextDevice::StippleOn was not used, and is removed in
      this commit.
      
      Change-Id: Ia367211848f69ffdb093fceeb9baa029435a20d0
      6643a930
  4. 23 Oct, 2012 1 commit
    • David C. Lonie's avatar
      Cleanup the GL2PS export private API. · c8dc3927
      David C. Lonie authored
      * Make the render window accessible from within GL2PSUtilities during
        export.
      * Move Draw3DPath from GL2PSExporter to GL2PSUtilities.
      * Minor changes to private API function arguments.
      * Generalize code for projecting points from world coordinates to GL2PS
        device space.
      
      Change-Id: I358b5e0bfeb7bedee5565a0855dcbba913ecc558
      c8dc3927
  5. 04 Oct, 2012 2 commits
  6. 29 Sep, 2012 1 commit
    • David Gobbi's avatar
      Deprecate vtkColor::Red() getter in favor of GetRed() etc. · 5766dc1d
      David Gobbi authored
      The Red(), Green(), Blue() methods don't follow the usual naming pattern.
      If future wrappers see SetRed() and GetRed() methods, they can infer
      the existence of a property called "Red", but if a method called "Red()"
      already exists, this creates an ambiguity that the wrappers will have
      to deal with if they do property-based wrapping.
      
      Change-Id: I8a5fa13074512bf7b06e353a5fa7b73efe6ce039
      5766dc1d
  7. 13 Aug, 2012 1 commit
  8. 31 Jul, 2012 1 commit
    • David C. Lonie's avatar
      Update vtkGL2PSExporter, add Rendering/GL2PS module · 82e58fc1
      David C. Lonie authored
      * Fixed bitmap rasterization.
      * Added ability to exclude specific 3D props from the rasterization
        process, if enabled.
      * Improved support for text rendering.
      * Added method to vtkRenderWindow to collect all visible
        vtkActor2D objects that are vtk[Math]TextActors or use a
        vtkTextMapper.
      * Add support for Context2D drawings
      * Add CMake/CompareFileMD5.cmake script to compare postscript files
      * Remove old GL2PSExporter python test
      * Modify gl2ps sources to disable writing timestamps (prevents
        useful MD5 hashing for regression tests)
      * A static string is used as the image title by default.
      * Add vtkGL2PSUtilities, a collection of static functions that
        interact with GL2PS to render vtk objects.
      * Add a gl2psGetFileFormat() function to the bundled gl2ps library.
      
      Change-Id: Ia6fafc8e4d0a49bd9fdbecf32f43925a0aab7050
      82e58fc1