VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | Protected Attributes
vtkSurfaceLICPainter Class Reference

painter that performs LIC on the surface of arbitrary geometry. More...

#include <vtkSurfaceLICPainter.h>

Inheritance diagram for vtkSurfaceLICPainter:
Inheritance graph
[legend]
Collaboration diagram for vtkSurfaceLICPainter:
Collaboration graph
[legend]

List of all members.

Public Types

typedef vtkPainter Superclass

Public Member Functions

virtual int IsA (const char *type)
vtkSurfaceLICPainterNewInstance () const
void PrintSelf (ostream &os, vtkIndent indent)
virtual void ReleaseGraphicsResources (vtkWindow *win)
virtual vtkDataObjectGetOutput ()
virtual void WriteTimerLog (const char *)
void SetEnable (int val)
virtual int GetEnable ()
void SetEnableOn ()
void SetEnableOff ()
void SetInputArrayToProcess (int fieldAssociation, const char *name)
void SetInputArrayToProcess (int fieldAssociation, int fieldAttributeType)
void SetNumberOfSteps (int val)
virtual int GetNumberOfSteps ()
void SetStepSize (double val)
virtual double GetStepSize ()
void SetNormalizeVectors (int val)
virtual void NormalizeVectorsOn ()
virtual void NormalizeVectorsOff ()
virtual int GetNormalizeVectors ()
void SetMaskOnSurface (int val)
virtual void MaskOnSurfaceOn ()
virtual void MaskOnSurfaceOff ()
virtual int GetMaskOnSurface ()
void SetMaskThreshold (double val)
virtual double GetMaskThreshold ()
void SetMaskColor (double *val)
void SetMaskColor (double r, double g, double b)
virtual doubleGetMaskColor ()
virtual void GetMaskColor (double &, double &, double &)
virtual void GetMaskColor (double[3])
void SetMaskIntensity (double val)
virtual double GetMaskIntensity ()
void SetEnhancedLIC (int val)
virtual int GetEnhancedLIC ()
virtual void EnhancedLICOn ()
virtual void EnhancedLICOff ()
virtual double GetLowLICContrastEnhancementFactor ()
virtual double GetHighLICContrastEnhancementFactor ()
void SetLowLICContrastEnhancementFactor (double val)
void SetHighLICContrastEnhancementFactor (double val)
virtual double GetLowColorContrastEnhancementFactor ()
virtual double GetHighColorContrastEnhancementFactor ()
void SetLowColorContrastEnhancementFactor (double val)
void SetHighColorContrastEnhancementFactor (double val)
void SetAntiAlias (int val)
virtual void AntiAliasOn ()
virtual void AntiAliasOff ()
virtual int GetAntiAlias ()
void SetLICIntensity (double val)
virtual double GetLICIntensity ()
void SetMapModeBias (double val)
virtual double GetMapModeBias ()
void SetNoiseDataSet (vtkImageData *data)
vtkImageDataGetNoiseDataSet ()
void SetGenerateNoiseTexture (int shouldGenerate)
virtual int GetGenerateNoiseTexture ()
void SetNoiseTextureSize (int length)
virtual int GetNoiseTextureSize ()
void SetNoiseGrainSize (int val)
virtual int GetNoiseGrainSize ()
void SetMinNoiseValue (double val)
void SetMaxNoiseValue (double val)
virtual double GetMinNoiseValue ()
virtual double GetMaxNoiseValue ()
void SetNumberOfNoiseLevels (int val)
virtual int GetNumberOfNoiseLevels ()
void SetImpulseNoiseProbability (double val)
virtual double GetImpulseNoiseProbability ()
void SetImpulseNoiseBackgroundValue (double val)
virtual double GetImpulseNoiseBackgroundValue ()
void SetNoiseGeneratorSeed (int val)
virtual int GetNoiseGeneratorSeed ()

Static Public Member Functions

static vtkSurfaceLICPainterNew ()
static int IsTypeOf (const char *type)
static vtkSurfaceLICPainterSafeDownCast (vtkObjectBase *o)
static bool IsSupported (vtkRenderWindow *context)

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 vtkSurfaceLICPainter ()
 ~vtkSurfaceLICPainter ()
virtual void ProcessInformation (vtkInformation *info)
virtual void GetGlobalMinMax (vtkPainterCommunicator *, float &, float &)
virtual vtkPainterCommunicatorCreateCommunicator (int)
void CreateCommunicator ()
void GetBounds (vtkDataObject *data, double bounds[6])
virtual void ReportReferences (vtkGarbageCollector *collector)
void UpdateNoiseImage (vtkRenderWindow *renWin)
void ValidateContext (vtkRenderer *renderer)
bool CanRenderSurfaceLIC (vtkActor *actor, int typeflags)
virtual void StartTimerEvent (const char *)
virtual void EndTimerEvent (const char *)
virtual void RenderInternal (vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly)
bool NeedToUpdateOutputData ()
virtual bool NeedToUpdateCommunicator ()
bool NeedToRenderGeometry (vtkRenderer *renderer, vtkActor *actor)
bool NeedToGatherVectors ()
bool NeedToComputeLIC ()
bool NeedToColorLIC ()
void SetUpdateAll ()
bool PrepareOutput ()
void InitializeResources ()
bool VectorsToTCoords (vtkDataObject *dataObj)
bool VectorsToTCoords (vtkDataSet *dataObj)
void ClearTCoords (vtkDataSet *data)

Protected Attributes

