/usr/include/vtk-6.3/vtkActor2DCollection.h is in libvtk6-dev 6.3.0+dfsg1-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 | /*=========================================================================
Program: Visualization Toolkit
Module: vtkActor2DCollection.h
Copyright (c) Ken Martin, Will Schroeder, Bill Lorensen
All rights reserved.
See Copyright.txt or http://www.kitware.com/Copyright.htm for details.
This software is distributed WITHOUT ANY WARRANTY; without even
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the above copyright notice for more information.
=========================================================================*/
// .NAME vtkActor2DCollection - a list of 2D actors
// .SECTION Description
// vtkActor2DCollection is a subclass of vtkCollection. vtkActor2DCollection
// maintains a collection of vtkActor2D objects that is sorted by layer
// number, with lower layer numbers at the start of the list. This allows
// the vtkActor2D objects to be rendered in the correct order.
// .SECTION See Also
// vtkActor2D vtkCollection
#ifndef vtkActor2DCollection_h
#define vtkActor2DCollection_h
#include "vtkRenderingCoreModule.h" // For export macro
#include "vtkPropCollection.h"
#include "vtkActor2D.h" // Needed for inline methods
class vtkViewport;
class VTKRENDERINGCORE_EXPORT vtkActor2DCollection : public vtkPropCollection
{
public:
// Description:
// Desctructor for the vtkActor2DCollection class. This removes all
// objects from the collection.
static vtkActor2DCollection *New();
vtkTypeMacro(vtkActor2DCollection,vtkPropCollection);
// Description:
// Sorts the vtkActor2DCollection by layer number. Smaller layer
// numbers are first. Layer numbers can be any integer value.
void Sort();
// Description:
// Add an actor to the list. The new actor is inserted in the list
// according to it's layer number.
void AddItem(vtkActor2D *a);
// Description:
// Standard Collection methods
int IsItemPresent(vtkActor2D *a);
vtkActor2D *GetNextActor2D();
vtkActor2D *GetLastActor2D();
// Description:
// Access routines that are provided for compatibility with previous
// version of VTK. Please use the GetNextActor2D(), GetLastActor2D()
// variants where possible.
vtkActor2D *GetNextItem();
vtkActor2D *GetLastItem();
// Description:
// Sort and then render the collection of 2D actors.
void RenderOverlay(vtkViewport* viewport);
//BTX
// Description:
// Reentrant safe way to get an object in a collection. Just pass the
// same cookie back and forth.
vtkActor2D *GetNextActor2D(vtkCollectionSimpleIterator &cookie) {
return static_cast<vtkActor2D *>(this->GetNextItemAsObject(cookie));};
//ETX
protected:
vtkActor2DCollection() {}
~vtkActor2DCollection();
virtual void DeleteElement(vtkCollectionElement *);
private:
// hide the standard AddItem from the user and the compiler.
void AddItem(vtkObject *o) { this->vtkCollection::AddItem(o); };
void AddItem(vtkProp *o) { this->vtkPropCollection::AddItem(o); };
int IsItemPresent(vtkObject *o) { return this->vtkCollection::IsItemPresent(o); };
private:
vtkActor2DCollection(const vtkActor2DCollection&); // Not implemented.
void operator=(const vtkActor2DCollection&); // Not implemented.
};
inline int vtkActor2DCollection::IsItemPresent(vtkActor2D *a)
{
return this->vtkCollection::IsItemPresent(a);
}
inline vtkActor2D *vtkActor2DCollection::GetNextActor2D()
{
return static_cast<vtkActor2D *>(this->GetNextItemAsObject());
}
inline vtkActor2D *vtkActor2DCollection::GetLastActor2D()
{
if ( this->Bottom == NULL )
{
return NULL;
}
else
{
return static_cast<vtkActor2D *>(this->Bottom->Item);
}
}
inline vtkActor2D *vtkActor2DCollection::GetNextItem()
{
return this->GetNextActor2D();
}
inline vtkActor2D *vtkActor2DCollection::GetLastItem()
{
return this->GetLastActor2D();
}
#endif
// VTK-HeaderTest-Exclude: vtkActor2DCollection.h
|