VTK  9.7.20260824
vtkScivisRepresentation.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-License-Identifier: BSD-3-Clause
3
55
56#ifndef vtkScivisRepresentation_h
57#define vtkScivisRepresentation_h
58
60#include "vtkViewsScivisModule.h" // For export macro
61
62VTK_ABI_NAMESPACE_BEGIN
63class vtkScivisView;
64
65class VTKVIEWSSCIVIS_EXPORT vtkScivisRepresentation : public vtkPassInputTypeAlgorithm
66{
67public:
69 void PrintSelf(ostream& os, vtkIndent indent) override;
70
72
79 virtual void SetVisibility(bool val) = 0;
80 virtual bool GetVisibility() = 0;
82
83protected:
86
88
93 virtual bool AddToView(vtkScivisView* vtkNotUsed(view)) { return true; }
94 virtual bool RemoveFromView(vtkScivisView* vtkNotUsed(view)) { return true; }
96
97private:
98 friend class vtkScivisView;
99
101 void operator=(const vtkScivisRepresentation&) = delete;
102};
103
104VTK_ABI_NAMESPACE_END
105#endif
a simple class to control print indentation
Definition vtkIndent.h:108
virtual bool AddToView(vtkScivisView *view)
Called when this representation is added to or removed from a view.
virtual bool GetVisibility()=0
Whether this representation draws at all.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
~vtkScivisRepresentation() override
virtual bool RemoveFromView(vtkScivisView *view)
Called when this representation is added to or removed from a view.
virtual void SetVisibility(bool val)=0
Whether this representation draws at all.
A ready-made rendering assembly for scientific visualization.