int NumberOfSteps
double StepSize
int NormalizeVectors
int EnhancedLIC
int EnhanceContrast
double LowLICContrastEnhancementFactor
double HighLICContrastEnhancementFactor
double LowColorContrastEnhancementFactor
double HighColorContrastEnhancementFactor
int AntiAlias
int MaskOnSurface
double MaskThreshold
double MaskIntensity
double MaskColor [3]
int ColorMode
double LICIntensity
double MapModeBias
int GenerateNoiseTexture
int NoiseType
int NoiseTextureSize
int NoiseGrainSize
double MinNoiseValue
double MaxNoiseValue
int NumberOfNoiseLevels
double ImpulseNoiseProbability
double ImpulseNoiseBackgroundValue
int NoiseGeneratorSeed
int AlwaysUpdate
int Enable
int CompositeStrategy
vtkDataObjectOutput
vtkInternals * Internals
enum  { ENHANCE_CONTRAST_OFF = 0, ENHANCE_CONTRAST_LIC = 1, ENHANCE_CONTRAST_COLOR = 3, ENHANCE_CONTRAST_BOTH = 4 }
void SetEnhanceContrast (int val)
virtual int GetEnhanceContrast ()
enum  { COLOR_MODE_BLEND = 0, COLOR_MODE_MAP }
void SetColorMode (int val)
virtual int GetColorMode ()
enum  { NOISE_TYPE_UNIFORM = 0, NOISE_TYPE_GAUSSIAN = 1, NOISE_TYPE_PERLIN = 2 }
void SetNoiseType (int type)
virtual int GetNoiseType ()
enum  { COMPOSITE_INPLACE = 0, COMPOSITE_INPLACE_DISJOINT = 1, COMPOSITE_BALANCED = 2, COMPOSITE_AUTO = 3 }
void SetCompositeStrategy (int val)
virtual int GetCompositeStrategy ()

Detailed Description

painter that performs LIC on the surface of arbitrary geometry.

vtkSurfaceLICPainter painter performs LIC on the surface of arbitrary geometry. Point vectors are used as the vector field for generating the LIC. The implementation was originallu based on "Image Space Based Visualization on Unsteady Flow on Surfaces" by Laramee, Jobard and Hauser appeared in proceedings of IEEE Visualization '03, pages 131-138.

Internal pipeline:

 noise
     |
     [ PROJ (GAT) (COMP) LIC2D (SCAT) SHADE (CCE) DEP]
     |                                               |
 vectors                                         surface LIC
 

PROj - prject vectors onto surface GAT - gather data for compositing and guard pixel generation (parallel only) COMP - composite gathered data LIC2D - line intengral convolution, see vtkLineIntegralConvolution2D. SCAT - scatter result (parallel only, not all compositors use it) SHADE - combine LIC and scalar colors CCE - color contrast enhancement (optional) DEP - depth test and copy to back buffer

The result of each stage is cached in a texture so that during interaction a stage may be skipped if the user has not modified its paramters or input data.

The parallel parts of algorithm are implemented in vtkPSurfaceLICPainter. Note that for MPI enabled builds this class will be automatically created by the object factory.

See also:
vtkSurfaceLICDefaultPainter vtkLineIntegralConvolution2D
Tests:
vtkSurfaceLICPainter (Tests)

Definition at line 72 of file vtkSurfaceLICPainter.h.


Member Typedef Documentation

Reimplemented from vtkPainter.

Reimplemented in vtkPSurfaceLICPainter.

Definition at line 76 of file vtkSurfaceLICPainter.h.


Member Enumeration Documentation

anonymous enum

Enable/Disable contrast and dynamic range correction stages. Contrast enhancement can be enabled during LIC computations (See vtkLineINtegralComvolution2D) and after the scalar colors have been combined with the LIC. The best appraoch for using this feature is to enable LIC enhancement, and only if the image is to dark or dull enable COLOR enhancement. Both stages are implemented by a histogram stretching algorithm. During LIC stages the contrast enhancement is applied to gray scale LIC image. During the scalar coloring stage the contrast enhancement is applied to the lightness channel of the color image in HSL color space. The histogram stretching is implemented as follows: L = (L-m)/(M-m) where, L is the fragment intensity/lightness, m is the intensity/lightness to map to 0, M is the intensity/lightness to map to 1. The default values of m and M are the min and max taken over all fragments. This increase the dynamic range and contrast in the LIC'd image, both of which are natuarly attenuated by the convolution proccess. Values ENHANCE_CONTRAST_OFF -- don't enhance LIC or scalar colors ENHANCE_CONTRAST_LIC -- enhance in LIC high-pass input and output ENHANCE_CONTRAST_COLOR -- enhance after scalars are combined with LIC ENHANCE_CONTRAST_BOTH -- enhance in LIC stages and after scalar colors This feature is disabled by default.

Enumerator:
ENHANCE_CONTRAST_OFF 
ENHANCE_CONTRAST_LIC 
ENHANCE_CONTRAST_COLOR 
ENHANCE_CONTRAST_BOTH 

Definition at line 211 of file vtkSurfaceLICPainter.h.

anonymous enum

Set/Get the color mode. The color mode controls how scalar colors are combined with the LIC in the final image. The BLEND mode combines scalar colors with LIC intensities with proportional blending controled by the LICIntensity parameter. The MAP mode combines scalar colors with LIC, by multiplication the HSL represntation of color's lightness. The default is COLOR_MODE_BLEND.

