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  //***************************************************************************
75  // Forwarded to vtkVolumeRepresentationPreprocessor
76  void SetExtractedBlockIndex(unsigned int index);
77 
78  //***************************************************************************
79  // Forwarded to vtkResampleToImage
80  void SetSamplingDimensions(int dims[3])
81  {
82  this->SetSamplingDimensions(dims[0], dims[1], dims[2]);
83  }
84  void SetSamplingDimensions(int xdim, int ydim, int zdim);
85 
87 
93  virtual void SetUseDataPartitions(bool);
94  vtkGetMacro(UseDataPartitions, bool);
96 
97 protected:
100 
104  int FillInputPortInformation(int port, vtkInformation* info) override;
105 
107 
113  bool AddToView(vtkView* view) override;
114 
120  bool RemoveFromView(vtkView* view) override;
121 
125  virtual void UpdateMapperParameters();
126 
127  int ProcessViewRequestResampleToImage(
128  vtkInformationRequestKey* request_type, vtkInformation* inInfo, vtkInformation* outInfo);
129  int RequestDataResampleToImage(vtkInformation* request, vtkInformationVector** inputVector,
130  vtkInformationVector* outputVector);
131 
134 
136 
139 
140  bool UseDataPartitions = false;
141 
142 private:
144  void operator=(const vtkUnstructuredGridVolumeRepresentation&) = delete;
145 
146  class vtkInternals;
147  vtkInternals* Internals;
148 };
149 
150 #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