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 
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 
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
vtkNew< vtkVolumeRepresentationPreprocessor > Preprocessor
#define VTKREMOTINGVIEWS_EXPORT
bool AddToView(vtkView *view) override
Making these methods public.
info
Geometry filter that does outlines for volumes.
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
virtual int FillInputPortInformation(int port, vtkInformation *info)
int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *) override
Overridden to invoke vtkCommand::UpdateDataEvent.
Abstract base class for volume representations.
an actor that supports multiple levels of detail
bool RemoveFromView(vtkView *view) override
Making these methods public.
prepare data object for volume rendering
static vtkDataRepresentation * New()
port
representation for showing vtkUnstructuredGrid datasets as volumes.
void PrintSelf(ostream &os, vtkIndent indent) override