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

parallel parts of the vtkSurfaceLICPainter More...

#include <vtkPSurfaceLICPainter.h>

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

Public Types

typedef vtkSurfaceLICPainter Superclass
 
- Public Types inherited from vtkSurfaceLICPainter
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...
 
typedef vtkPainter Superclass
 
- Public Types inherited from vtkPainter
enum  { VERTS = 0x1 , LINES = 0x2 , POLYS = 0x4 , STRIPS = 0x8 }
 
typedef vtkObject Superclass
 

Public Member Functions

virtual int IsA (const char *type)
 Return 1 if this class is the same type of (or a subclass of) the named class. More...
 
vtkPSurfaceLICPainterNewInstance () 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)
 Methods used for parallel benchmarks. More...
 
- Public Member Functions inherited from vtkSurfaceLICPainter
vtkSurfaceLICPainterNewInstance () const
 
virtual void ReleaseGraphicsResources (vtkWindow *win)
 Release any graphics resources that are being consumed by this mapper. More...
 
virtual vtkDataObjectGetOutput ()
 Get the output data object from this painter. More...
 
void SetEnable (int val)
 Enable/Disable this painter. More...
 
virtual int GetEnable ()
 
void SetEnableOn ()
 
void SetEnableOff ()
 
void SetInputArrayToProcess (int fieldAssociation, const char *name)
 Set the vectors to used for applying LIC. More...
 
void SetInputArrayToProcess (int fieldAssociation, int fieldAttributeType)
 
void SetNumberOfSteps (int val)
 Get/Set the number of integration steps in each direction. More...
 
virtual int GetNumberOfSteps ()
 
void SetStepSize (double val)
 Get/Set the step size (in pixels). More...
 
virtual double GetStepSize ()
 
void SetNormalizeVectors (int val)
 Normalize vectors during integration. More...
 
virtual void NormalizeVectorsOn ()
 
virtual void NormalizeVectorsOff ()
 
virtual int GetNormalizeVectors ()
 
void SetMaskOnSurface (int val)
 When set MaskOnSurface computes |V| for use in the fragment masking tests on the surface. More...
 
virtual void MaskOnSurfaceOn ()
 
virtual void MaskOnSurfaceOff ()
 
virtual int GetMaskOnSurface ()
 
void SetMaskThreshold (double val)
 The MaskThreshold controls the rendering of fragments in stagnant regions of flow. More...
 
virtual double GetMaskThreshold ()
 
void SetMaskColor (double *val)
 The MaskColor is used on masked fragments. More...
 
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)
 The MaskIntensity controls the blending of the mask color and the geometry color. More...
 
virtual double GetMaskIntensity ()
 
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 ()
 
virtual void EnhancedLICOn ()
 
virtual void EnhancedLICOff ()
 
void SetEnhanceContrast (int val)
 
virtual int GetEnhanceContrast ()
 
virtual double GetLowLICContrastEnhancementFactor ()
 This feature is used to fine tune the contrast enhancement. More...
 
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)
 Enable/Disable the anti-aliasing pass. More...
 
virtual void AntiAliasOn ()
 
virtual void AntiAliasOff ()
 
virtual int GetAntiAlias ()
 
void SetColorMode (int val)
 
virtual int GetColorMode ()
 
void SetLICIntensity (double val)
 Factor used when blend mode is set to COLOR_MODE_BLEND. More...
 
virtual double GetLICIntensity ()
 
void SetMapModeBias (double val)
 Factor used when blend mode is set to COLOR_MODE_MAP. More...
 
virtual double GetMapModeBias ()
 
void SetNoiseDataSet (vtkImageData *data)
 Set the data containing a noise array as active scalars. More...
 
vtkImageDataGetNoiseDataSet ()
 
void SetGenerateNoiseTexture (int shouldGenerate)
 Set/Get the noise texture source. More...
 
virtual int GetGenerateNoiseTexture ()
 
void SetNoiseType (int type)
 
