Slicer 5.9
Slicer is a multi-platform, free and open source software package for visualization and medical image computing
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Modules Pages
vtkImplicitInvertableBoolean.h
Go to the documentation of this file.
1/*==============================================================================
2
3 Copyright (c) Laboratory for Percutaneous Surgery (PerkLab)
4 Queen's University, Kingston, ON, Canada. All Rights Reserved.
5
6 See COPYRIGHT.txt
7 or http://www.slicer.org/copyright/copyright.txt for details.
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 This file was originally developed by Kyle Sunderland, PerkLab, Queen's University
16 and was supported in part through NIH grant R01 HL153166.
17
18==============================================================================*/
32
33#ifndef vtkImplicitInvertableBoolean_h
34#define vtkImplicitInvertableBoolean_h
35
36// VTK includes
37#include "vtkImplicitBoolean.h"
38
39// MRML includes
40#include "vtkMRML.h"
41
42class VTK_MRML_EXPORT vtkImplicitInvertableBoolean : public vtkImplicitBoolean
43{
44public:
45 vtkTypeMacro(vtkImplicitInvertableBoolean, vtkImplicitBoolean);
46 void PrintSelf(ostream& os, vtkIndent indent) override;
48
50
53 using vtkImplicitBoolean::EvaluateFunction;
54 double EvaluateFunction(double x[3]) override;
56
60 void EvaluateGradient(double x[3], double g[3]) override;
61
63
66 vtkSetMacro(Invert, bool);
67 vtkGetMacro(Invert, bool);
68 vtkBooleanMacro(Invert, bool);
70
71protected:
74
75 bool Invert{ false };
76
77private:
79 void operator=(const vtkImplicitInvertableBoolean&) = delete;
80};
81#endif
implicit function consisting of boolean combinations of implicit functions, with invert option
static vtkImplicitInvertableBoolean * New()
~vtkImplicitInvertableBoolean() override
void PrintSelf(ostream &os, vtkIndent indent) override
double EvaluateFunction(double x[3]) override
void EvaluateGradient(double x[3], double g[3]) override