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 
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 
56  void SetVisibility(bool visible) override;
57 
61  virtual void SetSelectionVisibility(bool visible);
62 
66  virtual void SetPolarAxesVisibility(bool visible);
67 
69 
72  void SetUpdateTime(double time) override;
73  void SetForceUseCache(bool val) override;
74  void SetForcedCacheKey(double val) override;
75  void SetInputConnection(int port, vtkAlgorithmOutput* input) override;
76  void SetInputConnection(vtkAlgorithmOutput* input) override;
77  void AddInputConnection(int port, vtkAlgorithmOutput* input) override;
78  void AddInputConnection(vtkAlgorithmOutput* input) override;
79  void RemoveInputConnection(int port, vtkAlgorithmOutput* input) override;
80  void RemoveInputConnection(int port, int idx) override;
82 
84 
87  virtual void SetPointFieldDataArrayName(const char*);
88  virtual void SetCellFieldDataArrayName(const char*);
90 
95  unsigned int Initialize(unsigned int minIdAvailable, unsigned int maxIdAvailable) override;
96 
97 protected:
99  ~vtkPVCompositeRepresentation() override;
100 
106  bool AddToView(vtkView* view) override;
107 
113  bool RemoveFromView(vtkView* view) override;
114 
118 
120 
121 private:
123  void operator=(const vtkPVCompositeRepresentation&) = delete;
124 };
125 
126 #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.
#define VTKREMOTINGVIEWS_EXPORT
void MarkModified() override
Propagate the modification to all internal representations.
void SetForceUseCache(bool val) override
Passed on to internal representations as well.
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
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.