Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
mitkGradientBackground.h
Go to the documentation of this file.
1
/*============================================================================
2
3
The Medical Imaging Interaction Toolkit (MITK)
4
5
Copyright (c) German Cancer Research Center (DKFZ)
6
All rights reserved.
7
8
Use of this source code is governed by a 3-clause BSD license that can be
9
found in the LICENSE file.
10
11
============================================================================*/
12
13
#ifndef mitkGradientBackground_h
14
#define mitkGradientBackground_h
15
16
#include <itkObject.h>
17
#include <
mitkColorProperty.h
>
18
#include <
mitkCommon.h
>
19
#include <vtkSmartPointer.h>
20
21
class
vtkRenderer;
22
class
vtkRenderWindow;
23
24
namespace
mitk
25
{
26
class
RenderWindow;
36
class
MITKCORE_EXPORT
GradientBackground
:
public
itk::Object
37
{
38
public
:
39
mitkClassMacroItkParent
(
GradientBackground
, itk::Object);
40
41
itkFactorylessNewMacro(
Self
);
42
43
itkCloneMacro(
Self
);
44
50
virtual
void
SetRenderWindow(
vtkSmartPointer<vtkRenderWindow>
renderWindow);
51
56
virtual
vtkSmartPointer<vtkRenderWindow>
GetRenderWindow();
57
63
virtual
vtkSmartPointer<vtkRenderer>
GetVtkRenderer();
64
69
virtual
void
SetGradientColors(
double
r1,
double
g1,
double
b1,
double
r2,
double
g2,
double
b2);
70
virtual
void
SetGradientColors(
Color
upper,
Color
lower);
71
virtual
void
SetUpperColor(
double
r,
double
g,
double
b);
72
virtual
void
SetLowerColor(
double
r,
double
g,
double
b);
73
virtual
void
SetUpperColor(
Color
upper);
74
virtual
void
SetLowerColor(
Color
lower);
75
80
virtual
void
Enable();
81
86
virtual
void
Disable();
87
92
virtual
bool
IsEnabled();
93
94
protected
:
95
GradientBackground
();
96
~
GradientBackground
()
override
;
97
98
vtkSmartPointer<vtkRenderWindow>
m_RenderWindow
;
99
100
vtkSmartPointer<vtkRenderer>
m_Renderer
;
101
};
102
}
// end of namespace mitk
103
#endif
vtkSmartPointer< vtkRenderWindow >
mitk::Color
itk::RGBPixel< float > Color
Color Standard RGB color typedef (float)
Definition:
mitkColorProperty.h:38
mitkClassMacroItkParent
#define mitkClassMacroItkParent(className, SuperClassName)
Definition:
mitkCommon.h:45
mitk
Find image slices visible on a given plane.
Definition:
RenderingTests.dox:1
mitk::GradientBackground::m_Renderer
vtkSmartPointer< vtkRenderer > m_Renderer
Definition:
mitkGradientBackground.h:100
mitkCommon.h
mitk::GradientBackground
Definition:
mitkGradientBackground.h:36
mitkColorProperty.h
mitk::GradientBackground::m_RenderWindow
vtkSmartPointer< vtkRenderWindow > m_RenderWindow
Definition:
mitkGradientBackground.h:98
MITKCORE_EXPORT
#define MITKCORE_EXPORT
Definition:
MitkCoreExports.h:15
src
MITK
Modules
Core
include
mitkGradientBackground.h
Generated on Sat Nov 23 2024 02:13:12 for Medical Imaging Interaction Toolkit by
1.8.17