Enumerator:
COLOR_MODE_BLEND 
COLOR_MODE_MAP 

Definition at line 262 of file vtkSurfaceLICPainter.h.

anonymous enum

Select the statistical distribution of randomly generated noise values. With uniform noise there is greater control over the range of values in the noise texture. The Default is NOISE_TYPE_GAUSSIAN.

Enumerator:
NOISE_TYPE_UNIFORM 
NOISE_TYPE_GAUSSIAN 
NOISE_TYPE_PERLIN 

Definition at line 323 of file vtkSurfaceLICPainter.h.

anonymous enum

Control the screen space decomposition where LIC is computed.

Enumerator:
COMPOSITE_INPLACE 
COMPOSITE_INPLACE_DISJOINT 
COMPOSITE_BALANCED 
COMPOSITE_AUTO 

Definition at line 387 of file vtkSurfaceLICPainter.h.


Constructor & Destructor Documentation


Member Function Documentation

Create an object with Debug turned off, modified time initialized to zero, and reference counting on.

Reimplemented from vtkObject.

Reimplemented in vtkPSurfaceLICPainter.

static int vtkSurfaceLICPainter::IsTypeOf ( const char *  name) [static]

Return 1 if this class type is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPainter.

Reimplemented in vtkPSurfaceLICPainter.

virtual int vtkSurfaceLICPainter::IsA ( const char *  name) [virtual]

Return 1 if this class is the same type of (or a subclass of) the named class. Returns 0 otherwise. This method works in combination with vtkTypeMacro found in vtkSetGet.h.

Reimplemented from vtkPainter.

Reimplemented in vtkPSurfaceLICPainter.

Reimplemented from vtkPainter.

Reimplemented in vtkPSurfaceLICPainter.

virtual vtkObjectBase* vtkSurfaceLICPainter::NewInstanceInternal ( ) const [protected, virtual]

Reimplemented from vtkPainter.

Reimplemented in vtkPSurfaceLICPainter.

Reimplemented from vtkPainter.

Reimplemented in vtkPSurfaceLICPainter.

void vtkSurfaceLICPainter::PrintSelf ( ostream &  os,
vtkIndent  indent 
) [virtual]

Methods invoked by print to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.

Reimplemented from vtkPainter.

Reimplemented in vtkPSurfaceLICPainter.

virtual void vtkSurfaceLICPainter::ReleaseGraphicsResources ( vtkWindow win) [virtual]

Release any graphics resources that are being consumed by this mapper. The parameter window could be used to determine which graphic resources to release. In this case, releases the display lists.

Reimplemented from vtkPainter.

Get the output data object from this painter. Overridden to pass the input points (or cells) vectors as the tcoords to the deletage painters. This is required by the internal GLSL shader programs used for generating LIC.

Reimplemented from vtkPainter.

Enable/Disable this painter.

virtual int vtkSurfaceLICPainter::GetEnable ( ) [virtual]

Enable/Disable this painter.

Enable/Disable this painter.

Definition at line 94 of file vtkSurfaceLICPainter.h.

Enable/Disable this painter.

Definition at line 95 of file vtkSurfaceLICPainter.h.

void vtkSurfaceLICPainter::SetInputArrayToProcess ( int  fieldAssociation,
const char *  name 
)

Set the vectors to used for applying LIC. By default point vectors are used. Arguments are same as those passed to vtkAlgorithm::SetInputArrayToProcess except the first 3 arguments i.e. idx, port, connection.

void vtkSurfaceLICPainter::SetInputArrayToProcess ( int  fieldAssociation,
int  fieldAttributeType 
)

Set the vectors to used for applying LIC. By default point vectors are used. Arguments are same as those passed to vtkAlgorithm::SetInputArrayToProcess except the first 3 arguments i.e. idx, port, connection.

Get/Set the number of integration steps in each direction.

Get/Set the number of integration steps in each direction.

Get/Set the step size (in pixels).

Get/Set the step size (in pixels).

Normalize vectors during integration. When set(the default) the input vector field is normalized during integration, and each integration occurs over the same arclength. When not set each integration occurs over an arc length proportional to the field magnitude as is customary in traditional numerical methods. See, "Imaging Vector Fields Using Line Integral Convolution" for an axample where normalization is used. See, "Image Space Based Visualization of Unsteady Flow on Surfaces" for an example of where no normalization is used.

virtual void vtkSurfaceLICPainter::NormalizeVectorsOn ( ) [virtual]

Normalize vectors during integration. When set(the default) the input vector field is normalized during integration, and each integration occurs over the same arclength. When not set each integration occurs over an arc length proportional to the field magnitude as is customary in traditional numerical methods. See, "Imaging Vector Fields Using Line Integral Convolution" for an axample where normalization is used. See, "Image Space Based Visualization of Unsteady Flow on Surfaces" for an example of where no normalization is used.

virtual void vtkSurfaceLICPainter::NormalizeVectorsOff ( ) [virtual]

Normalize vectors during integration. When set(the default) the input vector field is normalized during integration, and each integration occurs over the same arclength. When not set each integration occurs over an arc length proportional to the field magnitude as is customary in traditional numerical methods. See, "Imaging Vector Fields Using Line Integral Convolution" for an axample where normalization is used. See, "Image Space Based Visualization of Unsteady Flow on Surfaces" for an example of where no normalization is used.

