1 /*========================================================================= 2 3 Program: Visualization Toolkit 4 Module: vtkTranslucentPass.cxx 5 6 Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen 7 All rights reserved. 8 See Copyright.txt or http://www.kitware.com/Copyright.htm for details. 9 10 This software is distributed WITHOUT ANY WARRANTY; without even 11 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 12 PURPOSE. See the above copyright notice for more information. 13 14 =========================================================================*/ 15 16 #include "vtkTranslucentPass.h" 17 #include "vtkObjectFactory.h" 18 #include <cassert> 19 20 vtkStandardNewMacro(vtkTranslucentPass); 21 22 // ---------------------------------------------------------------------------- 23 vtkTranslucentPass::vtkTranslucentPass() = default; 24 25 // ---------------------------------------------------------------------------- 26 vtkTranslucentPass::~vtkTranslucentPass() = default; 27 28 // ---------------------------------------------------------------------------- PrintSelf(ostream & os,vtkIndent indent)29void vtkTranslucentPass::PrintSelf(ostream& os, vtkIndent indent) 30 { 31 this->Superclass::PrintSelf(os,indent); 32 } 33 34 // ---------------------------------------------------------------------------- 35 // Description: 36 // Perform rendering according to a render state \p s. 37 // \pre s_exists: s!=0 Render(const vtkRenderState * s)38void vtkTranslucentPass::Render(const vtkRenderState *s) 39 { 40 assert("pre: s_exists" && s!=nullptr); 41 42 this->NumberOfRenderedProps=0; 43 this->RenderFilteredTranslucentPolygonalGeometry(s); 44 } 45