FreeMat: vtkBooleanTexture

FreeMat

- Main Page
- Related Pages

vtkBooleanTexture

Section: Visualization Toolkit Imaging Classes

# Usage

vtkBooleanTexture is a filter to generate a 2D texture map based on combinations of inside, outside, and on region boundary. The "region" is implicitly represented via 2D texture coordinates. These texture coordinates are normally generated using a filter like vtkImplicitTextureCoords, which generates the texture coordinates for any implicit function.

vtkBooleanTexture generates the map according to the s-t texture coordinates plus the notion of being in, on, or outside of a region. An in region is when the texture coordinate is between (0,0.5-thickness/2). An out region is where the texture coordinate is (0.5+thickness/2). An on region is between (0.5-thickness/2,0.5+thickness/2). The combination in, on, and out for each of the s-t texture coordinates results in 16 possible combinations (see text). For each combination, a different value of intensity and transparency can be assigned. To assign maximum intensity and/or opacity use the value 255. A minimum value of 0 results in a black region (for intensity) and a fully transparent region (for transparency).

To create an instance of class vtkBooleanTexture, simply invoke its constructor as follows

      obj = vtkBooleanTexture

# Methods

The class vtkBooleanTexture has several methods that can be used. They are listed below. Note that the documentation is translated automatically from the VTK sources, and may not be completely intelligible. When in doubt, consult the VTK website. In the methods listed below, `obj` is an instance of the vtkBooleanTexture class.

- `string = obj.GetClassName ()`
- `int = obj.IsA (string name)`
- `vtkBooleanTexture = obj.NewInstance ()`
- `vtkBooleanTexture = obj.SafeDownCast (vtkObject o)`
- `obj.SetXSize (int )` - Set the X texture map dimension.
- `int = obj.GetXSize ()` - Set the X texture map dimension.
- `obj.SetYSize (int )` - Set the Y texture map dimension.
- `int = obj.GetYSize ()` - Set the Y texture map dimension.
- `obj.SetThickness (int )` - Set the thickness of the "on" region.
- `int = obj.GetThickness ()` - Set the thickness of the "on" region.
- `obj.SetInIn (char , char )` - Specify intensity/transparency for "in/in" region.
- `obj.SetInIn (char a[2])` - Specify intensity/transparency for "in/in" region.
- `char = obj. GetInIn ()` - Specify intensity/transparency for "in/in" region.
- `obj.SetInOut (char , char )` - Specify intensity/transparency for "in/out" region.
- `obj.SetInOut (char a[2])` - Specify intensity/transparency for "in/out" region.
- `char = obj. GetInOut ()` - Specify intensity/transparency for "in/out" region.
- `obj.SetOutIn (char , char )` - Specify intensity/transparency for "out/in" region.
- `obj.SetOutIn (char a[2])` - Specify intensity/transparency for "out/in" region.
- `char = obj. GetOutIn ()` - Specify intensity/transparency for "out/in" region.
- `obj.SetOutOut (char , char )` - Specify intensity/transparency for "out/out" region.
- `obj.SetOutOut (char a[2])` - Specify intensity/transparency for "out/out" region.
- `char = obj. GetOutOut ()` - Specify intensity/transparency for "out/out" region.
- `obj.SetOnOn (char , char )` - Specify intensity/transparency for "on/on" region.
- `obj.SetOnOn (char a[2])` - Specify intensity/transparency for "on/on" region.
- `char = obj. GetOnOn ()` - Specify intensity/transparency for "on/on" region.
- `obj.SetOnIn (char , char )` - Specify intensity/transparency for "on/in" region.
- `obj.SetOnIn (char a[2])` - Specify intensity/transparency for "on/in" region.
- `char = obj. GetOnIn ()` - Specify intensity/transparency for "on/in" region.
- `obj.SetOnOut (char , char )` - Specify intensity/transparency for "on/out" region.
- `obj.SetOnOut (char a[2])` - Specify intensity/transparency for "on/out" region.
- `char = obj. GetOnOut ()` - Specify intensity/transparency for "on/out" region.
- `obj.SetInOn (char , char )` - Specify intensity/transparency for "in/on" region.
- `obj.SetInOn (char a[2])` - Specify intensity/transparency for "in/on" region.
- `char = obj. GetInOn ()` - Specify intensity/transparency for "in/on" region.
- `obj.SetOutOn (char , char )` - Specify intensity/transparency for "out/on" region.
- `obj.SetOutOn (char a[2])` - Specify intensity/transparency for "out/on" region.
- `char = obj. GetOutOn ()` - Specify intensity/transparency for "out/on" region.