vtkPVCompositeRepresentation.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ParaView
4  Module: vtkPVCompositeRepresentation.h
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 =========================================================================*/
29 #ifndef vtkPVCompositeRepresentation_h
30 #define vtkPVCompositeRepresentation_h
31 
33 #include "vtkRemotingViewsModule.h" //needed for exports
34 
38 
40 {
41 public:
44  void PrintSelf(ostream& os, vtkIndent indent) override;
45 
50  void SetSelectionRepresentation(vtkSelectionRepresentation*);
51  void SetGridAxesRepresentation(vtkPVGridAxes3DRepresentation*);
52 
57  void SetPolarAxesRepresentation(vtkPolarAxesRepresentation*);
58 
62  void MarkModified() override;
63 
68  void SetVisibility(bool visible) override;
69 
73  virtual void SetSelectionVisibility(bool visible);
74 
78  virtual void SetPolarAxesVisibility(bool visible);
79 
81 
84  void SetUpdateTime(double time) override;
85  void SetForceUseCache(bool val) override;
86  void SetForcedCacheKey(double val) override;
87  void SetInputConnection(int port, vtkAlgorithmOutput* input) override;
88  void SetInputConnection(vtkAlgorithmOutput* input) override;
89  void AddInputConnection(int port, vtkAlgorithmOutput* input) override;
90  void AddInputConnection(vtkAlgorithmOutput* input) override;
91  void RemoveInputConnection(int port, vtkAlgorithmOutput* input) override;
92  void RemoveInputConnection(int port, int idx) override;
94 
96 
99  virtual void SetPointFieldDataArrayName(const char*);
100  virtual void SetCellFieldDataArrayName(const char*);
102 
107  unsigned int Initialize(unsigned int minIdAvailable, unsigned int maxIdAvailable) override;
108 
109 protected:
111  ~vtkPVCompositeRepresentation() override;
112 
118  bool AddToView(vtkView* view) override;
119 
125  bool RemoveFromView(vtkView* view) override;
126 
130 
132 
133 private:
135  void operator=(const vtkPVCompositeRepresentation&) = delete;
136 };
137 
138 #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()
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.