VTK  9.7.20261007
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#include "vtkWrappingHints.h" // For VTK_MARSHALAUTO
62
63VTK_ABI_NAMESPACE_BEGIN
64class vtkScivisView;
65
66class VTKVIEWSSCIVIS_EXPORT VTK_MARSHALAUTO vtkScivisRepresentation
68{
69public:
71 void PrintSelf(ostream& os, vtkIndent indent) override;
72
74
81 virtual void SetVisibility(bool val) = 0;
82 virtual bool GetVisibility() = 0;
84
85protected:
88
90
95 virtual bool AddToView(vtkScivisView* vtkNotUsed(view)) { return true; }
96 virtual bool RemoveFromView(vtkScivisView* vtkNotUsed(view)) { return true; }
98
99private:
100 friend class vtkScivisView;
101
103 void operator=(const vtkScivisRepresentation&) = delete;
104};
105
106VTK_ABI_NAMESPACE_END
107#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.
#define VTK_MARSHALAUTO