VTK
9.1.0
Views
Infovis
vtkRenderedRepresentation.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkRenderedRepresentation.h
5
6
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
7
All rights reserved.
8
See Copyright.txt or http://www.kitware.com/Copyright.htm 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
=========================================================================*/
15
/*-------------------------------------------------------------------------
16
Copyright 2008 Sandia Corporation.
17
Under the terms of Contract DE-AC04-94AL85000 with Sandia Corporation,
18
the U.S. Government retains certain rights in this software.
19
-------------------------------------------------------------------------*/
26
#ifndef vtkRenderedRepresentation_h
27
#define vtkRenderedRepresentation_h
28
29
#include "
vtkDataRepresentation.h
"
30
#include "
vtkSmartPointer.h
"
// for SP ivars
31
#include "
vtkUnicodeString.h
"
// for string
32
#include "vtkViewsInfovisModule.h"
// For export macro
33
34
class
vtkApplyColors
;
35
class
vtkProp
;
36
class
vtkRenderView
;
37
class
vtkRenderWindow
;
38
class
vtkTextProperty
;
39
class
vtkTexture
;
40
class
vtkView
;
41
42
class
VTKVIEWSINFOVIS_EXPORT
vtkRenderedRepresentation
:
public
vtkDataRepresentation
43
{
44
public
:
45
static
vtkRenderedRepresentation
*
New
();
46
vtkTypeMacro(
vtkRenderedRepresentation
,
vtkDataRepresentation
);
47
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
48
50
56
vtkSetMacro(LabelRenderMode,
int
);
57
vtkGetMacro(LabelRenderMode,
int
);
59
60
protected
:
61
vtkRenderedRepresentation
();
62
~vtkRenderedRepresentation
()
override
;
63
65
70
void
AddPropOnNextRender
(
vtkProp
* p);
71
void
RemovePropOnNextRender
(
vtkProp
* p);
73
80
std::string
GetHoverString
(
vtkView
* view,
vtkProp
* prop,
vtkIdType
cell);
81
VTK_DEPRECATED_IN_9_1_0
(
82
"Use void std::string GetHoverString(vtkView* view, vtkProp* prop, vtkIdType cell)"
)
83
vtkUnicodeString
GetHoverText(
vtkView
* view,
vtkProp
* prop,
vtkIdType
cell);
84
88
virtual std::
string
GetHoverStringInternal(
vtkSelection
*) {
return
""
; }
89
VTK_DEPRECATED_IN_9_1_0
(
"Use std::string GetHoverStringInternal(vtkSelection*)"
)
90
vtkUnicodeString
GetHoverTextInternal(
vtkSelection
* selection);
91
96
virtual
void
PrepareForRendering(
vtkRenderView
* view);
97
98
friend class
vtkRenderView
;
99
100
int
LabelRenderMode;
101
102
private:
103
vtkRenderedRepresentation
(const
vtkRenderedRepresentation
&) = delete;
104
void
operator=(const
vtkRenderedRepresentation
&) = delete;
105
106
class Internals;
107
Internals* Implementation;
108
};
109
110
#endif
vtkRenderedRepresentation::RemovePropOnNextRender
void RemovePropOnNextRender(vtkProp *p)
Subclasses may call these methods to add or remove props from the representation.
vtkRenderView
A view containing a renderer.
Definition:
vtkRenderView.h:84
vtkRenderedRepresentation
Definition:
vtkRenderedRepresentation.h:43
vtkIdType
int vtkIdType
Definition:
vtkType.h:332
vtkUnicodeString.h
VTK_DEPRECATED_IN_9_1_0
#define VTK_DEPRECATED_IN_9_1_0(reason)
Definition:
vtkDeprecation.h:117
vtkApplyColors
apply colors to a data set.
Definition:
vtkApplyColors.h:87
vtkSelection
data object that represents a "selection" in VTK.
Definition:
vtkSelection.h:163
vtkRenderedRepresentation::~vtkRenderedRepresentation
~vtkRenderedRepresentation() override
vtkRenderedRepresentation::AddPropOnNextRender
void AddPropOnNextRender(vtkProp *p)
Subclasses may call these methods to add or remove props from the representation.
vtkView
The superclass for all views.
Definition:
vtkView.h:64
vtkTexture
handles properties associated with a texture map
Definition:
vtkTexture.h:175
vtkRenderedRepresentation::GetHoverString
std::string GetHoverString(vtkView *view, vtkProp *prop, vtkIdType cell)
Obtains the hover text for a particular prop and cell.
vtkDataRepresentation
The superclass for all representations.
Definition:
vtkDataRepresentation.h:92
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:113
vtkUnicodeString
String class that stores Unicode text.
Definition:
vtkUnicodeString.h:80
vtkSmartPointer.h
vtkTextProperty
represent text properties.
Definition:
vtkTextProperty.h:143
vtkProp
abstract superclass for all actors, volumes and annotations
Definition:
vtkProp.h:76
vtkRenderedRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkX3D::string
@ string
Definition:
vtkX3D.h:496
vtkDataRepresentation.h
vtkRenderedRepresentation::vtkRenderedRepresentation
vtkRenderedRepresentation()
vtkRenderWindow
create a window for renderers to draw into
Definition:
vtkRenderWindow.h:205
vtkRenderedRepresentation::New
static vtkRenderedRepresentation * New()
Generated on Fri Nov 5 2021 00:11:19 for VTK by
1.8.20