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 "vtkRemotingViewsModule.h" // for export macros
32 #include "vtkSmartPointer.h" // for smart pointer.
33 #include "vtkWeakPointer.h" // for weak pointer.
34 
37 class vtkPVLODActor;
38 
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
50  vtkInformation* outInfo) override;
51 
56  void SetVisibility(bool val) override;
57 
59 
62  void SetAmbient(double);
63  void SetDiffuse(double);
64  void SetSpecular(double);
65  void SetSpecularPower(double val);
66  void SetAmbientColor(double r, double g, double b);
67  void SetDiffuseColor(double r, double g, double b);
68  void SetSpecularColor(double r, double g, double b);
69  void SetLineWidth(double val);
70  void SetOpacity(double val);
71  void SetLuminosity(double val);
72  void SetRenderLinesAsTubes(bool);
74 
76 
79  void SetOrientation(double, double, double);
80  void SetOrigin(double, double, double);
81  void SetPickable(int val);
82  void SetPosition(double, double, double);
83  void SetScale(double, double, double);
84  void SetUserTransform(const double[16]);
86 
87 protected:
89  ~vtkAMROutlineRepresentation() override;
90 
96  bool AddToView(vtkView* view) override;
97 
103  bool RemoveFromView(vtkView* view) override;
104 
108  int FillInputPortInformation(int port, vtkInformation* info) override;
109 
115  int RequestInformation(vtkInformation* rqst, vtkInformationVector** inputVector,
116  vtkInformationVector* outputVector) override;
117 
125  int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
126  vtkInformationVector* outputVector) override;
127 
133  int RequestData(vtkInformation* rqst, vtkInformationVector** inputVector,
134  vtkInformationVector* outputVector) override;
135 
137 
141  vtkGetMacro(StreamingCapablePipeline, bool);
143 
145 
148  vtkGetMacro(InStreamingUpdate, bool);
150 
157  bool StreamingUpdate(const double view_planes[24]);
158 
165 
172 
177 
185 
187 
193 
198 
199 private:
201  void operator=(const vtkAMROutlineRepresentation&) = delete;
202 
209  bool StreamingCapablePipeline;
210 
218  bool InStreamingUpdate;
219 };
220 
221 #endif
vtkSmartPointer< vtkDataObject > ProcessedData
This is the data object generated processed by the most recent call to RequestData() while not stream...
virtual int RequestInformation(vtkInformation *, vtkInformationVector **, vtkInformationVector *)
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...
#define VTKREMOTINGVIEWS_EXPORT
vtkPVDataRepresentation adds some ParaView specific API to data representations.
int RequestUpdateExtent(vtkInformation *request, vtkInformationVector **inputVector, vtkInformationVector *outputVector) override
vtkBoundingBox DataBounds
Used to keep track of data bounds.
bool AddToView(vtkView *view) override
Making these methods public.
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 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.
vtkSmartPointer< vtkDataObject > ProcessedPiece
This is the data object generated processed by the most recent call to RequestData() while streaming...
bool RemoveFromView(vtkView *view) override
Making these methods public.
static vtkDataRepresentation * New()
vtkSmartPointer< vtkPVLODActor > Actor
Actor used to render the outlines in the view.
an actor that supports multiple levels of detail
Definition: vtkPVLODActor.h:37
void PrintSelf(ostream &os, vtkIndent indent) override
implements a coverage based priority queue for vtkOverlappingAMR dataset.
a simple outline representation for AMR datasets that supports streaming.