Normalize vectors during integration. When set(the default) the input vector field is normalized during integration, and each integration occurs over the same arclength. When not set each integration occurs over an arc length proportional to the field magnitude as is customary in traditional numerical methods. See, "Imaging Vector Fields Using Line Integral Convolution" for an axample where normalization is used. See, "Image Space Based Visualization of Unsteady Flow on Surfaces" for an example of where no normalization is used.

When set MaskOnSurface computes |V| for use in the fragment masking tests on the surface. When not set the original un-projected un-transformed |V| is used.

virtual void vtkSurfaceLICPainter::MaskOnSurfaceOn ( ) [virtual]

When set MaskOnSurface computes |V| for use in the fragment masking tests on the surface. When not set the original un-projected un-transformed |V| is used.

virtual void vtkSurfaceLICPainter::MaskOnSurfaceOff ( ) [virtual]

When set MaskOnSurface computes |V| for use in the fragment masking tests on the surface. When not set the original un-projected un-transformed |V| is used.

When set MaskOnSurface computes |V| for use in the fragment masking tests on the surface. When not set the original un-projected un-transformed |V| is used.

The MaskThreshold controls the rendering of fragments in stagnant regions of flow. // In these regions LIC noise texture will be masked, where |V| < MaskThreshold is satisifed. The masking process blends a the MaskColor with the scalar color of the surface proportional to MaskIntesnsity. See MaskIntensity for more information on the blending algorithm. This blending allows one control over the masking process so that masked fragments may be: highlighted (by setting a unique mask color and mask intensity > 0), made invisible with and without passing the un-convolved noise texture (by setting mask intensity 0), made to blend into the LIC. MaskThreshold units are in the original vector space. Note that the threshold can be applied to the original vector field or to the surface projected vector field. See MaskOnSurface.

The MaskThreshold controls the rendering of fragments in stagnant regions of flow. // In these regions LIC noise texture will be masked, where |V| < MaskThreshold is satisifed. The masking process blends a the MaskColor with the scalar color of the surface proportional to MaskIntesnsity. See MaskIntensity for more information on the blending algorithm. This blending allows one control over the masking process so that masked fragments may be: highlighted (by setting a unique mask color and mask intensity > 0), made invisible with and without passing the un-convolved noise texture (by setting mask intensity 0), made to blend into the LIC. MaskThreshold units are in the original vector space. Note that the threshold can be applied to the original vector field or to the surface projected vector field. See MaskOnSurface.

The MaskColor is used on masked fragments. The default of (0.5, 0.5, 0.5) makes the masked fragments look similar to the LIC'd fragments. The mask color is applied only when MaskIntensity > 0.

void vtkSurfaceLICPainter::SetMaskColor ( double  r,
double  g,
double  b 
) [inline]

The MaskColor is used on masked fragments. The default of (0.5, 0.5, 0.5) makes the masked fragments look similar to the LIC'd fragments. The mask color is applied only when MaskIntensity > 0.

Definition at line 166 of file vtkSurfaceLICPainter.h.

The MaskColor is used on masked fragments. The default of (0.5, 0.5, 0.5) makes the masked fragments look similar to the LIC'd fragments. The mask color is applied only when MaskIntensity > 0.

virtual void vtkSurfaceLICPainter::GetMaskColor ( double ,
double ,
double  
) [virtual]

The MaskColor is used on masked fragments. The default of (0.5, 0.5, 0.5) makes the masked fragments look similar to the LIC'd fragments. The mask color is applied only when MaskIntensity > 0.

virtual void vtkSurfaceLICPainter::GetMaskColor ( double  [3]) [virtual]

The MaskColor is used on masked fragments. The default of (0.5, 0.5, 0.5) makes the masked fragments look similar to the LIC'd fragments. The mask color is applied only when MaskIntensity > 0.

The MaskIntensity controls the blending of the mask color and the geometry color. The color of masked fragments is given by: c = maskColor * maskIntensity + geomColor * (1 - maskIntensity) The default value of 0.0 results in the geometry color being used.

The MaskIntensity controls the blending of the mask color and the geometry color. The color of masked fragments is given by: c = maskColor * maskIntensity + geomColor * (1 - maskIntensity) The default value of 0.0 results in the geometry color being used.

EnhancedLIC mean compute the LIC twice with the second pass using the edge-enhanced result of the first pass as a noise texture. Edge enhancedment is made by a simple Laplace convolution.

EnhancedLIC mean compute the LIC twice with the second pass using the edge-enhanced result of the first pass as a noise texture. Edge enhancedment is made by a simple Laplace convolution.

virtual void vtkSurfaceLICPainter::EnhancedLICOn ( ) [virtual]

EnhancedLIC mean compute the LIC twice with the second pass using the edge-enhanced result of the first pass as a noise texture. Edge enhancedment is made by a simple Laplace convolution.

virtual void vtkSurfaceLICPainter::EnhancedLICOff ( ) [virtual]

EnhancedLIC mean compute the LIC twice with the second pass using the edge-enhanced result of the first pass as a noise texture. Edge enhancedment is made by a simple Laplace convolution.

