Drake Designer
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Macros Pages
vtkGridSource.h
Go to the documentation of this file.
1 // Copyright 2013 Velodyne Acoustics, Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 /*=========================================================================
15 
16  Program: Visualization Toolkit
17  Module: vtkGridSource.cxx
18 
19  Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
20  All rights reserved.
21  See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
22 
23  This software is distributed WITHOUT ANY WARRANTY; without even
24  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
25  PURPOSE. See the above copyright notice for more information.
26 
27 =========================================================================*/
28 // .NAME vtkGridSource - generates a vtkPolyData measurement grid plane
29 // .Section Description
30 //
31 
32 #ifndef _vtkGridSource_h
33 #define _vtkGridSource_h
34 
35 #include <vtkPolyDataAlgorithm.h>
36 #include <vtkSmartPointer.h>
37 
38 #include <vtkDRCFiltersModule.h>
39 
40 class VTKDRCFILTERS_EXPORT vtkGridSource : public vtkPolyDataAlgorithm
41 {
42 public:
43  static vtkGridSource *New();
44  vtkTypeMacro(vtkGridSource, vtkPolyDataAlgorithm);
45  void PrintSelf(ostream& os, vtkIndent indent);
46 
47  vtkSetMacro(GridSize, int);
48  vtkGetMacro(GridSize, int);
49 
50  vtkSetMacro(Scale, double);
51  vtkGetMacro(Scale, double);
52 
53  vtkSetVector3Macro(Origin, double);
54  vtkGetVector3Macro(Origin, double);
55 
56  vtkSetVector3Macro(Normal, double);
57  vtkGetVector3Macro(Normal, double);
58 
59  vtkSetMacro(ArcsEnabled, bool);
60  vtkGetMacro(ArcsEnabled, bool);
61  vtkBooleanMacro(ArcsEnabled, bool);
62 
63  vtkSetMacro(SurfaceEnabled, bool);
64  vtkGetMacro(SurfaceEnabled, bool);
65  vtkBooleanMacro(SurfaceEnabled, bool);
66 
67  static vtkSmartPointer<vtkPolyData> CreateGrid(int gridSize, double scale, double origin[3], double normal[3], bool useCircles, bool useSurface);
68 
69 protected:
70  vtkGridSource();
71  ~vtkGridSource();
72 
73  int RequestData(vtkInformation *,
74  vtkInformationVector **,
75  vtkInformationVector *);
76 
79  int GridSize;
80  double Scale;
81  double Origin[3];
82  double Normal[3];
83 
84 private:
85 
87  void operator = (const vtkGridSource&);
88 
89 };
90 #endif
#define VTKDRCFILTERS_EXPORT