24 #ifndef vtkAMRStreamingVolumeRepresentation_h 25 #define vtkAMRStreamingVolumeRepresentation_h 27 #include "vtkBoundingBox.h" 29 #include "vtkSmartPointer.h" 32 class vtkColorTransferFunction;
34 class vtkOverlappingAMR;
35 class vtkPiecewiseFunction;
39 class vtkSmartVolumeMapper;
40 class vtkVolumeProperty;
48 void PrintSelf(ostream& os, vtkIndent indent);
52 RESAMPLE_OVER_DATA_BOUNDS = 0,
53 RESAMPLE_USING_VIEW_FRUSTUM = 1
65 void SetResamplingMode(
int val);
66 vtkGetMacro(ResamplingMode,
int);
77 vtkInformationRequestKey* request_type, vtkInformation* inInfo, vtkInformation* outInfo);
89 void SetNumberOfSamples(
int x,
int y,
int z);
96 vtkSetClampMacro(StreamingRequestSize,
int, 1, 10000);
97 vtkGetMacro(StreamingRequestSize,
int);
104 virtual void SetInputArrayToProcess(
105 int idx,
int port,
int connection,
int fieldAssociation,
const char* name);
107 int idx,
int port,
int connection,
int fieldAssociation,
int fieldAttributeType)
109 this->Superclass::SetInputArrayToProcess(
110 idx, port, connection, fieldAssociation, fieldAttributeType);
114 this->Superclass::SetInputArrayToProcess(idx, info);
117 const char* fieldAssociation,
const char* attributeTypeorName)
119 this->Superclass::SetInputArrayToProcess(
120 idx, port, connection, fieldAssociation, attributeTypeorName);
129 void SetOrientation(
double,
double,
double);
130 void SetOrigin(
double,
double,
double);
131 void SetPickable(
int val);
132 void SetPosition(
double,
double,
double);
133 void SetScale(
double,
double,
double);
137 void SetInterpolationType(
int val);
138 void SetColor(vtkColorTransferFunction* lut);
139 void SetScalarOpacity(vtkPiecewiseFunction* pwf);
140 void SetScalarOpacityUnitDistance(
double val);
141 void SetAmbient(
double);
142 void SetDiffuse(
double);
143 void SetSpecular(
double);
144 void SetSpecularPower(
double);
146 void SetIndependantComponents(
bool);
150 void SetRequestedRenderMode(
int);
173 virtual int FillInputPortInformation(
int port, vtkInformation* info);
180 virtual int RequestInformation(vtkInformation* request, vtkInformationVector** inputVector,
181 vtkInformationVector* outputVector);
190 virtual int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
191 vtkInformationVector* outputVector);
198 virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
205 vtkGetMacro(StreamingCapablePipeline,
bool);
212 vtkGetMacro(InStreamingUpdate,
bool);
221 bool StreamingUpdate(
vtkPVRenderView* view,
const double view_planes[24]);
257 vtkSmartPointer<vtkPVLODVolume>
Actor;
279 bool StreamingCapablePipeline;
288 bool InStreamingUpdate;
void PrintSelf(ostream &os, vtkIndent indent)
vtkSmartPointer< vtkAMRStreamingPriorityQueue > PriorityQueue
vtkAMRStreamingPriorityQueue is a helper class we used to compute the order in which to request block...
vtkPVDataRepresentation adds some ParaView specific API to data representations.
virtual void SetInputArrayToProcess(int idx, int port, int connection, int fieldAssociation, int fieldAttributeType)
Set the input data arrays that this algorithm will process.
image data source that resamples an AMR dataset to produce the image data.
representation used for volume rendering AMR datasets with ability to stream blocks.
vtkSmartPointer< vtkDataObject > ProcessedPiece
This is the data object generated processed by the most recent call to RequestData() while streaming...
virtual void SetInputArrayToProcess(int idx, vtkInformation *info)
Set the input data arrays that this algorithm will process.
virtual int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkSmartPointer< vtkResampledAMRImageSource > Resampler
vtkImageData source used to resample an AMR dataset into a uniform grid suitable for volume rendering...
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
virtual bool AddToView(vtkView *view)
Making these methods public.
vtkSmartPointer< vtkSmartVolumeMapper > VolumeMapper
Rendering components.
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
vtkSmartPointer< vtkDataObject > ProcessedData
This is the data object generated processed by the most recent call to RequestData() while not stream...
an actor that supports multiple levels of detail
vtkSmartPointer< vtkVolumeProperty > Property
Rendering components.
virtual bool RemoveFromView(vtkView *view)
Making these methods public.
vtkSmartPointer< vtkPVLODVolume > Actor
Rendering components.
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.
implements a coverage based priority queue for vtkOverlappingAMR dataset.
Render View for ParaView.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Overridden to invoke vtkCommand::UpdateDataEvent.
vtkBoundingBox DataBounds
Used to keep track of data bounds.