Enable/Disable contrast and dynamic range correction stages. Contrast enhancement can be enabled during LIC computations (See vtkLineINtegralComvolution2D) and after the scalar colors have been combined with the LIC. The best appraoch for using this feature is to enable LIC enhancement, and only if the image is to dark or dull enable COLOR enhancement. Both stages are implemented by a histogram stretching algorithm. During LIC stages the contrast enhancement is applied to gray scale LIC image. During the scalar coloring stage the contrast enhancement is applied to the lightness channel of the color image in HSL color space. The histogram stretching is implemented as follows: L = (L-m)/(M-m) where, L is the fragment intensity/lightness, m is the intensity/lightness to map to 0, M is the intensity/lightness to map to 1. The default values of m and M are the min and max taken over all fragments. This increase the dynamic range and contrast in the LIC'd image, both of which are natuarly attenuated by the convolution proccess. Values ENHANCE_CONTRAST_OFF -- don't enhance LIC or scalar colors ENHANCE_CONTRAST_LIC -- enhance in LIC high-pass input and output ENHANCE_CONTRAST_COLOR -- enhance after scalars are combined with LIC ENHANCE_CONTRAST_BOTH -- enhance in LIC stages and after scalar colors This feature is disabled by default.

Enable/Disable contrast and dynamic range correction stages. Contrast enhancement can be enabled during LIC computations (See vtkLineINtegralComvolution2D) and after the scalar colors have been combined with the LIC. The best appraoch for using this feature is to enable LIC enhancement, and only if the image is to dark or dull enable COLOR enhancement. Both stages are implemented by a histogram stretching algorithm. During LIC stages the contrast enhancement is applied to gray scale LIC image. During the scalar coloring stage the contrast enhancement is applied to the lightness channel of the color image in HSL color space. The histogram stretching is implemented as follows: L = (L-m)/(M-m) where, L is the fragment intensity/lightness, m is the intensity/lightness to map to 0, M is the intensity/lightness to map to 1. The default values of m and M are the min and max taken over all fragments. This increase the dynamic range and contrast in the LIC'd image, both of which are natuarly attenuated by the convolution proccess. Values ENHANCE_CONTRAST_OFF -- don't enhance LIC or scalar colors ENHANCE_CONTRAST_LIC -- enhance in LIC high-pass input and output ENHANCE_CONTRAST_COLOR -- enhance after scalars are combined with LIC ENHANCE_CONTRAST_BOTH -- enhance in LIC stages and after scalar colors This feature is disabled by default.

This feature is used to fine tune the contrast enhancement. There are two modes AUTOMATIC and MANUAL.In AUTOMATIC mode values are provided indicating the fraction of the range to adjust M and m by, during contrast enahncement histogram stretching. M and m are the intensity/lightness values that map to 1 and 0. (see EnhanceContrast for an explanation of the mapping procedure). m and M are computed using the factors as follows: m = min(C) + mFactor * (max(C) - min(C)) M = max(C) - MFactor * (max(C) - min(C)) the default values for mFactor and MFactor are 0 which result in m = min(C), M = max(C), taken over the entire image. Modifying mFactor and MFactor above or below zero provide control over the saturation/ de-saturation during contrast enhancement.

This feature is used to fine tune the contrast enhancement. There are two modes AUTOMATIC and MANUAL.In AUTOMATIC mode values are provided indicating the fraction of the range to adjust M and m by, during contrast enahncement histogram stretching. M and m are the intensity/lightness values that map to 1 and 0. (see EnhanceContrast for an explanation of the mapping procedure). m and M are computed using the factors as follows: m = min(C) + mFactor * (max(C) - min(C)) M = max(C) - MFactor * (max(C) - min(C)) the default values for mFactor and MFactor are 0 which result in m = min(C), M = max(C), taken over the entire image. Modifying mFactor and MFactor above or below zero provide control over the saturation/ de-saturation during contrast enhancement.

This feature is used to fine tune the contrast enhancement. There are two modes AUTOMATIC and MANUAL.In AUTOMATIC mode values are provided indicating the fraction of the range to adjust M and m by, during contrast enahncement histogram stretching. M and m are the intensity/lightness values that map to 1 and 0. (see EnhanceContrast for an explanation of the mapping procedure). m and M are computed using the factors as follows: m = min(C) + mFactor * (max(C) - min(C)) M = max(C) - MFactor * (max(C) - min(C)) the default values for mFactor and MFactor are 0 which result in m = min(C), M = max(C), taken over the entire image. Modifying mFactor and MFactor above or below zero provide control over the saturation/ de-saturation during contrast enhancement.

This feature is used to fine tune the contrast enhancement. There are two modes AUTOMATIC and MANUAL.In AUTOMATIC mode values are provided indicating the fraction of the range to adjust M and m by, during contrast enahncement histogram stretching. M and m are the intensity/lightness values that map to 1 and 0. (see EnhanceContrast for an explanation of the mapping procedure). m and M are computed using the factors as follows: m = min(C) + mFactor * (max(C) - min(C)) M = max(C) - MFactor * (max(C) - min(C)) the default values for mFactor and MFactor are 0 which result in m = min(C), M = max(C), taken over the entire image. Modifying mFactor and MFactor above or below zero provide control over the saturation/ de-saturation during contrast enhancement.

This feature is used to fine tune the contrast enhancement. There are two modes AUTOMATIC and MANUAL.In AUTOMATIC mode values are provided indicating the fraction of the range to adjust M and m by, during contrast enahncement histogram stretching. M and m are the intensity/lightness values that map to 1 and 0. (see EnhanceContrast for an explanation of the mapping procedure). m and M are computed using the factors as follows: m = min(C) + mFactor * (max(C) - min(C)) M = max(C) - MFactor * (max(C) - min(C)) the default values for mFactor and MFactor are 0 which result in m = min(C), M = max(C), taken over the entire image. Modifying mFactor and MFactor above or below zero provide control over the saturation/ de-saturation during contrast enhancement.

