<commit_before>/*=========================================================================

  Program:   Visualization Toolkit
  Module:    vtkOpenGLProjectedTetrahedraMapper.cxx

  Copyright (c) <NAME>, <NAME>, <NAME>
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/

#ifndef __vtkOpenGLGPUVolumeRayCastMapper_h
#define __vtkOpenGLGPUVolumeRayCastMapper_h

#include "vtkRenderingVolumeOpenGLNewModule.h" // For export macro

#include <vtkGPUVolumeRayCastMapper.h>

#include <vtkSetGet.h>

//----------------------------------------------------------------------------
class VTKRENDERINGVOLUMEOPENGLNEW_EXPORT vtkOpenGLGPUVolumeRayCastMapper :
  public vtkGPUVolumeRayCastMapper
{
  public:
    static vtkOpenGLGPUVolumeRayCastMapper* New();

    vtkTypeMacro(vtkOpenGLGPUVolumeRayCastMapper, vtkGPUVolumeRayCastMapper);
    void PrintSelf( ostream& os, vtkIndent indent );

  protected:
    vtkOpenGLGPUVolumeRayCastMapper();
    ~vtkOpenGLGPUVolumeRayCastMapper();

    // Description:
    // Delete OpenGL objects.
    // \post done: this->OpenGLObjectsCreated==0
    virtual void ReleaseGraphicsResources(vtkWindow *window);

    // Description:
    // Build vertex and fragment shader for the volume rendering
    void BuildShader(vtkRenderer* ren, vtkVolume* vol, int noOfComponents);

    // Description:
    // Rendering volume on GPU
    void GPURender(vtkRenderer *ren, vtkVolume *vol);

    // Description:
    // Not implemented
    virtual void PreRender(vtkRenderer* vtkNotUsed(ren),
                           vtkVolume* vtkNotUsed(vol),
                           double vtkNotUsed(datasetBounds)[6],
                           double vtkNotUsed(scalarRange)[2],
                           int vtkNotUsed(numberOfScalarComponents),
                           unsigned int vtkNotUsed(numberOfLevels)) {};

    // Description:
    // Empty implementation.
    virtual void RenderBlock(vtkRenderer* vtkNotUsed(ren),
                             vtkVolume* vtkNotUsed(vol),
                             unsigned int vtkNotUsed(level)) {};

    // Description:
    // Empty implementation.
    virtual void PostRender(vtkRenderer* vtkNotUsed(ren),
                            int vtkNotUsed(umberOfScalarComponents)) {};

    // Description:
    // Empty implementation.
    void GetReductionRatio(double vtkNotUsed(ratio)[3]) {};

    // Description:
    // Empty implementation.
    virtual int IsRenderSupported(vtkRenderWindow *vtkNotUsed(window),
                                  vtkVolumeProperty *vtkNotUsed(property))
      {
      return 1;
      }

    class vtkInternal;
    vtkInternal* Impl;
private:
    // Not implemented.
    vtkOpenGLGPUVolumeRayCastMapper(const vtkOpenGLGPUVolumeRayCastMapper&);

    // Not implemented.
    void operator=(const vtkOpenGLGPUVolumeRayCastMapper&);
};

#endif // __vtkOpenGLGPUVolumeRayCastMapper_h<commit_msg>For now set reduction ratio to 1.0<commit_after>/*=========================================================================

  Program:   Visualization Toolkit
  Module:    vtkOpenGLProjectedTetrahedraMapper.cxx

  Copyright (c) <NAME>, <NAME>, <NAME>
  All rights reserved.
  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.

     This software is distributed WITHOUT ANY WARRANTY; without even
     the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
     PURPOSE.  See the above copyright notice for more information.

=========================================================================*/

#ifndef __vtkOpenGLGPUVolumeRayCastMapper_h
#define __vtkOpenGLGPUVolumeRayCastMapper_h

#include "vtkRenderingVolumeOpenGLNewModule.h" // For export macro

#include <vtkGPUVolumeRayCastMapper.h>

#include <vtkSetGet.h>

//----------------------------------------------------------------------------
class VTKRENDERINGVOLUMEOPENGLNEW_EXPORT vtkOpenGLGPUVolumeRayCastMapper :
  public vtkGPUVolumeRayCastMapper
{
  public:
    static vtkOpenGLGPUVolumeRayCastMapper* New();

    vtkTypeMacro(vtkOpenGLGPUVolumeRayCastMapper, vtkGPUVolumeRayCastMapper);
    void PrintSelf( ostream& os, vtkIndent indent );

  protected:
    vtkOpenGLGPUVolumeRayCastMapper();
    ~vtkOpenGLGPUVolumeRayCastMapper();

    // Description:
    // Delete OpenGL objects.
    // \post done: this->OpenGLObjectsCreated==0
    virtual void ReleaseGraphicsResources(vtkWindow *window);

    // Description:
    // Build vertex and fragment shader for the volume rendering
    void BuildShader(vtkRenderer* ren, vtkVolume* vol, int noOfComponents);

    // Description:
    // Rendering volume on GPU
    void GPURender(vtkRenderer *ren, vtkVolume *vol);

    // Description:
    // Not implemented
    virtual void PreRender(vtkRenderer* vtkNotUsed(ren),
                           vtkVolume* vtkNotUsed(vol),
                           double vtkNotUsed(datasetBounds)[6],
                           double vtkNotUsed(scalarRange)[2],
                           int vtkNotUsed(numberOfScalarComponents),
                           unsigned int vtkNotUsed(numberOfLevels)) {};

    // Description:
    // Empty implementation.
    virtual void RenderBlock(vtkRenderer* vtkNotUsed(ren),
                             vtkVolume* vtkNotUsed(vol),
                             unsigned int vtkNotUsed(level)) {};

    // Description:
    // Empty implementation.
    virtual void PostRender(vtkRenderer* vtkNotUsed(ren),
                            int vtkNotUsed(umberOfScalarComponents)) {};

    // Description:
    // Empty implementation.
    void GetReductionRatio(double* ratio)
      {
      ratio[0] = ratio[1] = ratio[2] = 1.0;
      }

    // Description:
    // Empty implementation.
    virtual int IsRenderSupported(vtkRenderWindow *vtkNotUsed(window),
                                  vtkVolumeProperty *vtkNotUsed(property))
      {
      return 1;
      }

    class vtkInternal;
    vtkInternal* Impl;
private:
    // Not implemented.
    vtkOpenGLGPUVolumeRayCastMapper(const vtkOpenGLGPUVolumeRayCastMapper&);

    // Not implemented.
    void operator=(const vtkOpenGLGPUVolumeRayCastMapper&);
};

#endif // __vtkOpenGLGPUVolumeRayCastMapper_h
{'fraction_non_alphanumeric': 0.14508411791943202, 'fraction_numerical': 0.0024695169007562896, 'mean_word_length': 2.756521739130435, 'pattern_counts': {'":': 0, '<': 13, '<?xml version=': 0, '>': 15, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6200228', 'n_tokens_mistral': 1755, 'n_tokens_neox': 1690, 'n_words': 391}