ParaView
vtkAMROutlineRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: $RCSfile$
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 =========================================================================*/
26 #ifndef vtkAMROutlineRepresentation_h
27 #define vtkAMROutlineRepresentation_h
28 
29 #include "vtkBoundingBox.h" // needed for vtkBoundingBox.
31 #include "vtkSmartPointer.h" // for smart pointer.
32 #include "vtkWeakPointer.h" // for weak pointer.
33 
35 class vtkCompositePolyDataMapper2;
36 class vtkPVLODActor;
37 
38 class VTKPVCLIENTSERVERCORERENDERING_EXPORT vtkAMROutlineRepresentation
40 {
41 public:
42  static vtkAMROutlineRepresentation* New();
44  void PrintSelf(ostream& os, vtkIndent indent);
45 
49  virtual int ProcessViewRequest(
50  vtkInformationRequestKey* request_type, vtkInformation* inInfo, vtkInformation* outInfo);
51 
56  virtual void SetVisibility(bool val);
57 
58 protected:
61 
67  virtual bool AddToView(vtkView* view);
68 
74  virtual bool RemoveFromView(vtkView* view);
75 
79  int FillInputPortInformation(int port, vtkInformation* info);
80 
86  virtual int RequestInformation(
87  vtkInformation* rqst, vtkInformationVector** inputVector, vtkInformationVector* outputVector);
88 
96  virtual int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
97  vtkInformationVector* outputVector);
98 
104  virtual int RequestData(
105  vtkInformation* rqst, vtkInformationVector** inputVector, vtkInformationVector* outputVector);
106 
108 
112  vtkGetMacro(StreamingCapablePipeline, bool);
114 
116 
119  vtkGetMacro(InStreamingUpdate, bool);
121 
128  bool StreamingUpdate(const double view_planes[24]);
129 
135  vtkSmartPointer<vtkDataObject> ProcessedData;
136 
142  vtkSmartPointer<vtkDataObject> ProcessedPiece;
143 
147  vtkWeakPointer<vtkDataObject> RenderedData;
148 
155  vtkSmartPointer<vtkAMRStreamingPriorityQueue> PriorityQueue;
156 
158 
161  vtkSmartPointer<vtkCompositePolyDataMapper2> Mapper;
162  vtkSmartPointer<vtkPVLODActor> Actor;
164 
168  vtkBoundingBox DataBounds;
169 
170 private:
171  vtkAMROutlineRepresentation(const vtkAMROutlineRepresentation&) VTK_DELETE_FUNCTION;
172  void operator=(const vtkAMROutlineRepresentation&) VTK_DELETE_FUNCTION;
173 
180  bool StreamingCapablePipeline;
181 
189  bool InStreamingUpdate;
190 };
191 
192 #endif
vtkSmartPointer< vtkDataObject > ProcessedData
This is the data object generated processed by the most recent call to RequestData() while not stream...
void PrintSelf(ostream &os, vtkIndent indent)
vtkWeakPointer< vtkDataObject > RenderedData
Helps us keep track of the data being rendered.
vtkSmartPointer< vtkAMRStreamingPriorityQueue > PriorityQueue
vtkAMRStreamingPriorityQueue is a helper class we used to compute the order in which to request block...
vtkPVDataRepresentation adds some ParaView specific API to data representations.
vtkBoundingBox DataBounds
Used to keep track of data bounds.
virtual int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector)
vtkSmartPointer< vtkCompositePolyDataMapper2 > Mapper
Actor used to render the outlines in the view.
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.
vtkSmartPointer< vtkDataObject > ProcessedPiece
This is the data object generated processed by the most recent call to RequestData() while streaming...
virtual bool RemoveFromView(vtkView *view)
Making these methods public.
vtkSmartPointer< vtkPVLODActor > Actor
Actor used to render the outlines in the view.
an actor that supports multiple levels of detail
Definition: vtkPVLODActor.h:37
implements a coverage based priority queue for vtkOverlappingAMR dataset.
a simple outline representation for AMR datasets that supports streaming.
virtual int RequestData(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
Overridden to invoke vtkCommand::UpdateDataEvent.