VMTK
Loading...
Searching...
No Matches
vtkvmtkPolyBallLine.h
Go to the documentation of this file.
1/*=========================================================================
2
3Program: VMTK
4
5 Copyright (c) Luca Antiga, David Steinman. All rights reserved.
6 See LICENSE file for details.
7
8 Portions of this code are covered under the VTK copyright.
9 See VTKCopyright.txt or http://www.kitware.com/VTKCopyright.htm
10 for details.
11
12 This software is distributed WITHOUT ANY WARRANTY; without even
13 the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14 PURPOSE. See the above copyright notices for more information.
15
16=========================================================================*/
45
46#ifndef __vtkvmtkPolyBallLine_h
47#define __vtkvmtkPolyBallLine_h
48
49#include "vtkImplicitFunction.h"
50#include "vtkPolyData.h"
51#include "vtkIdList.h"
52//#include "vtkvmtkComputationalGeometryWin32Header.h"
53#include "vtkvmtkWin32Header.h"
54
55class VTK_VMTK_COMPUTATIONAL_GEOMETRY_EXPORT vtkvmtkPolyBallLine : public vtkImplicitFunction
56{
57 public:
58
60 vtkTypeMacro(vtkvmtkPolyBallLine,vtkImplicitFunction);
61 void PrintSelf(std::ostream& os, vtkIndent indent) override;
62
70 double EvaluateFunction(double x[3]) override;
71 double EvaluateFunction(double x, double y, double z) override
72 {return this->vtkImplicitFunction::EvaluateFunction(x, y, z); } ;
73
76 void EvaluateGradient(double x[3], double n[3]) override;
77
79
82 vtkSetObjectMacro(Input,vtkPolyData);
83 vtkGetObjectMacro(Input,vtkPolyData);
85
87
91 vtkSetObjectMacro(InputCellIds,vtkIdList);
92 vtkGetObjectMacro(InputCellIds,vtkIdList);
94
96
99 vtkSetMacro(InputCellId,vtkIdType);
100 vtkGetMacro(InputCellId,vtkIdType);
102
104
109 vtkSetStringMacro(PolyBallRadiusArrayName);
110 vtkGetStringMacro(PolyBallRadiusArrayName);
112
115 vtkGetMacro(LastPolyBallCellId,vtkIdType);
116
119 vtkGetMacro(LastPolyBallCellSubId,vtkIdType);
120
123 vtkGetMacro(LastPolyBallCellPCoord,double);
124
127 vtkGetVectorMacro(LastPolyBallCenter,double,3);
128
131 vtkGetMacro(LastPolyBallCenterRadius,double);
132
134
138 vtkSetMacro(UseRadiusInformation,int);
139 vtkGetMacro(UseRadiusInformation,int);
140 vtkBooleanMacro(UseRadiusInformation,int);
142
148 static double ComplexDot(double x[4], double y[4]);
149
150 protected:
153
154 vtkPolyData* Input;
155 vtkIdList* InputCellIds;
156 vtkIdType InputCellId;
157
164
166
167 private:
168 vtkvmtkPolyBallLine(const vtkvmtkPolyBallLine&); // Not implemented.
169 void operator=(const vtkvmtkPolyBallLine&); // Not implemented.
170};
171
172#endif
173
static double ComplexDot(double x[4], double y[4])
double EvaluateFunction(double x, double y, double z) override
void PrintSelf(std::ostream &os, vtkIndent indent) override
static vtkvmtkPolyBallLine * New()
double EvaluateFunction(double x[3]) override