VTK
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
vtkPSurfaceLICInterface Class Reference

parallel parts of the vtkSurfaceLICInterface More...

#include <vtkPSurfaceLICInterface.h>

Inheritance diagram for vtkPSurfaceLICInterface:
[legend]
Collaboration diagram for vtkPSurfaceLICInterface:
[legend]

Public Types

typedef vtkSurfaceLICInterface Superclass
 
- Public Types inherited from vtkSurfaceLICInterface
typedef vtkObject Superclass
 
enum  { ENHANCE_CONTRAST_OFF =0, ENHANCE_CONTRAST_LIC =1, ENHANCE_CONTRAST_COLOR =3, ENHANCE_CONTRAST_BOTH =4 }
 Enable/Disable contrast and dynamic range correction stages. More...
 
enum  { COLOR_MODE_BLEND =0, COLOR_MODE_MAP }
 Set/Get the color mode. More...
 
enum  { NOISE_TYPE_UNIFORM =0, NOISE_TYPE_GAUSSIAN =1, NOISE_TYPE_PERLIN =2 }
 Select the statistical distribution of randomly generated noise values. More...
 
enum  { COMPOSITE_INPLACE =0, COMPOSITE_INPLACE_DISJOINT =1, COMPOSITE_BALANCED =2, COMPOSITE_AUTO =3 }
 Control the screen space decomposition where LIC is computed. More...
 

Public Member Functions

virtual vtkTypeBool IsA (const char *type)
 Return 1 if this class is the same type of (or a subclass of) the named class. More...
 
vtkPSurfaceLICInterfaceNewInstance () const
 
void PrintSelf (ostream &os, vtkIndent indent) override
 Methods invoked by print to print information about the object including superclasses. More...
 
virtual void WriteTimerLog (const char *fileName) override
 Methods used for parallel benchmarks. More...
 
- Public Member Functions inherited from vtkSurfaceLICInterface
vtkSurfaceLICInterfaceNewInstance () const
 
void ShallowCopy (vtkSurfaceLICInterface *m)
 Make a shallow copy of this interface. More...
 
virtual void ReleaseGraphicsResources (vtkWindow *win)
 Release any graphics resources that are being consumed by this mapper. More...
 
bool CanRenderSurfaceLIC (vtkActor *actor)
 Returns true when rendering LIC is possible. More...
 
void ValidateContext (vtkRenderer *renderer)
 Look for changes that would trigger stage updates. More...
 
void CreateCommunicator (vtkRenderer *, vtkActor *, vtkDataObject *data)
 Creates a new communicator for internal use based on this rank's visible data. More...
 
vtkPainterCommunicatorGetCommunicator ()
 
void UpdateCommunicator (vtkRenderer *renderer, vtkActor *actor, vtkDataObject *data)
 Called from a mapper, does what is needed to make sure the communicators are ready. More...
 
void InitializeResources ()
 resoucre allocators More...
 
void PrepareForGeometry ()
 
void CompletedGeometry ()
 
void GatherVectors ()
 
void ApplyLIC ()
 
void CombineColorsAndLIC ()
 
void CopyToScreen ()
 
void SetNumberOfSteps (int val)
 Get/Set the number of integration steps in each direction. More...
 
virtual int GetNumberOfSteps ()
 Get/Set the number of integration steps in each direction. More...
 
void SetStepSize (double val)
 Get/Set the step size (in pixels). More...
 
virtual double GetStepSize ()
 Get/Set the step size (in pixels). More...
 
void SetNormalizeVectors (int val)
 Normalize vectors during integration. More...
 
virtual void NormalizeVectorsOn ()
 Normalize vectors during integration. More...
 
virtual void NormalizeVectorsOff ()
 Normalize vectors during integration. More...
 
virtual int GetNormalizeVectors ()
 Normalize vectors during integration. More...
 
void SetMaskOnSurface (int val)
 When set MaskOnSurface computes |V| for use in the fragment masking tests on the surface. More...
 
virtual void MaskOnSurfaceOn ()
 When set MaskOnSurface computes |V| for use in the fragment masking tests on the surface. More...
 
virtual void MaskOnSurfaceOff ()
 When set MaskOnSurface computes |V| for use in the fragment masking tests on the surface. More...
 
virtual int GetMaskOnSurface ()
 When set MaskOnSurface computes |V| for use in the fragment masking tests on the surface. More...
 
void SetMaskThreshold (double val)
 The MaskThreshold controls the rendering of fragments in stagnant regions of flow. More...
 
virtual double GetMaskThreshold ()
 The MaskThreshold controls the rendering of fragments in stagnant regions of flow. More...
 
void SetMaskColor (double *val)
 The MaskColor is used on masked fragments. More...
 
void SetMaskColor (double r, double g, double b)
 The MaskColor is used on masked fragments. More...
 
virtual doubleGetMaskColor ()
 The MaskColor is used on masked fragments. More...
 
virtual void GetMaskColor (double &, double &, double &)
 The MaskColor is used on masked fragments. More...
 
virtual void GetMaskColor (double[3])
 The MaskColor is used on masked fragments. More...
 
void SetMaskIntensity (double val)
 The MaskIntensity controls the blending of the mask color and the geometry color. More...
 
virtual double GetMaskIntensity ()
 The MaskIntensity controls the blending of the mask color and the geometry color. More...
 
void SetEnhancedLIC (int val)
 EnhancedLIC mean compute the LIC twice with the second pass using the edge-enhanced result of the first pass as a noise texture. More...
 
virtual int GetEnhancedLIC ()
 EnhancedLIC mean compute the LIC twice with the second pass using the edge-enhanced result of the first pass as a noise texture. More...
 
virtual void EnhancedLICOn ()
 EnhancedLIC mean compute the LIC twice with the second pass using the edge-enhanced result of the first pass as a noise texture. More...
 
virtual void EnhancedLICOff ()
 EnhancedLIC mean compute the LIC twice with the second pass using the edge-enhanced result of the first pass as a noise texture. More...
 
virtual double GetLowLICContrastEnhancementFactor ()
 This feature is used to fine tune the contrast enhancement. More...
 
virtual double GetHighLICContrastEnhancementFactor ()
 This feature is used to fine tune the contrast enhancement. More...
 
void SetLowLICContrastEnhancementFactor (double val)
 This feature is used to fine tune the contrast enhancement. More...
 
void SetHighLICContrastEnhancementFactor (double val)
 This feature is used to fine tune the contrast enhancement. More...
 
virtual double GetLowColorContrastEnhancementFactor ()
 This feature is used to fine tune the contrast enhancement. More...
 
virtual double GetHighColorContrastEnhancementFactor ()
 This feature is used to fine tune the contrast enhancement. More...
 
void SetLowColorContrastEnhancementFactor (double val)
 This feature is used to fine tune the contrast enhancement. More...
 
void SetHighColorContrastEnhancementFactor (double val)
 This feature is used to fine tune the contrast enhancement. More...
 
void SetAntiAlias (int val)
 Enable/Disable the anti-aliasing pass. More...
 
virtual void AntiAliasOn ()
 Enable/Disable the anti-aliasing pass. More...
 
virtual void AntiAliasOff ()
 Enable/Disable the anti-aliasing pass. More...
 
virtual int GetAntiAlias ()
 Enable/Disable the anti-aliasing pass. More...
 
void SetLICIntensity (double val)
 Factor used when blend mode is set to COLOR_MODE_BLEND. More...
 
virtual double GetLICIntensity ()
 Factor used when blend mode is set to COLOR_MODE_BLEND. More...
 
void SetMapModeBias (double val)
 Factor used when blend mode is set to COLOR_MODE_MAP. More...
 
virtual double GetMapModeBias ()
 Factor used when blend mode is set to COLOR_MODE_MAP. More...
 
void SetNoiseDataSet (vtkImageData *data)
 Set the data containing a noise array as active scalars. More...
 
vtkImageDataGetNoiseDataSet ()
 Set the data containing a noise array as active scalars. More...
 
void SetGenerateNoiseTexture (int shouldGenerate)
 Set/Get the noise texture source. More...
 
virtual int GetGenerateNoiseTexture ()
 Set/Get the noise texture source. More...
 
void SetNoiseTextureSize (int length)
 Set/Get the side length in pixels of the noise texture. More...
 
virtual int GetNoiseTextureSize ()
 Set/Get the side length in pixels of the noise texture. More...
 
void SetNoiseGrainSize (int val)
 Each noise value will be length^2 pixels in area. More...
 
virtual int GetNoiseGrainSize ()
 Each noise value will be length^2 pixels in area. More...
 
void SetMinNoiseValue (double val)
 Set/Get the minimum and mximum gray scale values that the generated noise can take on. More...
 
void SetMaxNoiseValue (double val)
 Set/Get the minimum and mximum gray scale values that the generated noise can take on. More...
 
virtual double GetMinNoiseValue ()
 Set/Get the minimum and mximum gray scale values that the generated noise can take on. More...
 
virtual double GetMaxNoiseValue ()
 Set/Get the minimum and mximum gray scale values that the generated noise can take on. More...
 
void SetNumberOfNoiseLevels (int val)
 Set/Get the number of discrete values a noise pixel may take on. More...
 
virtual int GetNumberOfNoiseLevels ()
 Set/Get the number of discrete values a noise pixel may take on. More...
 
void SetImpulseNoiseProbability (double val)
 Control the density of the noise. More...
 
virtual double GetImpulseNoiseProbability ()
 Control the density of the noise. More...
 
void SetImpulseNoiseBackgroundValue (double val)
 The color to use for untouched pixels when impulse noise probability < 1. More...
 
virtual double GetImpulseNoiseBackgroundValue ()
 The color to use for untouched pixels when impulse noise probability < 1. More...
 
void SetNoiseGeneratorSeed (int val)
 Set/Get the seed value used by the random number generator. More...
 
virtual int GetNoiseGeneratorSeed ()
 Set/Get the seed value used by the random number generator. More...
 
void SetHasVectors (bool val)
 Does the data have vectors which we require. More...
 
bool GetHasVectors ()
 Does the data have vectors which we require. More...
 
virtual void SetEnable (int)
 Enable/Disable LIC. More...
 
virtual int GetEnable ()
 Enable/Disable LIC. More...
 
virtual void EnableOn ()
 Enable/Disable LIC. More...
 
virtual void EnableOff ()
 Enable/Disable LIC. More...
 
void SetEnhanceContrast (int val)
 Enable/Disable contrast and dynamic range correction stages. More...
 
virtual int GetEnhanceContrast ()
 Enable/Disable contrast and dynamic range correction stages. More...
 
void SetColorMode (int val)
 Set/Get the color mode. More...
 
virtual int GetColorMode ()
 Set/Get the color mode. More...
 
void SetNoiseType (int type)
 Select the statistical distribution of randomly generated noise values. More...
 
virtual int GetNoiseType ()
 Select the statistical distribution of randomly generated noise values. More...
 
void SetCompositeStrategy (int val)
 Control the screen space decomposition where LIC is computed. More...
 
virtual int GetCompositeStrategy ()
 Control the screen space decomposition where LIC is computed. More...
 
- Public Member Functions inherited from vtkObject
 vtkBaseTypeMacro (vtkObject, vtkObjectBase)
 
virtual void DebugOn ()
 Turn debugging output on. More...
 
virtual void DebugOff ()
 Turn debugging output off. More...
 
bool GetDebug ()
 Get the value of the debug flag. More...
 
void SetDebug (bool debugFlag)
 Set the value of the debug flag. More...
 
virtual void Modified ()
 Update the modification time for this object. More...
 
virtual vtkMTimeType GetMTime ()
 Return this object's modified time. More...
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
vtkTypeBool HasObserver (unsigned long event)
 
vtkTypeBool HasObserver (const char *event)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
unsigned long AddObserver (unsigned long event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
unsigned long AddObserver (const char *event, vtkCommand *, float priority=0.0f)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
vtkCommandGetCommand (unsigned long tag)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObserver (vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObservers (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
void RemoveObservers (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
vtkTypeBool HasObserver (unsigned long event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
vtkTypeBool HasObserver (const char *event, vtkCommand *)
 Allow people to add/remove/invoke observers (callbacks) to any VTK object. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, void(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Overloads to AddObserver that allow developers to add class member functions as callbacks for events. More...
 
template<class U , class T >
unsigned long AddObserver (unsigned long event, U observer, bool(T::*callback)(vtkObject *, unsigned long, void *), float priority=0.0f)
 Allow user to set the AbortFlagOn() with the return value of the callback method. More...
 
int InvokeEvent (unsigned long event, void *callData)
 This method invokes an event and return whether the event was aborted or not. More...
 
int InvokeEvent (const char *event, void *callData)
 This method invokes an event and return whether the event was aborted or not. More...
 
- Public Member Functions inherited from vtkObjectBase
const char * GetClassName () const
 Return the class name as a string. More...
 
virtual void Delete ()
 Delete a VTK object. More...
 
virtual void FastDelete ()
 Delete a reference to this object. More...
 
void InitializeObjectBase ()
 
void Print (ostream &os)
 Print an object to an ostream. More...
 
virtual void Register (vtkObjectBase *o)
 Increase the reference count (mark as used by another object). More...
 
virtual void UnRegister (vtkObjectBase *o)
 Decrease the reference count (release by another object). More...
 
int GetReferenceCount ()
 Return the current reference count of this object. More...
 
void SetReferenceCount (int)
 Sets the reference count. More...
 
void PrintRevisions (ostream &)
 Legacy. More...
 
virtual void PrintHeader (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 Methods invoked by print to print information about the object including superclasses. More...
 

Static Public Member Functions

static vtkPSurfaceLICInterfaceNew ()
 
static vtkTypeBool IsTypeOf (const char *type)
 
static vtkPSurfaceLICInterfaceSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkSurfaceLICInterface
static vtkSurfaceLICInterfaceNew ()
 
static vtkTypeBool IsTypeOf (const char *type)
 
static vtkSurfaceLICInterfaceSafeDownCast (vtkObjectBase *o)
 
static bool IsSupported (vtkRenderWindow *context)
 Returns true if the rendering context supports extensions needed by this painter. More...
 
- Static Public Member Functions inherited from vtkObject
static vtkObjectNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 
static void BreakOnError ()
 This method is called when vtkErrorMacro executes. More...
 
static void SetGlobalWarningDisplay (int val)
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOn ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static void GlobalWarningDisplayOff ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
static int GetGlobalWarningDisplay ()
 This is a global flag that controls whether any debug, warning or error messages are displayed. More...
 
- Static Public Member Functions inherited from vtkObjectBase
static vtkTypeBool IsTypeOf (const char *name)
 Return 1 if this class type is the same type of (or a subclass of) the named class. More...
 
static vtkObjectBaseNew ()
 Create an object with Debug turned off, modified time initialized to zero, and reference counting on. More...
 

Protected Member Functions

virtual vtkObjectBaseNewInstanceInternal () const
 
 vtkPSurfaceLICInterface ()
 
 ~vtkPSurfaceLICInterface ()
 
virtual void GetGlobalMinMax (vtkPainterCommunicator *comm, float &min, float &max) override
 Get the min/max across all ranks. More...
 
virtual vtkPainterCommunicatorCreateCommunicator (int include) override
 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. More...
 
virtual bool NeedToUpdateCommunicator () override
 Ensure that if any rank updates the communicator they all do. More...
 
virtual void StartTimerEvent (const char *name)
 Methods used for parallel benchmarks. More...
 
virtual void EndTimerEvent (const char *name)
 Methods used for parallel benchmarks. More...
 
- Protected Member Functions inherited from vtkSurfaceLICInterface
 vtkSurfaceLICInterface ()
 
 ~vtkSurfaceLICInterface () override
 
void UpdateNoiseImage (vtkRenderWindow *renWin)
 Updates the noise texture, downsampling by the requested sample rate. More...
 
bool NeedToRenderGeometry (vtkRenderer *renderer, vtkActor *actor)
 Return false if stage can be skipped. More...
 
bool NeedToGatherVectors ()
 Return false if stage can be skipped. More...
 
bool NeedToComputeLIC ()
 Return false if stage can be skipped. More...
 
bool NeedToColorLIC ()
 Return false if stage can be skipped. More...
 
void SetUpdateAll ()
 Return false if stage can be skipped. More...
 
- Protected Member Functions inherited from vtkObject
 vtkObject ()
 
 ~vtkObject () override
 
void RegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void UnRegisterInternal (vtkObjectBase *, vtkTypeBool check) override
 
void InternalGrabFocus (vtkCommand *mouseEvents, vtkCommand *keypressEvents=nullptr)
 These methods allow a command to exclusively grab all events. More...
 
void InternalReleaseFocus ()
 These methods allow a command to exclusively grab all events. More...
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
virtual void ReportReferences (vtkGarbageCollector *)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Additional Inherited Members

- Protected Attributes inherited from vtkSurfaceLICInterface
int Enable
 
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 CompositeStrategy
 
vtkSurfaceLICHelperInternals
 
int PrevDrawBuf
 
int PrevFbo
 
- Protected Attributes inherited from vtkObject
bool Debug
 
vtkTimeStamp MTime
 
vtkSubjectHelper * SubjectHelper
 
- Protected Attributes inherited from vtkObjectBase
vtkAtomicInt32 ReferenceCount
 
vtkWeakPointerBase ** WeakPointers
 

Detailed Description

parallel parts of the vtkSurfaceLICInterface

Parallel parts of the vtkSurfaceLICInterface, see that class for documentation.

Definition at line 33 of file vtkPSurfaceLICInterface.h.

Member Typedef Documentation

Definition at line 37 of file vtkPSurfaceLICInterface.h.

Constructor & Destructor Documentation

vtkPSurfaceLICInterface::vtkPSurfaceLICInterface ( )
protected
vtkPSurfaceLICInterface::~vtkPSurfaceLICInterface ( )
protected

Member Function Documentation

static vtkPSurfaceLICInterface* vtkPSurfaceLICInterface::New ( )
static
static vtkTypeBool vtkPSurfaceLICInterface::IsTypeOf ( const char *  type)
static
virtual vtkTypeBool vtkPSurfaceLICInterface::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 vtkSurfaceLICInterface.

static vtkPSurfaceLICInterface* vtkPSurfaceLICInterface::SafeDownCast ( vtkObjectBase o)
static
virtual vtkObjectBase* vtkPSurfaceLICInterface::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkSurfaceLICInterface.

vtkPSurfaceLICInterface* vtkPSurfaceLICInterface::NewInstance ( ) const
void vtkPSurfaceLICInterface::PrintSelf ( ostream &  os,
vtkIndent  indent 
)
overridevirtual

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 vtkSurfaceLICInterface.

virtual void vtkPSurfaceLICInterface::WriteTimerLog ( const char *  fileName)
overridevirtual

Methods used for parallel benchmarks.

Use cmake to define vtkSurfaceLICInterfaceTIME to enable benchmarks. During each update timing information is stored, it can be written to disk by calling WriteLog.

Reimplemented from vtkSurfaceLICInterface.

virtual void vtkPSurfaceLICInterface::GetGlobalMinMax ( vtkPainterCommunicator comm,
float min,
float max 
)
overrideprotectedvirtual

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 from vtkSurfaceLICInterface.

virtual vtkPainterCommunicator* vtkPSurfaceLICInterface::CreateCommunicator ( int  include)
overrideprotectedvirtual

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 from vtkSurfaceLICInterface.

virtual bool vtkPSurfaceLICInterface::NeedToUpdateCommunicator ( )
overrideprotectedvirtual

Ensure that if any rank updates the communicator they all do.

This is a global collective operation.

Reimplemented from vtkSurfaceLICInterface.

virtual void vtkPSurfaceLICInterface::StartTimerEvent ( const char *  name)
protectedvirtual

Methods used for parallel benchmarks.

Use cmake to define vtkSurfaceLICInterfaceTIME to enable benchmarks. During each update timing information is stored, it can be written to disk by calling WriteLog.

virtual void vtkPSurfaceLICInterface::EndTimerEvent ( const char *  name)
protectedvirtual

Methods used for parallel benchmarks.

Use cmake to define vtkSurfaceLICInterfaceTIME to enable benchmarks. During each update timing information is stored, it can be written to disk by calling WriteLog.


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