VTK
9.2.6
Main Page
Related Pages
Topics
Namespaces
Classes
Files
File List
File Members
Rendering
Context2D
vtkPropItem.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkPropItem.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
29
#ifndef vtkPropItem_h
30
#define vtkPropItem_h
31
32
#include "
vtkAbstractContextItem.h
"
33
#include "vtkRenderingContext2DModule.h"
// For export macro
34
35
class
vtkProp
;
36
37
class
VTKRENDERINGCONTEXT2D_EXPORT
vtkPropItem
:
public
vtkAbstractContextItem
38
{
39
public
:
40
static
vtkPropItem
*
New
();
41
vtkTypeMacro(
vtkPropItem
,
vtkAbstractContextItem
);
42
void
PrintSelf
(ostream& os,
vtkIndent
indent)
override
;
43
44
bool
Paint
(
vtkContext2D
* painter)
override
;
45
void
ReleaseGraphicsResources
()
override
;
46
50
virtual
void
SetPropObject
(
vtkProp
* PropObject);
51
vtkGetObjectMacro(PropObject,
vtkProp
);
52
53
protected
:
54
vtkPropItem
();
55
~vtkPropItem
()
override
;
56
57
// Sync the active vtkCamera with the GL state set by the painter.
58
virtual
void
UpdateTransforms
();
59
60
// Restore the vtkCamera state.
61
virtual
void
ResetTransforms
();
62
63
private
:
64
vtkProp
* PropObject;
65
66
vtkPropItem
(
const
vtkPropItem
&) =
delete
;
67
void
operator=(
const
vtkPropItem
&) =
delete
;
68
};
69
70
#endif
// vtkPropItem_h
vtkAbstractContextItem
base class for items that are part of a vtkContextScene.
Definition
vtkAbstractContextItem.h:41
vtkContext2D
Class for drawing 2D primitives to a graphical context.
Definition
vtkContext2D.h:58
vtkIndent
a simple class to control print indentation
Definition
vtkIndent.h:40
vtkPropItem
Embed a vtkProp in a vtkContextScene.
Definition
vtkPropItem.h:38
vtkPropItem::Paint
bool Paint(vtkContext2D *painter) override
Paint event for the item, called whenever the item needs to be drawn.
vtkPropItem::New
static vtkPropItem * New()
vtkPropItem::vtkPropItem
vtkPropItem()
vtkPropItem::UpdateTransforms
virtual void UpdateTransforms()
vtkPropItem::PrintSelf
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
vtkPropItem::SetPropObject
virtual void SetPropObject(vtkProp *PropObject)
The actor to render.
vtkPropItem::~vtkPropItem
~vtkPropItem() override
vtkPropItem::ResetTransforms
virtual void ResetTransforms()
vtkPropItem::ReleaseGraphicsResources
void ReleaseGraphicsResources() override
Release graphics resources hold by the item.
vtkProp
abstract superclass for all actors, volumes and annotations
Definition
vtkProp.h:57
vtkAbstractContextItem.h
Generated on Thu Oct 31 2024 00:00:00 for VTK by
1.12.0