This feature is used to fine tune the contrast enhancement. There are two modes AUTOMATIC and MANUAL.In AUTOMATIC mode values are provided indicating the fraction of the range to adjust M and m by, during contrast enahncement histogram stretching. M and m are the intensity/lightness values that map to 1 and 0. (see EnhanceContrast for an explanation of the mapping procedure). m and M are computed using the factors as follows: m = min(C) + mFactor * (max(C) - min(C)) M = max(C) - MFactor * (max(C) - min(C)) the default values for mFactor and MFactor are 0 which result in m = min(C), M = max(C), taken over the entire image. Modifying mFactor and MFactor above or below zero provide control over the saturation/ de-saturation during contrast enhancement.

This feature is used to fine tune the contrast enhancement. There are two modes AUTOMATIC and MANUAL.In AUTOMATIC mode values are provided indicating the fraction of the range to adjust M and m by, during contrast enahncement histogram stretching. M and m are the intensity/lightness values that map to 1 and 0. (see EnhanceContrast for an explanation of the mapping procedure). m and M are computed using the factors as follows: m = min(C) + mFactor * (max(C) - min(C)) M = max(C) - MFactor * (max(C) - min(C)) the default values for mFactor and MFactor are 0 which result in m = min(C), M = max(C), taken over the entire image. Modifying mFactor and MFactor above or below zero provide control over the saturation/ de-saturation during contrast enhancement.

This feature is used to fine tune the contrast enhancement. There are two modes AUTOMATIC and MANUAL.In AUTOMATIC mode values are provided indicating the fraction of the range to adjust M and m by, during contrast enahncement histogram stretching. M and m are the intensity/lightness values that map to 1 and 0. (see EnhanceContrast for an explanation of the mapping procedure). m and M are computed using the factors as follows: m = min(C) + mFactor * (max(C) - min(C)) M = max(C) - MFactor * (max(C) - min(C)) the default values for mFactor and MFactor are 0 which result in m = min(C), M = max(C), taken over the entire image. Modifying mFactor and MFactor above or below zero provide control over the saturation/ de-saturation during contrast enhancement.

Enable/Disable the anti-aliasing pass. This optional pass (disabled by default) can be enabled to reduce jagged patterns in the final LIC image. Values greater than 0 control the number of iterations, 1 is typically sufficient.

virtual void vtkSurfaceLICPainter::AntiAliasOn ( ) [virtual]

Enable/Disable the anti-aliasing pass. This optional pass (disabled by default) can be enabled to reduce jagged patterns in the final LIC image. Values greater than 0 control the number of iterations, 1 is typically sufficient.

virtual void vtkSurfaceLICPainter::AntiAliasOff ( ) [virtual]

Enable/Disable the anti-aliasing pass. This optional pass (disabled by default) can be enabled to reduce jagged patterns in the final LIC image. Values greater than 0 control the number of iterations, 1 is typically sufficient.

virtual int vtkSurfaceLICPainter::GetAntiAlias ( ) [virtual]

Enable/Disable the anti-aliasing pass. This optional pass (disabled by default) can be enabled to reduce jagged patterns in the final LIC image. Values greater than 0 control the number of iterations, 1 is typically sufficient.

Set/Get the color mode. The color mode controls how scalar colors are combined with the LIC in the final image. The BLEND mode combines scalar colors with LIC intensities with proportional blending controled by the LICIntensity parameter. The MAP mode combines scalar colors with LIC, by multiplication the HSL represntation of color's lightness. The default is COLOR_MODE_BLEND.

virtual int vtkSurfaceLICPainter::GetColorMode ( ) [virtual]

Set/Get the color mode. The color mode controls how scalar colors are combined with the LIC in the final image. The BLEND mode combines scalar colors with LIC intensities with proportional blending controled by the LICIntensity parameter. The MAP mode combines scalar colors with LIC, by multiplication the HSL represntation of color's lightness. The default is COLOR_MODE_BLEND.

Factor used when blend mode is set to COLOR_MODE_BLEND. This controls the contribution of the LIC in the final output image as follows: c = LIC * LICIntensity + scalar * (1 - LICIntensity); 0.0 produces same result as disabling LIC altogether, while 1.0 implies show LIC result alone.

Factor used when blend mode is set to COLOR_MODE_BLEND. This controls the contribution of the LIC in the final output image as follows: c = LIC * LICIntensity + scalar * (1 - LICIntensity); 0.0 produces same result as disabling LIC altogether, while 1.0 implies show LIC result alone.

Factor used when blend mode is set to COLOR_MODE_MAP. This adds a bias to the LIC image. The purpose of this is to adjust the brightness when a brighter image is desired. The default of 0.0 results in no change. Values gretaer than 0.0 will brighten the image while values less than 0.0 darken the image.

Factor used when blend mode is set to COLOR_MODE_MAP. This adds a bias to the LIC image. The purpose of this is to adjust the brightness when a brighter image is desired. The default of 0.0 results in no change. Values gretaer than 0.0 will brighten the image while values less than 0.0 darken the image.

Set the data containing a noise array as active scalars. Active scalars array will be converted into a texture for use as noise in the LIC process. Noise datasets are expected to be gray scale.

Set the data containing a noise array as active scalars. Active scalars array will be converted into a texture for use as noise in the LIC process. Noise datasets are expected to be gray scale.

