Drake Designer
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
vtkMapServerSource.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkMapServerSource.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 // .NAME vtkMapServerSource -
16 // .SECTION Description
17 //
18 
19 #ifndef __vtkMapServerSource_h
20 #define __vtkMapServerSource_h
21 
22 #include <vtkPolyDataAlgorithm.h>
23 
24 #include <vtkDRCFiltersModule.h>
25 
26 class vtkImageData;
27 class vtkTransform;
28 
29 class VTKDRCFILTERS_EXPORT vtkMapServerSource : public vtkPolyDataAlgorithm
30 {
31 public:
32  vtkTypeMacro(vtkMapServerSource, vtkPolyDataAlgorithm);
33  void PrintSelf(ostream& os, vtkIndent indent);
34 
35  static vtkMapServerSource *New();
36 
37 
38  void Poll();
39 
40  void Start();
41  void Stop();
42 
43  vtkGetVector2Macro(DistanceRange, double);
44  vtkSetVector2Macro(DistanceRange, double);
45 
46  vtkGetVector2Macro(HeightRange, double);
47  vtkSetVector2Macro(HeightRange, double);
48 
49  void SetEdgeAngleThreshold(double threshold);
50  double GetEdgeAngleThreshold();
51 
52  int GetNumberOfDatasets(int viewId);
53  vtkPolyData* GetDataset(int viewId, vtkIdType i);
54 
55  vtkIdType GetCurrentMapId(int viewId);
56  void GetDataForMapId(int viewId, vtkIdType mapId, vtkPolyData* polyData);
57  void GetMeshForMapId(int viewId, vtkIdType mapId, vtkPolyData* polyData);
58  void GetDataForMapId(int viewId, vtkIdType mapId, vtkImageData* imageData, vtkTransform* transform);
59  vtkIdType GetLastScanBundleUTime();
60 
61 
62  vtkIntArray* GetViewIds();
63 
64 protected:
65 
66 
67  virtual int RequestInformation(vtkInformation *request,
68  vtkInformationVector **inputVector,
69  vtkInformationVector *outputVector);
70 
71  virtual int RequestData(vtkInformation *request,
72  vtkInformationVector **inputVector,
73  vtkInformationVector *outputVector);
74 
76  virtual ~vtkMapServerSource();
77 
78  double DistanceRange[2];
80  double HeightRange[2];
81 
82 private:
83  vtkMapServerSource(const vtkMapServerSource&); // Not implemented.
84  void operator=(const vtkMapServerSource&); // Not implemented.
85 
86  class vtkInternal;
87  vtkInternal * Internal;
88 };
89 
90 #endif
#define VTKDRCFILTERS_EXPORT