-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvtkConeSlice.h
113 lines (90 loc) · 2.91 KB
/
vtkConeSlice.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/*=========================================================================
Program: Visualization Toolkit
Module: vtkConeSlice.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// Copyright 2014-2016 Etienne Tang
#ifndef VTKCYLINDRICALCOORDINATES_H
#define VTKCYLINDRICALCOORDINATES_H
#include "vtkSetGet.h"
#include "vtkStdString.h"
#include "vtkCutter.h"
#include "vtkImplicitFunction.h"
class vtkInformation;
class vtkInformationVector;
class vtkDataSetAttributes;
class VTK_EXPORT vtkConeXrFunction : public vtkImplicitFunction
{
public:
static vtkConeXrFunction* New();
vtkTypeMacro(vtkConeXrFunction, vtkImplicitFunction);
void PrintSelf(ostream& os, vtkIndent indent);
double EvaluateFunction(double x[3]);
double EvaluateFunction(double x, double y, double z)
{return this->vtkImplicitFunction::EvaluateFunction(x, y, z); };
void EvaluateGradient(double x[3], double g[3]);
vtkGetVector2Macro(Xr1, double);
vtkSetVector2Macro(Xr1, double);
vtkGetVector2Macro(Xr2, double);
vtkSetVector2Macro(Xr2, double);
protected:
vtkConeXrFunction();
~vtkConeXrFunction() {};
double Xr1[2];
double Xr2[2];
private:
vtkConeXrFunction(const vtkConeXrFunction&);
void operator=(const vtkConeXrFunction&);
};
class VTK_EXPORT vtkConeSlice : public vtkCutter
{
public:
static vtkConeSlice* New();
vtkTypeMacro(vtkConeSlice, vtkCutter);
void PrintSelf(ostream& os, vtkIndent indent);
vtkGetVector2Macro(Xr1, double);
virtual void SetXr1(double arg1, double arg2)
{
if((this->Xr1[0] != arg1) || (this->Xr1[1] != arg2))
{
this->Xr1[0] = arg1;
this->Xr1[1] = arg2;
this->ConeFunction->SetXr1(arg1, arg2);
this->Modified();
}
};
void SetXr1(double arg[2])
{
this->SetXr1(arg[0], arg[1]);
};
vtkGetVector2Macro(Xr2, double);
virtual void SetXr2(double arg1, double arg2)
{
if((this->Xr2[0] != arg1) || (this->Xr2[1] != arg2))
{
this->Xr2[0] = arg1;
this->Xr2[1] = arg2;
this->ConeFunction->SetXr2(arg1, arg2);
this->Modified();
}
};
void SetXr2(double arg[2])
{
this->SetXr2(arg[0], arg[1]);
};
protected:
vtkConeSlice();
~vtkConeSlice();
vtkConeXrFunction* ConeFunction;
double Xr1[2];
double Xr2[2];
private:
vtkConeSlice operator=(const vtkConeSlice&);
vtkConeSlice(const vtkConeSlice&);
};
#endif