Set/Get the noise texture source. When not set the default 200x200 white noise texture is used (see VTKData/Data/Data/noise.png). When set a noise texture is generated based on the following parameters: NoiseType - select noise type. Gaussian, Uniform, etc NoiseTextureSize - number of pixels in square noise texture(side) NoiseGrainSize - number of pixels each noise value spans(side) MinNoiseValue - minimum noise color >=0 && < MaxNoiseValue MaxNoiseValue - maximum noise color <=1

MinNoiseValue NumberOfNoiseLevels - number of discrete noise

colors ImpulseNoiseProbability - impulse noise is generated when < 1 ImpulseNoiseBackgroundValue - the background color for untouched pixels NoiseGeneratorSeed - seed the random number generators Changing the noise texture gives one greater control over the look of the final image. The default is 0 which results in the use of a static 200x200 Gaussian noise texture. See VTKData/Data/Data/noise.png.

Set/Get the noise texture source. When not set the default 200x200 white noise texture is used (see VTKData/Data/Data/noise.png). When set a noise texture is generated based on the following parameters: NoiseType - select noise type. Gaussian, Uniform, etc NoiseTextureSize - number of pixels in square noise texture(side) NoiseGrainSize - number of pixels each noise value spans(side) MinNoiseValue - minimum noise color >=0 && < MaxNoiseValue MaxNoiseValue - maximum noise color <=1

MinNoiseValue NumberOfNoiseLevels - number of discrete noise

colors ImpulseNoiseProbability - impulse noise is generated when < 1 ImpulseNoiseBackgroundValue - the background color for untouched pixels NoiseGeneratorSeed - seed the random number generators Changing the noise texture gives one greater control over the look of the final image. The default is 0 which results in the use of a static 200x200 Gaussian noise texture. See VTKData/Data/Data/noise.png.

Select the statistical distribution of randomly generated noise values. With uniform noise there is greater control over the range of values in the noise texture. The Default is NOISE_TYPE_GAUSSIAN.

virtual int vtkSurfaceLICPainter::GetNoiseType ( ) [virtual]

Select the statistical distribution of randomly generated noise values. With uniform noise there is greater control over the range of values in the noise texture. The Default is NOISE_TYPE_GAUSSIAN.

Set/Get the side length in pixels of the noise texture. The texture will be length^2 pixels in area.

Set/Get the side length in pixels of the noise texture. The texture will be length^2 pixels in area.

Set/Get the side length in pixels of the noise values in the noise texture. Each noise value will be length^2 pixels in area.

Set/Get the side length in pixels of the noise values in the noise texture. Each noise value will be length^2 pixels in area.

Set/Get the minimum and mximum gray scale values that the generated noise can take on. The generated noise will be in the range of MinNoiseValue to MaxNoiseValue. Values are clamped within 0 to 1. MinNoiseValue must be less than MaxNoiseValue.

Set/Get the minimum and mximum gray scale values that the generated noise can take on. The generated noise will be in the range of MinNoiseValue to MaxNoiseValue. Values are clamped within 0 to 1. MinNoiseValue must be less than MaxNoiseValue.

Set/Get the minimum and mximum gray scale values that the generated noise can take on. The generated noise will be in the range of MinNoiseValue to MaxNoiseValue. Values are clamped within 0 to 1. MinNoiseValue must be less than MaxNoiseValue.

Set/Get the minimum and mximum gray scale values that the generated noise can take on. The generated noise will be in the range of MinNoiseValue to MaxNoiseValue. Values are clamped within 0 to 1. MinNoiseValue must be less than MaxNoiseValue.

Set/Get the number of discrete values a noise pixel may take on. Default 1024.

Set/Get the number of discrete values a noise pixel may take on. Default 1024.

Control the density of of the noise. A value of 1.0 produces uniform random noise while values < 1.0 produce impulse noise with the given probabilty.

Control the density of of the noise. A value of 1.0 produces uniform random noise while values < 1.0 produce impulse noise with the given probabilty.

The color to use for untouched pixels when impulse noise probability < 1.

The color to use for untouched pixels when impulse noise probability < 1.

Set/Get the seed value used by the random number generator.

Set/Get the seed value used by the random number generator.

Control the screen space decomposition where LIC is computed.

Control the screen space decomposition where LIC is computed.

static bool vtkSurfaceLICPainter::IsSupported ( vtkRenderWindow context) [static]

Returns true if the rendering context supports extensions needed by this painter.

virtual void vtkSurfaceLICPainter::WriteTimerLog ( const char *  ) [inline, virtual]

Methods used for parallel benchmarks. Use cmake to define vtkSurfaceLICPainterTIME to enable benchmarks. During each update timing information is stored, it can be written to disk by calling WriteLog.

Reimplemented in vtkPSurfaceLICPainter.

Definition at line 405 of file vtkSurfaceLICPainter.h.

virtual void vtkSurfaceLICPainter::ProcessInformation ( vtkInformation info) [protected, virtual]

Called before RenderInternal() if the Information has been changed since the last time this method was called. We use this to detect when LUT has changed.

Reimplemented from vtkPainter.

virtual void vtkSurfaceLICPainter::GetGlobalMinMax ( vtkPainterCommunicator ,
float ,
float  
) [inline, protected, virtual]

Get the min/max across all ranks. min/max are in/out. In serial operation this is a no-op, in parallel it is a global collective reduction.

Reimplemented in vtkPSurfaceLICPainter.

Definition at line 419 of file vtkSurfaceLICPainter.h.

virtual void vtkSurfaceLICPainter::StartTimerEvent ( const char *  ) [inline, protected, virtual]

