vtkUnstructuredGridVolumeRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
13 #ifndef vtkUnstructuredGridVolumeRepresentation_h
14 #define vtkUnstructuredGridVolumeRepresentation_h
15 
16 #include "vtkRemotingViewsModule.h" //needed for exports
18 
21 class vtkDataSet;
22 class vtkOutlineSource;
24 class vtkPolyDataMapper;
27 class vtkPVLODVolume;
28 class vtkResampleToImage;
29 class vtkVolumeProperty;
31 
32 class VTKREMOTINGVIEWS_EXPORT vtkUnstructuredGridVolumeRepresentation
34 {
35 public:
38  void PrintSelf(ostream& os, vtkIndent indent) override;
39 
43  void AddVolumeMapper(const char* name, vtkAbstractVolumeMapper*);
44 
46 
49  virtual void SetActiveVolumeMapper(const char*);
50  vtkAbstractVolumeMapper* GetActiveVolumeMapper();
52 
60  vtkInformation* outInfo) override;
61 
62  //***************************************************************************
64 
68  void SetActiveAssembly(const char*);
69  void AddBlockSelector(const char*);
70  void RemoveAllBlockSelectors();
72 
73  //***************************************************************************
74  // Forwarded to vtkResampleToImage
75  void SetSamplingDimensions(int dims[3])
76  {
77  this->SetSamplingDimensions(dims[0], dims[1], dims[2]);
78  }
79  void SetSamplingDimensions(int xdim, int ydim, int zdim);
80 
82 
88  virtual void SetUseDataPartitions(bool);
89  vtkGetMacro(UseDataPartitions, bool);
91 
92 protected:
95 
99  int FillInputPortInformation(int port, vtkInformation* info) override;
100 
102 
108  bool AddToView(vtkView* view) override;
109 
115  bool RemoveFromView(vtkView* view) override;
116 
120  virtual void UpdateMapperParameters();
121 
122  int ProcessViewRequestResampleToImage(
123  vtkInformationRequestKey* request_type, vtkInformation* inInfo, vtkInformation* outInfo);
124  int RequestDataResampleToImage(vtkInformation* request, vtkInformationVector** inputVector,
125  vtkInformationVector* outputVector);
126 
129 
131 
134 
135  bool UseDataPartitions = false;
136 
137 private:
139  void operator=(const vtkUnstructuredGridVolumeRepresentation&) = delete;
140 
141  class vtkInternals;
142  vtkInternals* Internals;
143 };
144 
145 #endif
vtkPolyDataMapper
vtkPVLODVolume
an actor that supports multiple levels of detail
Definition: vtkPVLODVolume.h:24
vtkDataRepresentation::New
static vtkDataRepresentation * New()
vtkPVGeometryFilter
Geometry filter that does outlines for volumes.
Definition: vtkPVGeometryFilter.h:42
vtkOutlineSource
vtkInformationVector
vtkPVDataRepresentation::AddToView
bool AddToView(vtkView *view) override
Making these methods public.
vtkUnstructuredGridVolumeRepresentation::ResampleToImageFilter
vtkNew< vtkResampleToImage > ResampleToImageFilter
Definition: vtkUnstructuredGridVolumeRepresentation.h:130
vtkUnstructuredGridVolumeRepresentation::LODMapper
vtkNew< vtkPolyDataMapper > LODMapper
Definition: vtkUnstructuredGridVolumeRepresentation.h:133
vtkVolumeRepresentation.h
vtkColorTransferFunction
vtkVolumeRepresentation
Abstract base class for volume representations. Provides some functionality common to volume represen...
Definition: vtkVolumeRepresentation.h:25
vtkUnstructuredGridVolumeRepresentation::LODGeometryFilter
vtkNew< vtkPVGeometryFilter > LODGeometryFilter
Definition: vtkUnstructuredGridVolumeRepresentation.h:132
vtkPVDataRepresentation::RequestData
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Overridden to invoke vtkCommand::UpdateDataEvent.
vtkPVDataRepresentation::RemoveFromView
bool RemoveFromView(vtkView *view) override
Making these methods public.
vtkUnstructuredGridVolumeRepresentation::Preprocessor
vtkNew< vtkVolumeRepresentationPreprocessor > Preprocessor
Definition: vtkUnstructuredGridVolumeRepresentation.h:127
vtkPassInputTypeAlgorithm::FillInputPortInformation
virtual int FillInputPortInformation(int port, vtkInformation *info)
vtkUnstructuredGridVolumeRepresentation::SetSamplingDimensions
void SetSamplingDimensions(int dims[3])
Definition: vtkUnstructuredGridVolumeRepresentation.h:75
vtkView
vtkIndent
vtkPVDataRepresentation::ProcessViewRequest
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
vtkInformationRequestKey
vtkNew< vtkVolumeRepresentationPreprocessor >
vtkPiecewiseFunction
vtkDataSet
vtkInformation
vtkUnstructuredGridVolumeRepresentation::DefaultMapper
vtkNew< vtkProjectedTetrahedraMapper > DefaultMapper
Definition: vtkUnstructuredGridVolumeRepresentation.h:128
vtkAbstractVolumeMapper
vtkVolumeRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
vtkProjectedTetrahedraMapper
vtkUnstructuredGridVolumeRepresentation
representation for showing vtkUnstructuredGrid datasets as volumes.
Definition: vtkUnstructuredGridVolumeRepresentation.h:32
vtkVolumeRepresentationPreprocessor
prepare data object for volume rendering
Definition: vtkVolumeRepresentationPreprocessor.h:30
vtkVolumeProperty
vtkResampleToImage