vtkPVCompositeRepresentation.h
Go to the documentation of this file.
1 // SPDX-FileCopyrightText: Copyright (c) Kitware Inc.
2 // SPDX-License-Identifier: BSD-3-Clause
17 #ifndef vtkPVCompositeRepresentation_h
18 #define vtkPVCompositeRepresentation_h
19 
21 #include "vtkRemotingViewsModule.h" //needed for exports
22 
26 
27 class VTKREMOTINGVIEWS_EXPORT vtkPVCompositeRepresentation : public vtkCompositeRepresentation
28 {
29 public:
32  void PrintSelf(ostream& os, vtkIndent indent) override;
33 
38  void SetSelectionRepresentation(vtkSelectionRepresentation*);
39  void SetGridAxesRepresentation(vtkPVGridAxes3DRepresentation*);
40 
45  void SetPolarAxesRepresentation(vtkPolarAxesRepresentation*);
46 
50  void MarkModified() override;
51 
58  vtkInformation* outInfo) override;
59 
64  void SetVisibility(bool visible) override;
65 
69  virtual void SetSelectionVisibility(bool visible);
70 
75  void SetActiveRepresentation(const char* key);
76 
80  virtual void SetPolarAxesVisibility(bool visible);
81 
83 
86  void SetUpdateTime(double time) override;
87  void SetForceUseCache(bool val) override;
88  void SetForcedCacheKey(double val) override;
89  void SetInputConnection(int port, vtkAlgorithmOutput* input) override;
90  void SetInputConnection(vtkAlgorithmOutput* input) override;
91  void AddInputConnection(int port, vtkAlgorithmOutput* input) override;
92  void AddInputConnection(vtkAlgorithmOutput* input) override;
93  void RemoveInputConnection(int port, vtkAlgorithmOutput* input) override;
94  void RemoveInputConnection(int port, int idx) override;
96 
98 
101  virtual void SetPointFieldDataArrayName(const char*);
102  virtual void SetCellFieldDataArrayName(const char*);
104 
109  unsigned int Initialize(unsigned int minIdAvailable, unsigned int maxIdAvailable) override;
110 
111 protected:
113  ~vtkPVCompositeRepresentation() override;
114 
120  bool AddToView(vtkView* view) override;
121 
127  bool RemoveFromView(vtkView* view) override;
128 
139  void UpdateCoincidentOffsetForSelectionOverlay();
140 
144 
146  bool HasNonEmptySelection = false;
147 
148 private:
150  void operator=(const vtkPVCompositeRepresentation&) = delete;
151 };
152 
153 #endif
combine multiple representations into one with only 1 representation active at a time.
a data-representation used by ParaView.
bool AddToView(vtkView *view) override
Adds the representation to the view.
void MarkModified() override
Propagate the modification to all internal representations.
void SetForceUseCache(bool val) override
Passed on to internal representations as well.
void SetActiveRepresentation(const char *key)
Set the active key.
void PrintSelf(ostream &os, vtkIndent indent) override
vtkPolarAxesRepresentation * PolarAxesRepresentation
vtkPVGridAxes3DRepresentation * GridAxesRepresentation
void RemoveInputConnection(int port, vtkAlgorithmOutput *input) override
Overridden to simply pass the input to the internal representations.
void SetForcedCacheKey(double val) override
Passed on to internal representations as well.
void SetVisibility(bool val) override
Methods overridden to propagate to the active representation.
virtual unsigned int Initialize(unsigned int minIdAvailable, unsigned int maxIdAvailable)
Initialize the representation with an identifier range so each internal representation can own a uniq...
void SetUpdateTime(double time) override
Passed on to internal representations as well.
void AddInputConnection(int port, vtkAlgorithmOutput *input) override
Overridden to simply pass the input to the internal representations.
vtkSelectionRepresentation * SelectionRepresentation
int ProcessViewRequest(vtkInformationRequestKey *request_type, vtkInformation *inInfo, vtkInformation *outInfo) override
vtkAlgorithm::ProcessRequest() equivalent for rendering passes.
bool RemoveFromView(vtkView *view) override
Removes the representation to the view.
static vtkCompositeRepresentation * New()
representation for a polar-axes.
vtkSelectionRepresentation is a representation to show the extracted cells.
Representation for vtkPVGridAxis3DActor.
void SetInputConnection(int port, vtkAlgorithmOutput *input) override
Overridden to simply pass the input to the internal representations.