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 // ---------------------------------------------------------------------------- vtkTranslucentPass()23vtkTranslucentPass::vtkTranslucentPass() 24 { 25 } 26 27 // ---------------------------------------------------------------------------- ~vtkTranslucentPass()28vtkTranslucentPass::~vtkTranslucentPass() 29 { 30 } 31 32 // ---------------------------------------------------------------------------- PrintSelf(ostream & os,vtkIndent indent)33void vtkTranslucentPass::PrintSelf(ostream& os, vtkIndent indent) 34 { 35 this->Superclass::PrintSelf(os,indent); 36 } 37 38 // ---------------------------------------------------------------------------- 39 // Description: 40 // Perform rendering according to a render state \p s. 41 // \pre s_exists: s!=0 Render(const vtkRenderState * s)42void vtkTranslucentPass::Render(const vtkRenderState *s) 43 { 44 assert("pre: s_exists" && s!=0); 45 46 this->NumberOfRenderedProps=0; 47 this->RenderFilteredTranslucentPolygonalGeometry(s); 48 } 49