VTK
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
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
=========================================================================*/
28
#ifndef vtkContextView_h
29
#define vtkContextView_h
30
31
#include "vtkViewsContext2DModule.h"
// For export macro
32
#include "
vtkRenderViewBase.h
"
33
#include "
vtkSmartPointer.h
"
// Needed for SP ivars
34
35
class
vtkContext2D
;
36
class
vtkContextScene
;
37
38
class
VTKVIEWSCONTEXT2D_EXPORT
vtkContextView
:
public
vtkRenderViewBase
39
{
40
public
:
41
void
PrintSelf
(ostream& os,
vtkIndent
indent) VTK_OVERRIDE;
42
vtkTypeMacro(
vtkContextView
,
vtkRenderViewBase
);
43
44
static
vtkContextView
*
New
();
45
49
virtual
void
SetContext(
vtkContext2D
*context);
50
54
virtual
vtkContext2D
* GetContext();
55
59
virtual
void
SetScene(
vtkContextScene
*scene);
60
64
virtual
vtkContextScene
* GetScene();
65
66
protected
:
67
vtkContextView
();
68
~
vtkContextView
() VTK_OVERRIDE;
69
70
vtkSmartPointer
<
vtkContextScene
>
Scene
;
71
vtkSmartPointer
<
vtkContext2D
> Context;
72
73
private:
74
vtkContextView
(const
vtkContextView
&) VTK_DELETE_FUNCTION;
75
void
operator=(const
vtkContextView
&) VTK_DELETE_FUNCTION;
76
};
77
78
#endif
vtkSmartPointer
Hold a reference to a vtkObjectBase instance.
Definition:
vtkSmartPointer.h:29
vtkRenderViewBase
A base view containing a renderer.
Definition:
vtkRenderViewBase.h:49
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:52
vtkContextScene
Provides a 2D scene for vtkContextItem objects.
Definition:
vtkContextScene.h:47
vtkIndent
a simple class to control print indentation
Definition:
vtkIndent.h:33
vtkX3D::Scene
Definition:
vtkX3D.h:154
vtkSmartPointer.h
vtkRenderViewBase.h
vtkRenderViewBase::New
static vtkRenderViewBase * New()
vtkContextView
provides a view of the vtkContextScene.
Definition:
vtkContextView.h:38
Generated by
1.8.5