VTK  9.3.1
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 
13 #include "vtkDataRepresentation.h"
14 #include "vtkSmartPointer.h" // for SP ivars
15 #include "vtkViewsInfovisModule.h" // For export macro
16 
17 VTK_ABI_NAMESPACE_BEGIN
18 class vtkApplyColors;
19 class vtkProp;
20 class vtkRenderView;
21 class vtkRenderWindow;
22 class vtkTextProperty;
23 class vtkTexture;
24 class vtkView;
25 
26 class VTKVIEWSINFOVIS_EXPORT vtkRenderedRepresentation : public vtkDataRepresentation
27 {
28 public:
31  void PrintSelf(ostream& os, vtkIndent indent) override;
32 
34 
40  vtkSetMacro(LabelRenderMode, int);
41  vtkGetMacro(LabelRenderMode, int);
43 
44 protected:
46  ~vtkRenderedRepresentation() override;
47 
49 
54  void AddPropOnNextRender(vtkProp* p);
55  void RemovePropOnNextRender(vtkProp* p);
57 
64  std::string GetHoverString(vtkView* view, vtkProp* prop, vtkIdType cell);
65 
70 
75  virtual void PrepareForRendering(vtkRenderView* view);
76 
77  friend class vtkRenderView;
78 
80 
81 private:
83  void operator=(const vtkRenderedRepresentation&) = delete;
84 
85  class Internals;
86  Internals* Implementation;
87 };
88 
89 VTK_ABI_NAMESPACE_END
90 #endif
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:45
data object that represents a "selection" in VTK.
Definition: vtkSelection.h:49
int vtkIdType
Definition: vtkType.h:315
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
The superclass for all views.
Definition: vtkView.h:48
a simple class to control print indentation
Definition: vtkIndent.h:28
The superclass for all representations.
handles properties associated with a texture map
Definition: vtkTexture.h:57
represent text properties.
virtual std::string GetHoverStringInternal(vtkSelection *)
Subclasses may override this method to generate the hover text.
static vtkDataRepresentation * New()
create a window for renderers to draw into
A view containing a renderer.
Definition: vtkRenderView.h:49
apply colors to a data set.