Revision 3a6370bf39d14d68f194f1204ddf42fe2aa329d2 authored by Pierre Guillou on 11 October 2019, 13:16:44 UTC, committed by Pierre Guillou on 13 April 2022, 09:24:25 UTC
1 parent cdaa0c2
vtkSMCameraConfigurationWriter.cxx
/*=========================================================================
Program: Visualization Toolkit
Module: vtkSMCameraConfigurationWriter.cxx
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
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.
=========================================================================*/
#include "vtkSMCameraConfigurationWriter.h"
#include "vtkSMCameraConfigurationFileInfo.h"
#include "vtkObjectFactory.h"
#include "vtkSMNamedPropertyIterator.h"
#include "vtkSMProxy.h"
#include "vtkStringList.h"
vtkStandardNewMacro(vtkSMCameraConfigurationWriter);
//-----------------------------------------------------------------------------
vtkSMCameraConfigurationWriter::vtkSMCameraConfigurationWriter()
{
vtkStringList* propNames = vtkStringList::New();
propNames->AddString("CameraPosition");
propNames->AddString("CameraFocalPoint");
propNames->AddString("CameraViewUp");
propNames->AddString("CenterOfRotation");
propNames->AddString("RotationFactor");
propNames->AddString("CameraViewAngle");
propNames->AddString("CameraParallelScale");
propNames->AddString("CameraParallelProjection");
vtkSMNamedPropertyIterator* propIt = vtkSMNamedPropertyIterator::New();
propIt->SetPropertyNames(propNames);
propNames->Delete();
this->SetPropertyIterator(propIt);
propIt->Delete();
vtkSMCameraConfigurationFileInfo info;
this->SetFileIdentifier(info.FileIdentifier);
this->SetFileDescription(info.FileDescription);
this->SetFileExtension(info.FileExtension);
}
//-----------------------------------------------------------------------------
vtkSMCameraConfigurationWriter::~vtkSMCameraConfigurationWriter() = default;
//-----------------------------------------------------------------------------
void vtkSMCameraConfigurationWriter::SetRenderViewProxy(vtkSMProxy* rvProxy)
{
this->vtkSMProxyConfigurationWriter::SetProxy(rvProxy);
this->GetPropertyIterator()->SetProxy(rvProxy);
}
//-----------------------------------------------------------------------------
void vtkSMCameraConfigurationWriter::PrintSelf(ostream& os, vtkIndent indent)
{
this->Superclass::PrintSelf(os, indent);
}

Computing file changes ...