24 #ifndef vtkPVDataRepresentation_h 25 #define vtkPVDataRepresentation_h 27 #include "vtkDataRepresentation.h" 28 #include "vtkPVClientServerCoreRenderingModule.h" 29 #include "vtkWeakPointer.h" 30 class vtkInformationRequestKey;
36 void PrintSelf(ostream& os, vtkIndent indent);
45 virtual int ProcessViewRequest(
46 vtkInformationRequestKey* request_type, vtkInformation* inInfo, vtkInformation* outInfo);
68 virtual void MarkModified();
83 virtual unsigned int Initialize(
unsigned int minIdAvailable,
unsigned int maxIdAvailable);
96 vtkGetMacro(Visibility,
bool);
103 return this->GetInputDataObject(0, 0);
110 virtual void SetUpdateTime(
double time);
111 vtkGetMacro(UpdateTime,
double);
118 vtkGetMacro(UpdateTimeValid,
bool);
126 VTK_LEGACY(
virtual void SetUseCache(
bool));
127 VTK_LEGACY(
virtual void SetCacheKey(
double val));
146 virtual double GetCacheKey();
147 virtual bool GetUseCache();
156 bool GetUsingCacheForUpdate();
158 vtkGetMacro(NeedUpdate,
bool);
165 virtual bool AddToView(vtkView* view);
166 virtual bool RemoveFromView(vtkView* view);
178 return this->GetInternalOutputPort(port, 0);
180 virtual vtkAlgorithmOutput* GetInternalOutputPort(
int port,
int conn);
185 vtkView* GetView()
const;
204 virtual vtkExecutive* CreateDefaultExecutive();
209 virtual int RequestData(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
211 virtual int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
212 vtkInformationVector* outputVector);
214 virtual int RequestUpdateTime(vtkInformation*, vtkInformationVector**, vtkInformationVector*);
226 double ForcedCacheKey;
230 Internals* Implementation;
231 vtkWeakPointer<vtkView> View;
virtual vtkDataObject * GetRenderedDataObject(int vtkNotUsed(port))
Returns the data object that is rendered from the given input port.
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...
virtual void SetForceUseCache(bool val)
unsigned int UniqueIdentifier
virtual void SetVisibility(bool val)
Get/Set the visibility for this representation.
virtual vtkAlgorithmOutput * GetInternalOutputPort(int port)
unsigned int GetUniqueIdentifier()
Return 0 if the Initialize() method was not called otherwise a unique ID that will be shared across t...
virtual vtkAlgorithmOutput * GetInternalOutputPort()
Retrieves an output port for the input data object at the specified port and connection index...
virtual void SetForcedCacheKey(double val)
Typically a representation decides whether to use cache based on the view's values for UseCache and C...