1 /*========================================================================= 2 3 Program: Visualization Toolkit 4 Module: vtkOpaquePass.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 "vtkOpaquePass.h" 17 #include "vtkObjectFactory.h" 18 #include <cassert> 19 20 vtkStandardNewMacro(vtkOpaquePass); 21 22 //------------------------------------------------------------------------------ 23 vtkOpaquePass::vtkOpaquePass() = default; 24 25 //------------------------------------------------------------------------------ 26 vtkOpaquePass::~vtkOpaquePass() = default; 27 28 //------------------------------------------------------------------------------ PrintSelf(ostream & os,vtkIndent indent)29void vtkOpaquePass::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 vtkOpaquePass::Render(const vtkRenderState* s) 39 { 40 assert("pre: s_exists" && s != nullptr); 41 42 this->NumberOfRenderedProps = 0; 43 this->RenderFilteredOpaqueGeometry(s); 44 } 45