ParaView
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 "vtkPVClientServerCoreRenderingModule.h" //needed for exports
30 
31 class vtkColorTransferFunction;
33 class vtkPiecewiseFunction;
34 class vtkPolyDataMapper;
35 class vtkProjectedTetrahedraMapper;
36 class vtkPVCacheKeeper;
38 class vtkPVLODVolume;
40 class vtkUnstructuredDataDeliveryFilter;
41 class vtkUnstructuredGridVolumeMapper;
42 class vtkVolumeProperty;
44 
45 class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkUnstructuredGridVolumeRepresentation
47 {
48 public:
51  void PrintSelf(ostream& os, vtkIndent indent);
52 
56  void AddVolumeMapper(const char* name, vtkUnstructuredGridVolumeMapper*);
57 
59 
62  virtual void SetActiveVolumeMapper(const char*);
63  vtkUnstructuredGridVolumeMapper* GetActiveVolumeMapper();
65 
72  virtual int ProcessViewRequest(
73  vtkInformationRequestKey* request_type, vtkInformation* inInfo, vtkInformation* outInfo);
74 
81  virtual void MarkModified();
82 
88  virtual void SetVisibility(bool val);
89 
90  //***************************************************************************
91  // Forwarded to vtkVolumeRepresentationPreprocessor
92  void SetExtractedBlockIndex(unsigned int index);
93 
94  //***************************************************************************
95  // Forwarded to Actor.
96  void SetOrientation(double, double, double);
97  void SetOrigin(double, double, double);
98  void SetPickable(int val);
99  void SetPosition(double, double, double);
100  void SetScale(double, double, double);
101 
102  //***************************************************************************
103  // Forwarded to vtkVolumeProperty and vtkProperty (when applicable).
104  void SetInterpolationType(int val);
105  void SetColor(vtkColorTransferFunction* lut);
106  void SetScalarOpacity(vtkPiecewiseFunction* pwf);
107  void SetScalarOpacityUnitDistance(double val);
108 
112  vtkPVLODVolume* GetActor() { return this->Actor; }
113 
115 
121  vtkSetMacro(UseDataPartitions, bool);
122  vtkGetMacro(UseDataPartitions, bool);
124 
125 protected:
128 
132  virtual int FillInputPortInformation(int port, vtkInformation* info);
133 
134  virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
135 
141  virtual bool AddToView(vtkView* view);
142 
148  virtual bool RemoveFromView(vtkView* view);
149 
153  virtual bool IsCached(double cache_key);
154 
158  virtual void UpdateMapperParameters();
159 
162  vtkProjectedTetrahedraMapper* DefaultMapper;
163  vtkVolumeProperty* Property;
165 
167  vtkPolyDataMapper* LODMapper;
168  double DataBounds[6];
169 
171 
172 private:
174  const vtkUnstructuredGridVolumeRepresentation&) VTK_DELETE_FUNCTION;
175  void operator=(const vtkUnstructuredGridVolumeRepresentation&) VTK_DELETE_FUNCTION;
176 
177  class vtkInternals;
178  vtkInternals* Internals;
179 };
180 
181 #endif
void PrintSelf(ostream &os, vtkIndent indent)
vtkPVDataRepresentation adds some ParaView specific API to data representations.
virtual bool IsCached(double cache_key)
Subclasses should override this method when they support caching to indicate if the particular key is...
prevents propagation of update
vtkPVLODVolume * GetActor()
Provides access to the actor used by this representation.
Geometry filter that does outlines for volumes.
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
virtual bool AddToView(vtkView *view)
Making these methods public.
virtual int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo)
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
an actor that supports multiple levels of detail
virtual void MarkModified()
This is one of the most important functions.
prepare data object for volume rendering
virtual bool RemoveFromView(vtkView *view)
Making these methods public.
manages data cache for flip book animations.
This class distributes data for use with ordered compositing (i.e.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Overridden to invoke vtkCommand::UpdateDataEvent.
representation for showing vtkUnstructuredGrid datasets as volumes.