VTK
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 
28 #ifndef vtkPropItem_h
29 #define vtkPropItem_h
30 
31 #include "vtkRenderingContext2DModule.h" // For export macro
32 #include "vtkAbstractContextItem.h"
33 
34 class vtkProp;
35 
37 {
38 public:
39  static vtkPropItem *New();
41  virtual void PrintSelf(ostream &os, vtkIndent indent);
42 
43  virtual bool Paint(vtkContext2D *painter);
44  virtual void ReleaseGraphicsResources();
45 
47 
48  virtual void SetPropObject(vtkProp *PropObject);
49  vtkGetObjectMacro(PropObject, vtkProp)
51 
52 protected:
53  vtkPropItem();
54  ~vtkPropItem();
55 
56  // Sync the active vtkCamera with the GL state set by the painter.
57  virtual void UpdateTransforms();
58 
59  // Restore the vtkCamera state.
60  virtual void ResetTransforms();
61 
62 private:
63  vtkProp *PropObject;
64 
65  vtkPropItem(const vtkPropItem &); // Not implemented.
66  void operator=(const vtkPropItem &); // Not implemented.
67 };
68 
69 #endif //vtkPropItem_h
abstract superclass for all actors, volumes and annotations
Definition: vtkProp.h:52
Embed a vtkProp in a vtkContextScene.
Definition: vtkPropItem.h:36
Class for drawing 2D primitives to a graphical context.
Definition: vtkContext2D.h:56
#define VTKRENDERINGCONTEXT2D_EXPORT
a simple class to control print indentation
Definition: vtkIndent.h:38
base class for items that are part of a vtkContextScene.
static vtkObject * New()