vtkAMROutlineRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
14 #ifndef vtkAMROutlineRepresentation_h
15 #define vtkAMROutlineRepresentation_h
16 
17 #include "vtkBoundingBox.h" // needed for vtkBoundingBox.
19 #include "vtkRemotingViewsModule.h" // for export macros
20 #include "vtkSmartPointer.h" // for smart pointer.
21 #include "vtkWeakPointer.h" // for weak pointer.
22 
25 class vtkPVLODActor;
26 
28 {
29 public:
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
38  vtkInformation* outInfo) override;
39 
44  void SetVisibility(bool val) override;
45 
47 
50  void SetAmbient(double);
51  void SetDiffuse(double);
52  void SetSpecular(double);
53  void SetSpecularPower(double val);
54  void SetAmbientColor(double r, double g, double b);
55  void SetDiffuseColor(double r, double g, double b);
56  void SetSpecularColor(double r, double g, double b);
57  void SetLineWidth(double val);
58  void SetOpacity(double val);
59  void SetLuminosity(double val);
60  void SetRenderLinesAsTubes(bool);
62 
64 
67  void SetOrientation(double, double, double);
68  void SetOrigin(double, double, double);
69  void SetPickable(int val);
70  void SetPosition(double, double, double);
71  void SetScale(double, double, double);
72  void SetUserTransform(const double[16]);
74 
75 protected:
77  ~vtkAMROutlineRepresentation() override;
78 
84  bool AddToView(vtkView* view) override;
85 
91  bool RemoveFromView(vtkView* view) override;
92 
96  int FillInputPortInformation(int port, vtkInformation* info) override;
97 
103  int RequestInformation(vtkInformation* rqst, vtkInformationVector** inputVector,
104  vtkInformationVector* outputVector) override;
105 
113  int RequestUpdateExtent(vtkInformation* request, vtkInformationVector** inputVector,
114  vtkInformationVector* outputVector) override;
115 
121  int RequestData(vtkInformation* rqst, vtkInformationVector** inputVector,
122  vtkInformationVector* outputVector) override;
123 
125 
129  vtkGetMacro(StreamingCapablePipeline, bool);
131 
133 
136  vtkGetMacro(InStreamingUpdate, bool);
138 
145  bool StreamingUpdate(const double view_planes[24]);
146 
153 
160 
165 
173 
175 
181 
186 
187 private:
189  void operator=(const vtkAMROutlineRepresentation&) = delete;
190 
197  bool StreamingCapablePipeline;
198 
206  bool InStreamingUpdate;
207 };
208 
209 #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.
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.
vtkSmartPointer< vtkCompositePolyDataMapper > Mapper
Actor used to render the outlines in the view.
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:25
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.