VTK
9.2.6
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
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 "vtkViewsInfovisModule.h"
// For export macro
32
33
class
vtkApplyColors
;
34
class
vtkProp
;
35
class
vtkRenderView
;
36
class
vtkRenderWindow
;
37
class
vtkTextProperty
;
38
class
vtkTexture
;
39
class
vtkView
;
40
41
class
VTKVIEWSINFOVIS_EXPORT
vtkRenderedRepresentation
:
public
vtkDataRepresentation
42
{
43
public
:
44
static
vtkRenderedRepresentation
*
New
();
45
vtkTypeMacro(
vtkRenderedRepresentation
,
vtkDataRepresentation
);
46
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
47
49
55
vtkSetMacro(LabelRenderMode,
int
);
56
vtkGetMacro(LabelRenderMode,
int
);
58
59
protected
:
60
vtkRenderedRepresentation
();
61
~vtkRenderedRepresentation
()
override
;
62
64
69
void
AddPropOnNextRender
(
vtkProp
* p);
70
void
RemovePropOnNextRender
(
vtkProp
* p);
72
79
std::string
GetHoverString
(
vtkView
* view,
vtkProp
* prop,
vtkIdType
cell);
80
84
virtual
std::string
GetHoverStringInternal
(
vtkSelection
*) {
return
""
; }
85
90
virtual
void
PrepareForRendering
(
vtkRenderView
* view);
91
92
friend
class
vtkRenderView
;
93
94
int
LabelRenderMode
;
95
96
private
:
97
vtkRenderedRepresentation
(
const
vtkRenderedRepresentation
&) =
delete
;
98
void
operator=(
const
vtkRenderedRepresentation
&) =
delete
;
99
100
class
Internals;
101
Internals* Implementation;
102
};
103
104
#endif
vtkApplyColors
apply colors to a data set.
Definition
vtkApplyColors.h:87
vtkDataRepresentation
The superclass for all representations.
Definition
vtkDataRepresentation.h:73
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:40
vtkProp
abstract superclass for all actors, volumes and annotations
Definition
vtkProp.h:57
vtkRenderView
A view containing a renderer.
Definition
vtkRenderView.h:65
vtkRenderWindow
create a window for renderers to draw into
Definition
vtkRenderWindow.h:98
vtkRenderedRepresentation
Definition
vtkRenderedRepresentation.h:42
vtkRenderedRepresentation::~vtkRenderedRepresentation
~vtkRenderedRepresentation() override
vtkRenderedRepresentation::RemovePropOnNextRender
void RemovePropOnNextRender(vtkProp *p)
Subclasses may call these methods to add or remove props from the representation.
vtkRenderedRepresentation::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkRenderedRepresentation::GetHoverString
std::string GetHoverString(vtkView *view, vtkProp *prop, vtkIdType cell)
Obtains the hover text for a particular prop and cell.
vtkRenderedRepresentation::vtkRenderedRepresentation
vtkRenderedRepresentation()
vtkRenderedRepresentation::PrepareForRendering
virtual void PrepareForRendering(vtkRenderView *view)
The view will call this method before every render.
vtkRenderedRepresentation::GetHoverStringInternal
virtual std::string GetHoverStringInternal(vtkSelection *)
Subclasses may override this method to generate the hover text.
Definition
vtkRenderedRepresentation.h:84
vtkRenderedRepresentation::AddPropOnNextRender
void AddPropOnNextRender(vtkProp *p)
Subclasses may call these methods to add or remove props from the representation.
vtkRenderedRepresentation::New
static vtkRenderedRepresentation * New()
vtkRenderedRepresentation::LabelRenderMode
int LabelRenderMode
Definition
vtkRenderedRepresentation.h:94
vtkSelection
data object that represents a "selection" in VTK.
Definition
vtkSelection.h:60
vtkTextProperty
represent text properties.
Definition
vtkTextProperty.h:37
vtkTexture
handles properties associated with a texture map
Definition
vtkTexture.h:69
vtkView
The superclass for all views.
Definition
vtkView.h:64
vtkDataRepresentation.h
vtkSmartPointer.h
vtkIdType
int vtkIdType
Definition
vtkType.h:332
Generated on Fri Jun 7 2024 00:00:00 for VTK by
1.11.0