VTK
vtkAssignMimeType.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkAssignMimeType.h
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  Copyright 2008 Sandia Corporation.
17  Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18  the U.S. Government retains certain rights in this software.
19 -------------------------------------------------------------------------*/
20 
56 #ifndef __vtkAssignMimeType_h
57 #define __vtkAssignMimeType_h
58 
59 #include "vtkTableAlgorithm.h"
60 class vtkMimeTypes;
61 
63  public vtkTableAlgorithm
64 {
65 public:
66  static vtkAssignMimeType* New();
68  void PrintSelf(ostream& os, vtkIndent indent);
69 
71 
73  vtkSetStringMacro(OutputArray);
74  vtkGetStringMacro(OutputArray);
76 
78 
83  vtkSetStringMacro(DefaultMimeType);
84  vtkGetStringMacro(DefaultMimeType);
86 
88 
90  void SetMimeTypes(vtkMimeTypes *m);
91  vtkGetObjectMacro(MimeTypes, vtkMimeTypes);
93 
94 //BTX
95 protected:
98 
99  virtual int RequestData(
100  vtkInformation* request,
101  vtkInformationVector** inputVector,
102  vtkInformationVector* outputVector);
103 
104 private:
105  vtkAssignMimeType(const vtkAssignMimeType &); // Not implemented.
106  void operator=(const vtkAssignMimeType &); // Not implemented.
107 
108  char* OutputArray;
109  char* DefaultMimeType;
110 
111  vtkMimeTypes* MimeTypes;
112 //ETX
113 };
114 
115 #endif // __vtkAssignMimeType_h