virtual int GetNoiseType ()
 
void SetNoiseTextureSize (int length)
 Set/Get the side length in pixels of the noise texture. More...
 
virtual int GetNoiseTextureSize ()
 
void SetNoiseGrainSize (int val)
 Set/Get the side length in pixels of the noise values in the noise texture. More...
 
virtual int GetNoiseGrainSize ()
 
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)
 
virtual double GetMinNoiseValue ()
 
virtual double GetMaxNoiseValue ()
 
void SetNumberOfNoiseLevels (int val)
 Set/Get the number of discrete values a noise pixel may take on. More...
 
virtual int GetNumberOfNoiseLevels ()
 
void SetImpulseNoiseProbability (double val)
 Control the density of of the noise. More...
 
virtual double GetImpulseNoiseProbability ()
 
void SetImpulseNoiseBackgroundValue (double val)
 The color to use for untouched pixels when impulse noise probability < 1. More...
 
virtual double GetImpulseNoiseBackgroundValue ()
 
void SetNoiseGeneratorSeed (int val)
 Set/Get the seed value used by the random number generator. More...
 
virtual int GetNoiseGeneratorSeed ()
 
void SetCompositeStrategy (int val)
 
virtual int GetCompositeStrategy ()
 
- Public Member Functions inherited from vtkPainter
vtkPainterNewInstance () const
 
virtual vtkInformationGetInformation ()
 Get/Set the information object associated with this painter. More...
 
virtual void SetInformation (vtkInformation *)
 
virtual vtkPainterGetDelegatePainter ()
 Set/Get the painter to which this painter should propagare its draw calls. More...
 
virtual void SetDelegatePainter (vtkPainter *)
 
void Register (vtkObjectBase *o) override
 Take part in garbage collection. More...
 
void UnRegister (vtkObjectBase *o) override
 Decrease the reference count (release by another object). More...
 
virtual void Render (vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly)
 Generates rendering primitives of appropriate type(s). More...
 
virtual void SetProgress (double)
 Set/Get the execution progress of a process object. More...
 
virtual double GetProgress ()
 
virtual double GetTimeToDraw ()
 Get the time required to draw the geometry last time it was rendered. More...
 
virtual void UpdateBounds (double bounds[6])
 Expand or shrink the estimated bounds of the object based on the geometric transformations performed in the painter. More...
 
void SetInput (vtkDataObject *)
 Set the data object to paint. More...
 
virtual vtkDataObjectGetInput ()
 
- 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...
 
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)
 
vtkCommandGetCommand (unsigned long tag)
 
void RemoveObserver (vtkCommand *)
 
void RemoveObservers (unsigned long event, vtkCommand *)
 
void RemoveObservers (const char *event, vtkCommand *)
 
int HasObserver (unsigned long event, vtkCommand *)
 
int HasObserver (const char *event, vtkCommand *)
 
void RemoveObserver (unsigned long tag)
 
void RemoveObservers (unsigned long event)
 
void RemoveObservers (const char *event)
 
void RemoveAllObservers ()
 
int HasObserver (unsigned long event)
 
int HasObserver (const char *event)
 
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)
 
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)
 
int InvokeEvent (unsigned long event)
 
int InvokeEvent (const char *event)
 
- 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 PrintHeader (ostream &os, vtkIndent indent)
 
virtual void PrintTrailer (ostream &os, vtkIndent indent)
 
int GetReferenceCount ()
 Return the current reference count of this object. More...
 
void SetReferenceCount (int)
 Sets the reference count. More...
 
void PrintRevisions (ostream &)
 Legacy. More...
 

Static Public Member Functions

static vtkPSurfaceLICPainterNew ()
 
static int IsTypeOf (const char *type)
 
static vtkPSurfaceLICPainterSafeDownCast (vtkObjectBase *o)
 
- Static Public Member Functions inherited from vtkSurfaceLICPainter
static vtkSurfaceLICPainterNew ()
 
