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 Class Reference

implicit function consisting of boolean combinations of implicit functions, with invert option More...

#include <Libs/MRML/Core/vtkImplicitInvertableBoolean.h>

Inheritance diagram for vtkImplicitInvertableBoolean:
Collaboration diagram for vtkImplicitInvertableBoolean:

Public Types

typedef vtkImplicitBoolean Superclass
 

Public Member Functions

double EvaluateFunction (double x[3]) override
 
void EvaluateGradient (double x[3], double g[3]) override
 
virtual const char * GetClassName ()
 
virtual bool GetInvert ()
 
virtual void InvertOff ()
 
virtual void InvertOn ()
 
virtual int IsA (const char *type)
 
void PrintSelf (ostream &os, vtkIndent indent) override
 
virtual void SetInvert (bool)
 

Static Public Member Functions

static int IsTypeOf (const char *type)
 
static vtkImplicitInvertableBooleanNew ()
 
static vtkImplicitInvertableBooleanSafeDownCast (vtkObject *o)
 

Protected Member Functions

 vtkImplicitInvertableBoolean ()
 
 ~vtkImplicitInvertableBoolean () override
 

Protected Attributes

bool Invert { false }
 

Detailed Description

implicit function consisting of boolean combinations of implicit functions, with invert option

This class is a subclass of vtkImplicitBoolean that adds an option to invert the result of the boolean operation.

For clipping functions, it is necessary to be able to invert the result of implicit functions. That ability is supported with vtkImplicitSum, however vtkImplicitSum doesn't work for capping purposes, since we need to be able to retrieve the plane functions from the clipping functions, however the internal functions are not accessible in vtkImplicitSum. This class is a workaround for that issue.

In the future the changes in this class may be moved to vtkAddon or VTK, either by adding the invert option to vtkImplicitBoolean or by making the internal vtkImplicitFunctionCollection accessible in vtkImplicitSum.

Definition at line 42 of file vtkImplicitInvertableBoolean.h.

Member Typedef Documentation

◆ Superclass

typedef vtkImplicitBoolean vtkImplicitInvertableBoolean::Superclass

Definition at line 45 of file vtkImplicitInvertableBoolean.h.

Constructor & Destructor Documentation

◆ vtkImplicitInvertableBoolean()

vtkImplicitInvertableBoolean::vtkImplicitInvertableBoolean ( )
protected

◆ ~vtkImplicitInvertableBoolean()

vtkImplicitInvertableBoolean::~vtkImplicitInvertableBoolean ( )
overrideprotected

Member Function Documentation

◆ EvaluateFunction()

double vtkImplicitInvertableBoolean::EvaluateFunction ( double x[3])
override

◆ EvaluateGradient()

void vtkImplicitInvertableBoolean::EvaluateGradient ( double x[3],
double g[3] )
override

Evaluate gradient of boolean combination.

◆ GetClassName()

virtual const char * vtkImplicitInvertableBoolean::GetClassName ( )
virtual

◆ GetInvert()

virtual bool vtkImplicitInvertableBoolean::GetInvert ( )
virtual

◆ InvertOff()

virtual void vtkImplicitInvertableBoolean::InvertOff ( )
virtual

◆ InvertOn()

virtual void vtkImplicitInvertableBoolean::InvertOn ( )
virtual

◆ IsA()

virtual int vtkImplicitInvertableBoolean::IsA ( const char * type)
virtual

◆ IsTypeOf()

static int vtkImplicitInvertableBoolean::IsTypeOf ( const char * type)
static

◆ New()

static vtkImplicitInvertableBoolean * vtkImplicitInvertableBoolean::New ( )
static

◆ PrintSelf()

void vtkImplicitInvertableBoolean::PrintSelf ( ostream & os,
vtkIndent indent )
override

◆ SafeDownCast()

static vtkImplicitInvertableBoolean * vtkImplicitInvertableBoolean::SafeDownCast ( vtkObject * o)
static

◆ SetInvert()

virtual void vtkImplicitInvertableBoolean::SetInvert ( bool )
virtual

Specify if the resulting function should be inverted

Member Data Documentation

◆ Invert

bool vtkImplicitInvertableBoolean::Invert { false }
protected

Definition at line 75 of file vtkImplicitInvertableBoolean.h.


The documentation for this class was generated from the following file: