VTK  9.4.20241221
vtkRenderedRepresentation.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
2// SPDX-FileCopyrightText: Copyright 2008 Sandia Corporation
3// SPDX-License-Identifier: LicenseRef-BSD-3-Clause-Sandia-USGov
10#ifndef vtkRenderedRepresentation_h
11#define vtkRenderedRepresentation_h
12
14#include "vtkSmartPointer.h" // for SP ivars
15#include "vtkViewsInfovisModule.h" // For export macro
16
17VTK_ABI_NAMESPACE_BEGIN
18class vtkApplyColors;
19class vtkProp;
20class vtkRenderView;
21class vtkRenderWindow;
22class vtkTextProperty;
23class vtkTexture;
24class vtkView;
25
26class VTKVIEWSINFOVIS_EXPORT vtkRenderedRepresentation : public vtkDataRepresentation
27{
28public:
31 void PrintSelf(ostream& os, vtkIndent indent) override;
32
34
40 vtkSetMacro(LabelRenderMode, int);
41 vtkGetMacro(LabelRenderMode, int);
43
44protected:
47
49
57
64 std::string GetHoverString(vtkView* view, vtkProp* prop, vtkIdType cell);
65
69 virtual std::string GetHoverStringInternal(vtkSelection*) { return ""; }
70
76
77 friend class vtkRenderView;
78
80
81private:
83 void operator=(const vtkRenderedRepresentation&) = delete;
84
85 class Internals;
86 Internals* Implementation;
87};
88
89VTK_ABI_NAMESPACE_END
90#endif
apply colors to a data set.
The superclass for all representations.
a simple class to control print indentation
Definition vtkIndent.h:108
abstract superclass for all actors, volumes and annotations
Definition vtkProp.h:66
A view containing a renderer.
create a window for renderers to draw into
~vtkRenderedRepresentation() override
void RemovePropOnNextRender(vtkProp *p)
Subclasses may call these methods to add or remove props from the representation.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
std::string GetHoverString(vtkView *view, vtkProp *prop, vtkIdType cell)
Obtains the hover text for a particular prop and cell.
virtual void PrepareForRendering(vtkRenderView *view)
The view will call this method before every render.
virtual std::string GetHoverStringInternal(vtkSelection *)
Subclasses may override this method to generate the hover text.
void AddPropOnNextRender(vtkProp *p)
Subclasses may call these methods to add or remove props from the representation.
static vtkRenderedRepresentation * New()
data object that represents a "selection" in VTK.
represent text properties.
handles properties associated with a texture map
Definition vtkTexture.h:168
The superclass for all views.
Definition vtkView.h:50
int vtkIdType
Definition vtkType.h:315