static int IsTypeOf (const char *type)
 
static vtkSurfaceLICPainterSafeDownCast (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 vtkPainter
static int IsTypeOf (const char *type)
 
static vtkPainterSafeDownCast (vtkObjectBase *o)
 
static vtkInformationIntegerKeySTATIC_DATA ()
 Keys used to specify control the behaviour of the painter. More...
 
static vtkInformationIntegerKeyCONSERVE_MEMORY ()
 Keys used to specify control the behaviour of the painter. More...
 
static vtkInformationIntegerKeyHIGH_QUALITY ()
 Keys used to specify control the behaviour of the 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 ()
 
static void GlobalWarningDisplayOff ()
 
static int GetGlobalWarningDisplay ()
 
- 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
 
 vtkPSurfaceLICPainter ()
 
 ~vtkPSurfaceLICPainter ()
 
virtual void GetGlobalMinMax (vtkPainterCommunicator *comm, float &min, float &max)
 Get the min/max across all ranks. More...
 
virtual vtkPainterCommunicatorCreateCommunicator (int include)
 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 ()
 Ensure that if any rank udpates the communicator they all do. More...
 
virtual void StartTimerEvent (const char *name)
 Methods used for parallel benchmarks. More...
 
virtual void EndTimerEvent (const char *name)
 
- Protected Member Functions inherited from vtkSurfaceLICPainter
 vtkSurfaceLICPainter ()
 
 ~vtkSurfaceLICPainter ()
 
virtual void ProcessInformation (vtkInformation *info)
 Called before RenderInternal() if the Information has been changed since the last time this method was called. More...
 
void CreateCommunicator ()
 Creates a new communicator for internal use based on this rank's visible data. More...
 
void GetBounds (vtkDataObject *data, double bounds[6])
 Computes data bounds. More...
 
void ReportReferences (vtkGarbageCollector *collector) override
 Take part in garbage collection. More...
 
void UpdateNoiseImage (vtkRenderWindow *renWin)
 Updates the noise texture, downsampling by the requested sample rate. More...
 
virtual void RenderInternal (vtkRenderer *renderer, vtkActor *actor, unsigned long typeflags, bool forceCompileOnly)
 Performs the actual rendering. More...
 
void ValidateContext (vtkRenderer *renderer)
 Look for changes that would trigger stage updates. More...
 
bool NeedToUpdateOutputData ()
 Return false if stage can be skipped. More...
 
bool NeedToRenderGeometry (vtkRenderer *renderer, vtkActor *actor)
 
bool NeedToGatherVectors ()
 
bool NeedToComputeLIC ()
 
bool NeedToColorLIC ()
 
void SetUpdateAll ()
 
bool PrepareOutput ()
 resoucre allocators More...
 
void InitializeResources ()
 
bool VectorsToTCoords (vtkDataObject *dataObj)
 set tcoords with vectors More...
 
bool VectorsToTCoords (vtkDataSet *dataObj)
 
void ClearTCoords (vtkDataSet *data)
 
bool CanRenderSurfaceLIC (vtkActor *actor, int typeflags)
 Returns true when rendering LIC is possible. More...
 
- Protected Member Functions inherited from vtkPainter
 vtkPainter ()
 
 ~vtkPainter ()
 
void ReportReferences (vtkGarbageCollector *collector) override
 Take part in garbage collection. More...
 
void UpdateDelegatePainter ()
 Updates the delegate painter. More...
 
virtual void PassInformation (vtkPainter *toPainter)
 Pass on the information and data (output) from the this to the argument painter. More...
 
virtual void PrepareForRendering (vtkRenderer *, vtkActor *)
 Some subclasses may need to do some preprocessing before the actual rendering can be done eg. More...
 
virtual void UpdateDelegateProgress (vtkPainter *delegate, double amount)
 Called when the delegate painter reports its progress. More...
 
virtual void ObserverPainterProgress (vtkPainter *toObserve)
 Adds a progress event observer to toObserve. More...
 
void UpdateProgress (double amount)
 Update the progress of the process object. More...
 
vtkAbstractArrayGetInputArrayToProcess (int fieldAssociation, int fieldAttributeType, vtkDataSet *ds, bool *use_cell_data=0)
 Helper method to get input array to process. More...
 
vtkAbstractArrayGetInputArrayToProcess (int fieldAssociation, const char *name, vtkDataSet *dsl, bool *use_cell_data=0)
 
- 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=NULL)
 These methods allow a command to exclusively grab all events. More...
 
