helper class to cram unrelated functions. More...
#include <vtkKWEPaintbrushUtilities.h>


Classes | |
| class | vtkFunctorEqualTo |
| class | vtkFunctorGreaterThan |
| class | vtkFunctorGreaterThanEqualTo |
| class | vtkFunctorLessThan |
| class | vtkFunctorLessThanEqualTo |
Public Member Functions | |
| vtkTypeRevisionMacro (vtkKWEPaintbrushUtilities, vtkObject) | |
| void | PrintSelf (ostream &os, vtkIndent indent) |
Static Public Member Functions | |
| static vtkKWEPaintbrushUtilities * | New () |
| template<class TFunctor , class T > | |
| static void | vtkKWEPaintbrushUtilitiesGetStencilFromImage (vtkImageData *image, vtkImageStencilData *stencilData, T threshold) |
| template<class T > | |
| static vtkstd::map < vtkKWEPaintbrushEnums::LabelType, vtkSmartPointer < vtkKWEPaintbrushStencilData > > | vtkKWEPaintbrushUtilitiesGetStencilsFromImage (vtkImageData *image, vtkstd::vector< vtkKWEPaintbrushEnums::LabelType > labels, T) |
| static vtkstd::map < vtkKWEPaintbrushEnums::LabelType, vtkSmartPointer < vtkKWEPaintbrushStencilData > > | GetStencilsFromImage (vtkImageData *image, vtkstd::vector< vtkKWEPaintbrushEnums::LabelType > labels) |
| static int | ExtentIsEqualToExtent (int e1[6], int e2[6]) |
| static int | GetIntersectingExtents (int extent1[6], int extent2[6], int extent[6]) |
| template<class TFunctor > | |
| static void | GetStencilFromImage (vtkImageData *image, vtkImageStencilData *stencilData, double threshold) |
| static void | GetImageFromStencil (vtkImageData *, vtkImageStencilData *, unsigned char inVal, unsigned char outVal, bool UseImageExtent=false) |
Protected Member Functions | |
| vtkKWEPaintbrushUtilities () | |
| ~vtkKWEPaintbrushUtilities () | |
helper class to cram unrelated functions.
Helper class to cram unclassifiable functions..
All methods here are of course static
Definition at line 46 of file vtkKWEPaintbrushUtilities.h.
| vtkKWEPaintbrushUtilities::vtkKWEPaintbrushUtilities | ( | ) | [protected] |
| vtkKWEPaintbrushUtilities::~vtkKWEPaintbrushUtilities | ( | ) | [protected] |
| static vtkKWEPaintbrushUtilities* vtkKWEPaintbrushUtilities::New | ( | ) | [static] |
Reimplemented from vtkObject.
| vtkKWEPaintbrushUtilities::vtkTypeRevisionMacro | ( | vtkKWEPaintbrushUtilities | , | |
| vtkObject | ||||
| ) |
| void vtkKWEPaintbrushUtilities::PrintSelf | ( | ostream & | os, | |
| vtkIndent | indent | |||
| ) | [virtual] |
Reimplemented from vtkObject.
| static int vtkKWEPaintbrushUtilities::GetIntersectingExtents | ( | int | extent1[6], | |
| int | extent2[6], | |||
| int | extent[6] | |||
| ) | [static] |
Returns 0 if the extents don't intersect, 1 if they do interesect extent contains the intersection of extent1 and extent2.
| static void vtkKWEPaintbrushUtilities::vtkKWEPaintbrushUtilitiesGetStencilFromImage | ( | vtkImageData * | image, | |
| vtkImageStencilData * | stencilData, | |||
| T | threshold | |||
| ) | [inline, static] |
Definition at line 107 of file vtkKWEPaintbrushUtilities.h.
| static vtkstd::map< vtkKWEPaintbrushEnums::LabelType, vtkSmartPointer< vtkKWEPaintbrushStencilData > > vtkKWEPaintbrushUtilities::vtkKWEPaintbrushUtilitiesGetStencilsFromImage | ( | vtkImageData * | image, | |
| vtkstd::vector< vtkKWEPaintbrushEnums::LabelType > | labels, | |||
| T | ||||
| ) | [inline, static] |
Definition at line 192 of file vtkKWEPaintbrushUtilities.h.
| static void vtkKWEPaintbrushUtilities::GetStencilFromImage | ( | vtkImageData * | image, | |
| vtkImageStencilData * | stencilData, | |||
| double | threshold | |||
| ) | [inline, static] |
Get a binary stencil from an image. All pixels <FUNCTOR> threshold are considered within the stencil. TFunctor may be any of the above defined class templates or your own. It may be any one of <= == >= > < operators. It should be a templated class that will provide a mechanism of comparing with the threshold and return a boolean. Common templates for greater-than / less-than etc are already provided.
Definition at line 298 of file vtkKWEPaintbrushUtilities.h.
| static vtkstd::map< vtkKWEPaintbrushEnums::LabelType, vtkSmartPointer< vtkKWEPaintbrushStencilData > > vtkKWEPaintbrushUtilities::GetStencilsFromImage | ( | vtkImageData * | image, | |
| vtkstd::vector< vtkKWEPaintbrushEnums::LabelType > | labels | |||
| ) | [inline, static] |
Definition at line 312 of file vtkKWEPaintbrushUtilities.h.
| static void vtkKWEPaintbrushUtilities::GetImageFromStencil | ( | vtkImageData * | , | |
| vtkImageStencilData * | , | |||
| unsigned char | inVal, | |||
| unsigned char | outVal, | |||
| bool | UseImageExtent = false | |||
| ) | [static] |
Populate a vtkImageData from a binary stencil. "inVal" and "outVal" define the values assigned to the image inside and outside the object. If "UseImageExtent" is true, the image extents are preserved. If not, the image acquires its metadata from the stencil.
| static int vtkKWEPaintbrushUtilities::ExtentIsEqualToExtent | ( | int | e1[6], | |
| int | e2[6] | |||
| ) | [static] |
Check if one extent is equal to the other extent. Returns 1 if true.
1.7.1