ParaView
|
Representation for showing point data as sprites, including gaussian splats, spheres, or some custom shaded representation. More...
#include <vtkPointGaussianRepresentation.h>
Public Types | |
enum | ShaderPresets { GAUSSIAN_BLUR, SPHERE, BLACK_EDGED_CIRCLE, PLAIN_CIRCLE, TRIANGLE, SQUARE_OUTLINE, NUMBER_OF_PRESETS } |
An enum specifying some preset fragment shaders. More... | |
typedef vtkPVDataRepresentation | Superclass |
![]() | |
typedef vtkDataRepresentation | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
virtual void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | ProcessViewRequest (vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo) |
vtkAlgorithm::ProcessRequest() equivalent for rendering passes. More... | |
void | SetLookupTable (vtkScalarsToColors *lut) |
Use to set the color map for the data in this representation. More... | |
virtual void | SetVisibility (bool val) |
Use to set whether the data in this representation is visible or not. More... | |
virtual void | SetEmissive (bool val) |
Use to set whether the splat emits light. More... | |
virtual void | SetMapScalars (int val) |
Use to make sure scalars will be mapped through lookup table, and not inadvertently used as colors by themselves. More... | |
virtual void | SetOrientation (double, double, double) |
virtual void | SetOrigin (double, double, double) |
virtual void | SetPickable (int val) |
virtual void | SetPosition (double, double, double) |
virtual void | SetScale (double, double, double) |
virtual void | SetAmbientColor (double r, double g, double b) |
virtual void | SetColor (double r, double g, double b) |
virtual void | SetDiffuseColor (double r, double g, double b) |
virtual void | SetEdgeColor (double r, double g, double b) |
virtual void | SetInterpolation (int val) |
virtual void | SetLineWidth (double val) |
virtual void | SetOpacity (double val) |
virtual void | SetPointSize (double val) |
virtual void | SetSpecularColor (double r, double g, double b) |
virtual void | SetSpecularPower (double val) |
virtual void | SetSplatSize (double radius) |
Sets the radius of the gaussian splats if there is no scale array or if the scale array is disabled. More... | |
void | SelectShaderPreset (int preset) |
Allows to select one of several preset options for shading the points. More... | |
void | SetCustomShader (const char *shaderString) |
Sets the snippet of fragment shader code used to color the sprites. More... | |
void | SelectScaleArray (int, int, int, int, const char *name) |
Sets the point array to scale the guassians by. More... | |
void | SetScaleTransferFunction (vtkPiecewiseFunction *pwf) |
Sets a vtkPiecewiseFunction to use in mapping array values to sprite sizes. More... | |
void | SetOpacityTransferFunction (vtkPiecewiseFunction *pwf) |
Sets a vtkPiecewiseFunction to use in mapping array values to sprite opacities. More... | |
void | SelectOpacityArray (int, int, int, int, const char *name) |
Sets the point array to use in calculating point sprite opacities. More... | |
void | SetOpacityByArray (bool newVal) |
Enables or disables setting opacity by an array. More... | |
virtual bool | GetOpacityByArray () |
Enables or disables setting opacity by an array. More... | |
virtual void | OpacityByArrayOn () |
Enables or disables setting opacity by an array. More... | |
virtual void | OpacityByArrayOff () |
Enables or disables setting opacity by an array. More... | |
void | SetScaleByArray (bool newVal) |
Enables or disables scaling by a data array vs. More... | |
virtual bool | GetScaleByArray () |
Enables or disables scaling by a data array vs. More... | |
virtual void | ScaleByArrayOn () |
Enables or disables scaling by a data array vs. More... | |
virtual void | ScaleByArrayOff () |
Enables or disables scaling by a data array vs. More... | |
![]() | |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual void | MarkModified () |
This is one of the most important functions. More... | |
virtual unsigned int | Initialize (unsigned int minIdAvailable, unsigned int maxIdAvailable) |
Initialize the representation with an identifier range so each internal representation can own a unique ID. More... | |
unsigned int | GetUniqueIdentifier () |
Return 0 if the Initialize() method was not called otherwise a unique ID that will be shared across the processes for that same object. More... | |
virtual bool | GetVisibility () |
virtual vtkDataObject * | GetRenderedDataObject (int vtkNotUsed(port)) |
Returns the data object that is rendered from the given input port. More... | |
virtual void | SetForcedCacheKey (double val) |
Typically a representation decides whether to use cache based on the view's values for UseCache and CacheKey. More... | |
virtual void | SetForceUseCache (bool val) |
bool | GetUsingCacheForUpdate () |
Called by vtkPVDataRepresentationPipeline to see if using cache is valid and will be used for the update. More... | |
virtual bool | GetNeedUpdate () |
virtual vtkAlgorithmOutput * | GetInternalOutputPort () |
Retrieves an output port for the input data object at the specified port and connection index. More... | |
virtual vtkAlgorithmOutput * | GetInternalOutputPort (int port) |
virtual vtkAlgorithmOutput * | GetInternalOutputPort (int port, int conn) |
vtkView * | GetView () const |
Provides access to the view. More... | |
virtual void | SetUpdateTime (double time) |
Set the update time. More... | |
virtual double | GetUpdateTime () |
Set the update time. More... | |
virtual bool | GetUpdateTimeValid () |
Set whether the UpdateTime is valid. More... | |
virtual void | SetUseCache (bool) |
virtual void | SetCacheKey (double val) |
virtual double | GetCacheKey () |
Returns whether caching is used and what key to use when caching is enabled. More... | |
virtual bool | GetUseCache () |
Returns whether caching is used and what key to use when caching is enabled. More... | |
Static Public Member Functions | |
static int | IsTypeOf (const char *type) |
static vtkPointGaussianRepresentation * | SafeDownCast (vtkObject *o) |
static vtkPointGaussianRepresentation * | New () |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkPVDataRepresentation * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkPointGaussianRepresentation () | |
virtual | ~vtkPointGaussianRepresentation () |
virtual bool | AddToView (vtkView *view) |
Making these methods public. More... | |
virtual bool | RemoveFromView (vtkView *view) |
Making these methods public. More... | |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Overridden to invoke vtkCommand::UpdateDataEvent. More... | |
void | UpdateColoringParameters () |
virtual void | SetLastScaleArray (const char *) |
virtual void | SetLastOpacityArray (const char *) |
![]() | |
vtkPVDataRepresentation () | |
~vtkPVDataRepresentation () | |
virtual bool | IsCached (double cache_key) |
Subclasses should override this method when they support caching to indicate if the particular key is cached. More... | |
virtual vtkExecutive * | CreateDefaultExecutive () |
Create a default executive. More... | |
virtual int | RequestUpdateExtent (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
virtual int | RequestUpdateTime (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
vtkSmartPointer< vtkActor > | Actor |
vtkSmartPointer< vtkPointGaussianMapper > | Mapper |
vtkSmartPointer< vtkPolyData > | ProcessedData |
bool | ScaleByArray |
char * | LastScaleArray |
bool | OpacityByArray |
char * | LastOpacityArray |
![]() | |
double | UpdateTime |
bool | UpdateTimeValid |
unsigned int | UniqueIdentifier |
Representation for showing point data as sprites, including gaussian splats, spheres, or some custom shaded representation.
Definition at line 35 of file vtkPointGaussianRepresentation.h.
Definition at line 40 of file vtkPointGaussianRepresentation.h.
An enum specifying some preset fragment shaders.
Enumerator | |
---|---|
GAUSSIAN_BLUR | |
SPHERE | |
BLACK_EDGED_CIRCLE | |
PLAIN_CIRCLE | |
TRIANGLE | |
SQUARE_OUTLINE | |
NUMBER_OF_PRESETS |
Definition at line 97 of file vtkPointGaussianRepresentation.h.
|
protected |
|
protectedvirtual |
|
virtual |
Reimplemented from vtkPVDataRepresentation.
|
static |
|
virtual |
Reimplemented from vtkPVDataRepresentation.
|
static |
|
static |
|
virtual |
|
virtual |
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
This is typically called by the vtkView to request meta-data from the representations or ask them to perform certain tasks e.g. PrepareForRendering. Overridden to skip processing when visibility if off.
Reimplemented from vtkPVDataRepresentation.
void vtkPointGaussianRepresentation::SetLookupTable | ( | vtkScalarsToColors * | lut | ) |
Use to set the color map for the data in this representation.
|
virtual |
Use to set whether the data in this representation is visible or not.
Reimplemented from vtkPVDataRepresentation.
|
virtual |
Use to set whether the splat emits light.
|
virtual |
Use to make sure scalars will be mapped through lookup table, and not inadvertently used as colors by themselves.
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
Sets the radius of the gaussian splats if there is no scale array or if the scale array is disabled.
Defaults to 1.
void vtkPointGaussianRepresentation::SelectShaderPreset | ( | int | preset | ) |
Allows to select one of several preset options for shading the points.
void vtkPointGaussianRepresentation::SetCustomShader | ( | const char * | shaderString | ) |
Sets the snippet of fragment shader code used to color the sprites.
void vtkPointGaussianRepresentation::SelectScaleArray | ( | int | , |
int | , | ||
int | , | ||
int | , | ||
const char * | name | ||
) |
Sets the point array to scale the guassians by.
The array should be a float array. The first four parameters are unused and only needed for the ParaView GUI's signature recognition.
void vtkPointGaussianRepresentation::SetScaleTransferFunction | ( | vtkPiecewiseFunction * | pwf | ) |
Sets a vtkPiecewiseFunction to use in mapping array values to sprite sizes.
Performance decreases (along with understandability) when large values are used for sprite sizes. This is only used when "SetScaleArray" is also set.
void vtkPointGaussianRepresentation::SetOpacityTransferFunction | ( | vtkPiecewiseFunction * | pwf | ) |
Sets a vtkPiecewiseFunction to use in mapping array values to sprite opacities.
Only used when "Opacity Array" is set.
void vtkPointGaussianRepresentation::SelectOpacityArray | ( | int | , |
int | , | ||
int | , | ||
int | , | ||
const char * | name | ||
) |
Sets the point array to use in calculating point sprite opacities.
The array should be a float or double array. The first four parameters are unused and only needed for the ParaView GUI's signature recognition.
void vtkPointGaussianRepresentation::SetOpacityByArray | ( | bool | newVal | ) |
Enables or disables setting opacity by an array.
Set which array should be used for opacity with SelectOpacityArray, and set an opacity transfer function with SetOpacityTransferFunction.
|
virtual |
Enables or disables setting opacity by an array.
Set which array should be used for opacity with SelectOpacityArray, and set an opacity transfer function with SetOpacityTransferFunction.
|
virtual |
Enables or disables setting opacity by an array.
Set which array should be used for opacity with SelectOpacityArray, and set an opacity transfer function with SetOpacityTransferFunction.
|
virtual |
Enables or disables setting opacity by an array.
Set which array should be used for opacity with SelectOpacityArray, and set an opacity transfer function with SetOpacityTransferFunction.
void vtkPointGaussianRepresentation::SetScaleByArray | ( | bool | newVal | ) |
Enables or disables scaling by a data array vs.
a constant factor. Set which data array with SelectScaleArray and SetSplatSize.
|
virtual |
Enables or disables scaling by a data array vs.
a constant factor. Set which data array with SelectScaleArray and SetSplatSize.
|
virtual |
Enables or disables scaling by a data array vs.
a constant factor. Set which data array with SelectScaleArray and SetSplatSize.
|
virtual |
Enables or disables scaling by a data array vs.
a constant factor. Set which data array with SelectScaleArray and SetSplatSize.
|
protectedvirtual |
Making these methods public.
When constructing composite representations, we need to call these methods directly on internal representations.
Reimplemented from vtkPVDataRepresentation.
|
protectedvirtual |
Making these methods public.
When constructing composite representations, we need to call these methods directly on internal representations.
Reimplemented from vtkPVDataRepresentation.
|
protectedvirtual |
|
protectedvirtual |
Overridden to invoke vtkCommand::UpdateDataEvent.
Reimplemented from vtkPVDataRepresentation.
|
protected |
|
protectedvirtual |
|
protectedvirtual |
|
protected |
Definition at line 178 of file vtkPointGaussianRepresentation.h.
|
protected |
Definition at line 179 of file vtkPointGaussianRepresentation.h.
|
protected |
Definition at line 180 of file vtkPointGaussianRepresentation.h.
|
protected |
Definition at line 184 of file vtkPointGaussianRepresentation.h.
|
protected |
Definition at line 185 of file vtkPointGaussianRepresentation.h.
|
protected |
Definition at line 187 of file vtkPointGaussianRepresentation.h.
|
protected |
Definition at line 190 of file vtkPointGaussianRepresentation.h.