NAME
vtkImplicitBoolean - implicit function consisting of boolean combinations of implicit functions
SYNOPSIS
#include "/opt/vtk-c++/graphics/vtkImplicitBoolean.h"
class VTK_EXPORT vtkImplicitBoolean : public vtkImplicitFunction
vtkImplicitBoolean();
~vtkImplicitBoolean();
static vtkImplicitBoolean *New() {return new vtkImplicitBoolean;};
const char *GetClassName() {return "vtkImplicitBoolean";};
void PrintSelf(ostream& os, vtkIndent indent);
float EvaluateFunction(float x[3]);
void EvaluateGradient(float x[3], float g[3]);
unsigned long int GetMTime();
void AddFunction(vtkImplicitFunction *in);
void AddFunction(vtkImplicitFunction &in) {this->AddFunction(&in);};
void RemoveFunction(vtkImplicitFunction *in);
void RemoveFunction(vtkImplicitFunction &in) {this->RemoveFunction(&in);};
vtkImplicitFunctionCollection *GetFunction() {return &(this->FunctionList);};
void SetOperationType(int);
int GetOperationType();
void SetOperationTypeToUnion()
{this->SetOperationType(VTK_UNION);};
void SetOperationTypeToIntersection()
{this->SetOperationType(VTK_INTERSECTION);};
void SetOperationTypeToDifference()
{this->SetOperationType(VTK_DIFFERENCE);};
void SetOperationTypeToUnionOfMagnitudes()
{this->SetOperationType(VTK_UNION_OF_MAGNITUDES);};
char *GetOperationTypeAsString();
DESCRIPTION
vtkImplicitBoolean is an implicit function consisting of boolean combinations of implicit functions. The class has a list of functions (FunctionList) that are combined according to a specified operator (VTK_UNION or VTK_INTERSECTION or VTK_DIFFERENCE). You can use nested combinations of vtkImplicitFunction's (and/or vtkImplicitBoolean) to create elaborate implicit functions. vtkImplicitBoolean is a concrete implementation of vtkImplicitFunction.
The operators work as follows. The VTK_UNION operator takes the minimum value of all implicit functions. The VTK_INTERSECTION operator takes the maximum value of all implicit functions. The VTK_DIFFERENCE operator subtracts the 2nd through last implicit functions from the first.
DEFINED MACROS
VTK_UNION 0
VTK_INTERSECTION 1
VTK_DIFFERENCE 2
VTK_UNION_OF_MAGNITUDES 3
SUMMARY
void SetOperationType(int)
Specify the type of boolean operation.
char *GetOperationTypeAsString(void)
Return the boolean operation type as a descriptive character string.
vtkImplicitBoolean()
void AddFunction(vtkImplicitFunction *f)
Add another implicit function to the list of functions.
void RemoveFunction(vtkImplicitFunction *f)
Remove a function from the list of implicit functions to boolean.