vtk PrintSelf 使用方法 //圆锥模型 vtkSmartPointer<vtkConeSource> cone = vtkSmartPointer<vtkConeSource>::New(); cone->SetHeight(3.0); cone->SetRadius(1.0); cone->SetResolution(10); vtkIndent indent(10); // 表示缩进宽度 cone->PrintSelf(cout, indent);