vtkbone
vtkboneMaterialTableAlgorithm.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Copyright 2010-2016, Numerics88 Solutions Ltd.
4  http://www.numerics88.com/
5 
6  Copyright (c) Eric Nodwell and Steven K. Boyd
7  See Copyright.txt for details.
8 
9  This software is distributed WITHOUT ANY WARRANTY; without even
10  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
11  PURPOSE. See the above copyright notice for more information.
12 =========================================================================*/
13 
19 #ifndef __vtkboneMaterialTableAlgorithm_h
20 #define __vtkboneMaterialTableAlgorithm_h
21 
22 #include "vtkAlgorithm.h"
23 #include "vtkboneWin32Header.h"
24 
25 // Forward declarations
26 class vtkDataSet;
28 
30 {
31 public:
34  void PrintSelf(ostream& os, vtkIndent indent);
35 
37 
38  vtkboneMaterialTable* GetOutput();
39  vtkboneMaterialTable* GetOutput(int);
40  virtual void SetOutput(vtkDataObject* d);
42 
44 
45  virtual int ProcessRequest(vtkInformation*,
49 
50  // this method is not recommended for use, but lots of old style filters
51  // use it
52  vtkDataObject *GetInput(int port);
53  vtkDataObject *GetInput() { return this->GetInput(0); };
54  vtkboneMaterialTable *GetMaterialTableInput(int port);
55 
57 
60  void SetInputData(vtkDataObject *);
61  void SetInputData(int, vtkDataObject*);
63 
65 
68  void AddInputData(vtkDataObject *);
69  void AddInputData(int, vtkDataObject*);
71 
72 protected:
75 
76  // convenience method
77  virtual int RequestInformation(vtkInformation* request,
78  vtkInformationVector** inputVector,
79  vtkInformationVector* outputVector);
80 
82 
84  virtual int RequestData(vtkInformation* request,
85  vtkInformationVector** inputVector,
86  vtkInformationVector* outputVector);
88 
90 
92  virtual int RequestDataObject(vtkInformation*,
96 
98 
100  virtual int RequestUpdateExtent(vtkInformation*,
104 
106 
107  virtual void ExecuteData(vtkDataObject *output);
108  virtual void Execute();
110 
111  // see algorithm for more info
112  virtual int FillOutputPortInformation(int port, vtkInformation* info);
113  virtual int FillInputPortInformation(int port, vtkInformation* info);
114 
115 private:
117  void operator=(const vtkboneMaterialTableAlgorithm&); // Not implemented.
118 };
119 
120 #endif
#define VTKBONE_EXPORT
virtual int ProcessRequest(vtkInformation *request, vtkInformationVector **inInfo, vtkInformationVector *outInfo)
info
virtual int FillOutputPortInformation(int port, vtkInformation *info)
Material Table finite element mesh.
virtual int FillInputPortInformation(int port, vtkInformation *info)
void PrintSelf(ostream &os, vtkIndent indent) VTK_OVERRIDE
static vtkAlgorithm * New()
port
void operator=(const vtkObjectBase &)
Superclass for algorithms that produce only vtkboneMaterialTable as output.