vtkUnstructuredGridVolumeRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkUnstructuredGridVolumeRepresentation.h
5 
6  Copyright (c) Kitware, Inc.
7  All rights reserved.
8  See Copyright.txt or http://www.paraview.org/HTML/Copyright.html for details.
9 
10  This software is distributed WITHOUT ANY WARRANTY; without even
11  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
12  PURPOSE. See the above copyright notice for more information.
13 
14 =========================================================================*/
25 #ifndef vtkUnstructuredGridVolumeRepresentation_h
26 #define vtkUnstructuredGridVolumeRepresentation_h
27 
28 #include "vtkRemotingViewsModule.h" //needed for exports
30 
33 class vtkDataSet;
34 class vtkOutlineSource;
36 class vtkPolyDataMapper;
39 class vtkPVLODVolume;
40 class vtkResampleToImage;
41 class vtkVolumeProperty;
43 
46 {
47 public:
50  void PrintSelf(ostream& os, vtkIndent indent) override;
51 
55  void AddVolumeMapper(const char* name, vtkAbstractVolumeMapper*);
56 
58 
61  virtual void SetActiveVolumeMapper(const char*);
62  vtkAbstractVolumeMapper* GetActiveVolumeMapper();
64 
72  vtkInformation* outInfo) override;
73 
74  //***************************************************************************
76 
80  void SetActiveAssembly(const char*);
81  void AddBlockSelector(const char*);
82  void RemoveAllBlockSelectors();
84 
85  //***************************************************************************
86  // Forwarded to vtkResampleToImage
87  void SetSamplingDimensions(int dims[3])
88  {
89  this->SetSamplingDimensions(dims[0], dims[1], dims[2]);
90  }
91  void SetSamplingDimensions(int xdim, int ydim, int zdim);
92 
94 
100  virtual void SetUseDataPartitions(bool);
101  vtkGetMacro(UseDataPartitions, bool);
103 
104 protected:
107 
111  int FillInputPortInformation(int port, vtkInformation* info) override;
112 
114 
120  bool AddToView(vtkView* view) override;
121 
127  bool RemoveFromView(vtkView* view) override;
128 
132  virtual void UpdateMapperParameters();
133 
134  int ProcessViewRequestResampleToImage(
135  vtkInformationRequestKey* request_type, vtkInformation* inInfo, vtkInformation* outInfo);
136  int RequestDataResampleToImage(vtkInformation* request, vtkInformationVector** inputVector,
137  vtkInformationVector* outputVector);
138 
141 
143 
146 
147  bool UseDataPartitions = false;
148 
149 private:
151  void operator=(const vtkUnstructuredGridVolumeRepresentation&) = delete;
152 
153  class vtkInternals;
154  vtkInternals* Internals;
155 };
156 
157 #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