ParaView
|
representation used for volume rendering AMR datasets with ability to stream blocks. More...
#include <vtkAMRStreamingVolumeRepresentation.h>
Public Types | |
enum | ResamplingModes { RESAMPLE_OVER_DATA_BOUNDS = 0, RESAMPLE_USING_VIEW_FRUSTUM = 1 } |
typedef vtkPVDataRepresentation | Superclass |
![]() | |
typedef vtkDataRepresentation | Superclass |
Public Member Functions | |
virtual const char * | GetClassName () |
virtual int | IsA (const char *type) |
void | PrintSelf (ostream &os, vtkIndent indent) |
virtual int | ProcessViewRequest (vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo) |
vtkAlgorithm::ProcessRequest() equivalent for rendering passes. More... | |
virtual void | SetVisibility (bool val) |
Get/Set the visibility for this representation. More... | |
void | SetNumberOfSamples (int x, int y, int z) |
Get/Set the resample buffer size. More... | |
void | SetOrientation (double, double, double) |
void | SetOrigin (double, double, double) |
void | SetPickable (int val) |
void | SetPosition (double, double, double) |
void | SetScale (double, double, double) |
void | SetInterpolationType (int val) |
void | SetColor (vtkColorTransferFunction *lut) |
void | SetScalarOpacity (vtkPiecewiseFunction *pwf) |
void | SetScalarOpacityUnitDistance (double val) |
void | SetAmbient (double) |
void | SetDiffuse (double) |
void | SetSpecular (double) |
void | SetSpecularPower (double) |
void | SetShade (bool) |
void | SetIndependantComponents (bool) |
void | SetRequestedRenderMode (int) |
void | SetResamplingMode (int val) |
This control the logic used to determine how to place the resampling grid within the AMR bounds. More... | |
virtual int | GetResamplingMode () |
This control the logic used to determine how to place the resampling grid within the AMR bounds. More... | |
virtual void | SetStreamingRequestSize (int) |
Set the number of blocks to request at a given time on a single process when streaming. More... | |
virtual int | GetStreamingRequestSize () |
Set the number of blocks to request at a given time on a single process when streaming. More... | |
virtual void | SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, const char *name) |
Set the input data arrays that this algorithm will process. More... | |
virtual void | SetInputArrayToProcess (int idx, int port, int connection, int fieldAssociation, int fieldAttributeType) |
Set the input data arrays that this algorithm will process. More... | |
virtual void | SetInputArrayToProcess (int idx, vtkInformation *info) |
Set the input data arrays that this algorithm will process. More... | |
virtual void | SetInputArrayToProcess (int idx, int port, int connection, const char *fieldAssociation, const char *attributeTypeorName) |
Set the input data arrays that this algorithm will process. 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 vtkAMRStreamingVolumeRepresentation * | New () |
static int | IsTypeOf (const char *type) |
static vtkAMRStreamingVolumeRepresentation * | SafeDownCast (vtkObject *o) |
![]() | |
static int | IsTypeOf (const char *type) |
static vtkPVDataRepresentation * | SafeDownCast (vtkObject *o) |
Protected Member Functions | |
vtkAMRStreamingVolumeRepresentation () | |
~vtkAMRStreamingVolumeRepresentation () | |
virtual bool | AddToView (vtkView *view) |
Adds the representation to the view. More... | |
virtual bool | RemoveFromView (vtkView *view) |
Removes the representation to the view. More... | |
virtual int | FillInputPortInformation (int port, vtkInformation *info) |
Fill input port information. More... | |
virtual int | RequestInformation (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
Overridden to check if the input pipeline is streaming capable. More... | |
virtual int | RequestUpdateExtent (vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) |
Setup the block request. More... | |
virtual int | RequestData (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Process the current input for volume rendering (if anything). More... | |
bool | StreamingUpdate (vtkPVRenderView *view, const double view_planes[24]) |
Returns true if this representation has a "next piece" that it streamed. More... | |
virtual bool | GetStreamingCapablePipeline () |
Returns true when the input pipeline supports streaming. More... | |
virtual bool | GetInStreamingUpdate () |
Returns true when StreamingUpdate() is being processed. More... | |
![]() | |
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 | RequestUpdateTime (vtkInformation *, vtkInformationVector **, vtkInformationVector *) |
Protected Attributes | |
vtkSmartPointer< vtkDataObject > | ProcessedData |
This is the data object generated processed by the most recent call to RequestData() while not streaming. More... | |
vtkSmartPointer< vtkDataObject > | ProcessedPiece |
This is the data object generated processed by the most recent call to RequestData() while streaming. More... | |
vtkSmartPointer< vtkAMRStreamingPriorityQueue > | PriorityQueue |
vtkAMRStreamingPriorityQueue is a helper class we used to compute the order in which to request blocks from the input pipeline. More... | |
vtkSmartPointer< vtkResampledAMRImageSource > | Resampler |
vtkImageData source used to resample an AMR dataset into a uniform grid suitable for volume rendering. More... | |
vtkBoundingBox | DataBounds |
Used to keep track of data bounds. More... | |
int | ResamplingMode |
int | StreamingRequestSize |
vtkSmartPointer< vtkSmartVolumeMapper > | VolumeMapper |
Rendering components. More... | |
vtkSmartPointer< vtkVolumeProperty > | Property |
Rendering components. More... | |
vtkSmartPointer< vtkPVLODVolume > | Actor |
Rendering components. More... | |
![]() | |
double | UpdateTime |
bool | UpdateTimeValid |
unsigned int | UniqueIdentifier |
representation used for volume rendering AMR datasets with ability to stream blocks.
vtkAMRStreamingVolumeRepresentation is a representation used for volume rendering AMR datasets with ability to stream blocks from the input pipeline.
Definition at line 42 of file vtkAMRStreamingVolumeRepresentation.h.
Definition at line 47 of file vtkAMRStreamingVolumeRepresentation.h.
Enumerator | |
---|---|
RESAMPLE_OVER_DATA_BOUNDS | |
RESAMPLE_USING_VIEW_FRUSTUM |
Definition at line 50 of file vtkAMRStreamingVolumeRepresentation.h.
|
protected |
|
protected |
|
static |
|
virtual |
Reimplemented from vtkPVDataRepresentation.
|
static |
|
virtual |
Reimplemented from vtkPVDataRepresentation.
|
static |
void vtkAMRStreamingVolumeRepresentation::PrintSelf | ( | ostream & | os, |
vtkIndent | indent | ||
) |
void vtkAMRStreamingVolumeRepresentation::SetResamplingMode | ( | int | val | ) |
This control the logic used to determine how to place the resampling grid within the AMR bounds.
|
virtual |
This control the logic used to determine how to place the resampling grid within the AMR bounds.
|
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.
|
virtual |
Get/Set the visibility for this representation.
When the visibility of representation of false, all view passes are ignored.
Reimplemented from vtkPVDataRepresentation.
void vtkAMRStreamingVolumeRepresentation::SetNumberOfSamples | ( | int | x, |
int | y, | ||
int | z | ||
) |
Get/Set the resample buffer size.
This controls the resolution at which the data is resampled.
|
virtual |
Set the number of blocks to request at a given time on a single process when streaming.
|
virtual |
Set the number of blocks to request at a given time on a single process when streaming.
|
virtual |
Set the input data arrays that this algorithm will process.
|
inlinevirtual |
Set the input data arrays that this algorithm will process.
Definition at line 106 of file vtkAMRStreamingVolumeRepresentation.h.
|
inlinevirtual |
Set the input data arrays that this algorithm will process.
Definition at line 112 of file vtkAMRStreamingVolumeRepresentation.h.
|
inlinevirtual |
Set the input data arrays that this algorithm will process.
Definition at line 116 of file vtkAMRStreamingVolumeRepresentation.h.
void vtkAMRStreamingVolumeRepresentation::SetOrientation | ( | double | , |
double | , | ||
double | |||
) |
void vtkAMRStreamingVolumeRepresentation::SetOrigin | ( | double | , |
double | , | ||
double | |||
) |
void vtkAMRStreamingVolumeRepresentation::SetPickable | ( | int | val | ) |
void vtkAMRStreamingVolumeRepresentation::SetPosition | ( | double | , |
double | , | ||
double | |||
) |
void vtkAMRStreamingVolumeRepresentation::SetScale | ( | double | , |
double | , | ||
double | |||
) |
void vtkAMRStreamingVolumeRepresentation::SetInterpolationType | ( | int | val | ) |
void vtkAMRStreamingVolumeRepresentation::SetColor | ( | vtkColorTransferFunction * | lut | ) |
void vtkAMRStreamingVolumeRepresentation::SetScalarOpacity | ( | vtkPiecewiseFunction * | pwf | ) |
void vtkAMRStreamingVolumeRepresentation::SetScalarOpacityUnitDistance | ( | double | val | ) |
void vtkAMRStreamingVolumeRepresentation::SetAmbient | ( | double | ) |
void vtkAMRStreamingVolumeRepresentation::SetDiffuse | ( | double | ) |
void vtkAMRStreamingVolumeRepresentation::SetSpecular | ( | double | ) |
void vtkAMRStreamingVolumeRepresentation::SetSpecularPower | ( | double | ) |
void vtkAMRStreamingVolumeRepresentation::SetShade | ( | bool | ) |
void vtkAMRStreamingVolumeRepresentation::SetIndependantComponents | ( | bool | ) |
void vtkAMRStreamingVolumeRepresentation::SetRequestedRenderMode | ( | int | ) |
|
protectedvirtual |
Adds the representation to the view.
This is called from vtkView::AddRepresentation(). Subclasses should override this method. Returns true if the addition succeeds.
Reimplemented from vtkPVDataRepresentation.
|
protectedvirtual |
Removes the representation to the view.
This is called from vtkView::RemoveRepresentation(). Subclasses should override this method. Returns true if the removal succeeds.
Reimplemented from vtkPVDataRepresentation.
|
protectedvirtual |
Fill input port information.
|
protectedvirtual |
Overridden to check if the input pipeline is streaming capable.
This method should check if streaming is enabled i.e. vtkPVView::GetEnableStreaming() and the input pipeline provides necessary AMR meta-data.
|
protectedvirtual |
Setup the block request.
During StreamingUpdate, this will request the blocks based on priorities determined by the vtkAMRStreamingPriorityQueue, otherwise it doesn't make any specific request. AMR sources can treat the absence of specific block request to mean various things. It's expected that read only the root block (or a few more) in that case.
Reimplemented from vtkPVDataRepresentation.
|
protectedvirtual |
Process the current input for volume rendering (if anything).
When not in StreamingUpdate, this also initializes the priority queue since the input AMR may have totally changed, including its structure.
Reimplemented from vtkPVDataRepresentation.
|
protectedvirtual |
Returns true when the input pipeline supports streaming.
It is set in RequestInformation().
|
protectedvirtual |
Returns true when StreamingUpdate() is being processed.
|
protected |
Returns true if this representation has a "next piece" that it streamed.
This method will update the PriorityQueue using the view planes specified and then call Update() on the representation, making it reexecute and regenerate the outline for the next "piece" of data.
|
protected |
This is the data object generated processed by the most recent call to RequestData() while not streaming.
This is non-empty only on the data-server nodes.
Definition at line 228 of file vtkAMRStreamingVolumeRepresentation.h.
|
protected |
This is the data object generated processed by the most recent call to RequestData() while streaming.
This is non-empty only on the data-server nodes.
Definition at line 235 of file vtkAMRStreamingVolumeRepresentation.h.
|
protected |
vtkAMRStreamingPriorityQueue is a helper class we used to compute the order in which to request blocks from the input pipeline.
Implementations can come up with their own rules to decide the request order based on application and data type.
Definition at line 243 of file vtkAMRStreamingVolumeRepresentation.h.
|
protected |
vtkImageData source used to resample an AMR dataset into a uniform grid suitable for volume rendering.
Definition at line 249 of file vtkAMRStreamingVolumeRepresentation.h.
|
protected |
Rendering components.
Definition at line 255 of file vtkAMRStreamingVolumeRepresentation.h.
|
protected |
Rendering components.
Definition at line 256 of file vtkAMRStreamingVolumeRepresentation.h.
|
protected |
Rendering components.
Definition at line 257 of file vtkAMRStreamingVolumeRepresentation.h.
|
protected |
Used to keep track of data bounds.
Definition at line 263 of file vtkAMRStreamingVolumeRepresentation.h.
|
protected |
Definition at line 265 of file vtkAMRStreamingVolumeRepresentation.h.
|
protected |
Definition at line 266 of file vtkAMRStreamingVolumeRepresentation.h.