void InternalReleaseFocus ()
 
- Protected Member Functions inherited from vtkObjectBase
 vtkObjectBase ()
 
virtual ~vtkObjectBase ()
 
virtual void CollectRevisions (ostream &)
 
 vtkObjectBase (const vtkObjectBase &)
 
void operator= (const vtkObjectBase &)
 

Additional Inherited Members

- Protected Attributes inherited from vtkSurfaceLICPainter
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
 
- Protected Attributes inherited from vtkPainter
vtkTimeStamp InformationProcessTime
 
vtkPainterObserverObserver
 
vtkInformationInformation
 
vtkPainterDelegatePainter
 
double Progress
 
double ProgressOffset
 
double ProgressScaleFactor
 
double TimeToDraw
 
vtkTimerLogTimer
 
vtkWeakPointer< vtkWindowLastWindow
 
- 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 vtkSurfaceLICPainter

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

Definition at line 33 of file vtkPSurfaceLICPainter.h.

Member Typedef Documentation

◆ Superclass

Definition at line 37 of file vtkPSurfaceLICPainter.h.

Constructor & Destructor Documentation

◆ vtkPSurfaceLICPainter()

vtkPSurfaceLICPainter::vtkPSurfaceLICPainter ( )
protected

◆ ~vtkPSurfaceLICPainter()

vtkPSurfaceLICPainter::~vtkPSurfaceLICPainter ( )
protected

Member Function Documentation

◆ New()

static vtkPSurfaceLICPainter* vtkPSurfaceLICPainter::New ( )
static

◆ IsTypeOf()

static int vtkPSurfaceLICPainter::IsTypeOf ( const char *  type)
static

◆ IsA()

virtual int vtkPSurfaceLICPainter::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 vtkSurfaceLICPainter.

◆ SafeDownCast()

static vtkPSurfaceLICPainter* vtkPSurfaceLICPainter::SafeDownCast ( vtkObjectBase o)
static

◆ NewInstanceInternal()

virtual vtkObjectBase* vtkPSurfaceLICPainter::NewInstanceInternal ( ) const
protectedvirtual

Reimplemented from vtkSurfaceLICPainter.

◆ NewInstance()

vtkPSurfaceLICPainter* vtkPSurfaceLICPainter::NewInstance ( ) const

◆ PrintSelf()

void vtkPSurfaceLICPainter::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 vtkSurfaceLICPainter.

◆ WriteTimerLog()

virtual void vtkPSurfaceLICPainter::WriteTimerLog ( const char *  fileName)
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 from vtkSurfaceLICPainter.

◆ GetGlobalMinMax()

virtual void vtkPSurfaceLICPainter::GetGlobalMinMax ( vtkPainterCommunicator comm,
float min,
float max 
)
protectedvirtual

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

◆ CreateCommunicator()

virtual vtkPainterCommunicator* vtkPSurfaceLICPainter::CreateCommunicator ( int  include)
protectedvirtual

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

◆ NeedToUpdateCommunicator()

virtual bool vtkPSurfaceLICPainter::NeedToUpdateCommunicator ( )
protectedvirtual

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

This is a global collective operation.

Reimplemented from vtkSurfaceLICPainter.

◆ StartTimerEvent()

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

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

◆ EndTimerEvent()

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

Reimplemented from vtkSurfaceLICPainter.


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