Methods used for parallel benchmarks. Use cmake to define vtkSurfaceLICPainterTIME to enable benchmarks. During each update timing information is stored, it can be written to disk by calling WriteLog.

Reimplemented in vtkPSurfaceLICPainter.

Definition at line 426 of file vtkSurfaceLICPainter.h.

virtual void vtkSurfaceLICPainter::EndTimerEvent ( const char *  ) [inline, protected, virtual]

Methods used for parallel benchmarks. Use cmake to define vtkSurfaceLICPainterTIME to enable benchmarks. During each update timing information is stored, it can be written to disk by calling WriteLog.

Reimplemented in vtkPSurfaceLICPainter.

Definition at line 427 of file vtkSurfaceLICPainter.h.

Creates a new communicator with/without the calling processes as indicated by the passed in flag, if not 0 the calling process is included in the new communicator. In parallel this call is mpi collective on the world communicator. In serial this is a no-op.

Reimplemented in vtkPSurfaceLICPainter.

Creates a new communicator for internal use based on this rank's visible data.

void vtkSurfaceLICPainter::GetBounds ( vtkDataObject data,
double  bounds[6] 
) [protected]

Computes data bounds.

virtual void vtkSurfaceLICPainter::ReportReferences ( vtkGarbageCollector collector) [protected, virtual]

Take part in garbage collection.

Reimplemented from vtkPainter.

Updates the noise texture, downsampling by the requested sample rate.

virtual void vtkSurfaceLICPainter::RenderInternal ( vtkRenderer renderer,
vtkActor actor,
unsigned long  typeflags,
bool  forceCompileOnly 
) [protected, virtual]

Performs the actual rendering. Subclasses may override this method. default implementation merely call a Render on the DelegatePainter, if any. When RenderInternal() is called, it is assured that the DelegatePainter is in sync with this painter i.e. UpdateDelegatePainter() has been called.

Reimplemented from vtkPainter.

void vtkSurfaceLICPainter::ValidateContext ( vtkRenderer renderer) [protected]

Look for changes that would trigger stage updates

Return false if stage can be skipped

virtual bool vtkSurfaceLICPainter::NeedToUpdateCommunicator ( ) [protected, virtual]

Return false if stage can be skipped

Reimplemented in vtkPSurfaceLICPainter.

bool vtkSurfaceLICPainter::NeedToRenderGeometry ( vtkRenderer renderer,
vtkActor actor 
) [protected]

Return false if stage can be skipped

Return false if stage can be skipped

Return false if stage can be skipped

Return false if stage can be skipped

void vtkSurfaceLICPainter::SetUpdateAll ( ) [protected]

Return false if stage can be skipped

resoucre allocators

resoucre allocators

bool vtkSurfaceLICPainter::VectorsToTCoords ( vtkDataObject dataObj) [protected]

set tcoords with vectors

bool vtkSurfaceLICPainter::VectorsToTCoords ( vtkDataSet dataObj) [protected]

set tcoords with vectors

void vtkSurfaceLICPainter::ClearTCoords ( vtkDataSet data) [protected]

set tcoords with vectors

bool vtkSurfaceLICPainter::CanRenderSurfaceLIC ( vtkActor actor,
int  typeflags 
) [protected]

Returns true when rendering LIC is possible.


Member Data Documentation

Definition at line 495 of file vtkSurfaceLICPainter.h.

Definition at line 496 of file vtkSurfaceLICPainter.h.

Definition at line 497 of file vtkSurfaceLICPainter.h.

Definition at line 499 of file vtkSurfaceLICPainter.h.

Definition at line 500 of file vtkSurfaceLICPainter.h.

Definition at line 501 of file vtkSurfaceLICPainter.h.

Definition at line 502 of file vtkSurfaceLICPainter.h.

Definition at line 503 of file vtkSurfaceLICPainter.h.

Definition at line 504 of file vtkSurfaceLICPainter.h.

Definition at line 505 of file vtkSurfaceLICPainter.h.

Definition at line 507 of file vtkSurfaceLICPainter.h.

Definition at line 508 of file vtkSurfaceLICPainter.h.

Definition at line 509 of file vtkSurfaceLICPainter.h.

Definition at line 510 of file vtkSurfaceLICPainter.h.

Definition at line 512 of file vtkSurfaceLICPainter.h.

Definition at line 513 of file vtkSurfaceLICPainter.h.

Definition at line 514 of file vtkSurfaceLICPainter.h.

Definition at line 516 of file vtkSurfaceLICPainter.h.

Definition at line 517 of file vtkSurfaceLICPainter.h.

Definition at line 518 of file vtkSurfaceLICPainter.h.

Definition at line 519 of file vtkSurfaceLICPainter.h.

Definition at line 520 of file vtkSurfaceLICPainter.h.

Definition at line 521 of file vtkSurfaceLICPainter.h.

Definition at line 522 of file vtkSurfaceLICPainter.h.

Definition at line 523 of file vtkSurfaceLICPainter.h.

Definition at line 524 of file vtkSurfaceLICPainter.h.

Definition at line 525 of file vtkSurfaceLICPainter.h.

Definition at line 527 of file vtkSurfaceLICPainter.h.

Definition at line 528 of file vtkSurfaceLICPainter.h.

Definition at line 529 of file vtkSurfaceLICPainter.h.

Definition at line 531 of file vtkSurfaceLICPainter.h.

vtkInternals* vtkSurfaceLICPainter::Internals [protected]

Definition at line 532 of file vtkSurfaceLICPainter.h.


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