You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
nmWTAI-Platform/3rd/VTK7.1/include/vtkCMLMoleculeReader.h

69 lines
1.8 KiB
C++

/*=========================================================================
Program: Visualization Toolkit
Module: vtkCMLMoleculeReader.h
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.
=========================================================================*/
/**
* @class vtkCMLMoleculeReader
* @brief Read a CML file and output a
* vtkMolecule object
*
*/
#ifndef vtkCMLMoleculeReader_h
#define vtkCMLMoleculeReader_h
#include "vtkDomainsChemistryModule.h" // For export macro
#include "vtkMoleculeAlgorithm.h"
class vtkMolecule;
class VTKDOMAINSCHEMISTRY_EXPORT vtkCMLMoleculeReader : public vtkMoleculeAlgorithm
{
public:
static vtkCMLMoleculeReader *New();
vtkTypeMacro(vtkCMLMoleculeReader,vtkMoleculeAlgorithm);
void PrintSelf(ostream& os, vtkIndent indent);
//@{
/**
* Get/Set the output (vtkMolecule) that the reader will fill
*/
vtkMolecule *GetOutput();
void SetOutput(vtkMolecule *);
//@}
//@{
/**
* Get/Set the name of the CML file
*/
vtkSetStringMacro(FileName);
vtkGetStringMacro(FileName);
//@}
protected:
vtkCMLMoleculeReader();
~vtkCMLMoleculeReader();
int RequestData(vtkInformation *, vtkInformationVector **,
vtkInformationVector *);
int FillOutputPortInformation(int, vtkInformation*);
char *FileName;
private:
vtkCMLMoleculeReader(const vtkCMLMoleculeReader&) VTK_DELETE_FUNCTION;
void operator=(const vtkCMLMoleculeReader&) VTK_DELETE_FUNCTION;
};
#endif