VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
home
demarle
Source
VTK
release
8.2
build
Utilities
Doxygen
dox
Views
Context2D
vtkContextView.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkContextView.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
=========================================================================*/
34
#ifndef vtkContextView_h
35
#define vtkContextView_h
36
37
#include "vtkViewsContext2DModule.h"
// For export macro
38
#include "
vtkRenderViewBase.h
"
39
#include "
vtkSmartPointer.h
"
// Needed for SP ivars
40
41
class
vtkContext2D
;
42
class
vtkContextScene
;
43
44
class
VTKVIEWSCONTEXT2D_EXPORT
vtkContextView
:
public
vtkRenderViewBase
45
{
46
public
:
47
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
48
vtkTypeMacro(
vtkContextView
,
vtkRenderViewBase
);
49
50
static
vtkContextView
*
New
();
51
55
virtual
void
SetContext(
vtkContext2D
*context);
56
60
virtual
vtkContext2D
* GetContext();
61
65
virtual
void
SetScene(
vtkContextScene
*scene);
66
70
virtual
vtkContextScene
* GetScene();
71
72
protected
:
73
vtkContextView
();
74
~
vtkContextView
()
override
;
75
76
vtkSmartPointer<vtkContextScene>
Scene
;
77
vtkSmartPointer<vtkContext2D>
Context
;
78
79
private
:
80
vtkContextView
(
const
vtkContextView
&) =
delete
;
81
void
operator=(
const
vtkContextView
&) =
delete
;
82
};
83
84
#endif
vtkSmartPointer< vtkContextScene >
vtkContextView::Scene
vtkSmartPointer< vtkContextScene > Scene
Definition:
vtkContextView.h:76
vtkRenderViewBase
A base view containing a renderer.
Definition:
vtkRenderViewBase.h:41
vtkRenderViewBase::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition:
vtkContext2D.h:58
vtkContextScene
Provides a 2D scene for vtkContextItem objects.
Definition:
vtkContextScene.h:50
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:39
vtkSmartPointer.h
vtkContextView::Context
vtkSmartPointer< vtkContext2D > Context
Definition:
vtkContextView.h:77
vtkRenderViewBase.h
vtkRenderViewBase::New
static vtkRenderViewBase * New()
vtkContextView
provides a view of the vtkContextScene.
Definition:
vtkContextView.h:44
Generated by
1.8.11