-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathvtkFeatureLayer.h
70 lines (53 loc) · 1.94 KB
/
vtkFeatureLayer.h
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
/*=========================================================================
Program: Visualization Toolkit
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 vtkFeatureLayer
// .SECTION Description
//
#ifndef __vtkFeatureLayer_h
#define __vtkFeatureLayer_h
#include "vtkLayer.h"
#include "vtkmapcore_export.h"
class vtkCollection;
class vtkFeature;
class VTKMAPCORE_EXPORT vtkFeatureLayer : public vtkLayer
{
public:
static vtkFeatureLayer* New();
void PrintSelf(ostream& os, vtkIndent indent) override;
vtkTypeMacro(vtkFeatureLayer, vtkLayer)
// Description:
// Override vtkObjectBase::UnRegister(vtkObjectBase*)
// Needed in order to delete features, which use a weak pointer to
// to their vtkFeatureLayer instance,
void UnRegister(vtkObjectBase* o) override;
// Description:
// Add a new feature to the layer
// Note: layer must be added to a vtkMap *before* features can be added.
void AddFeature(vtkSmartPointer<vtkFeature> feature);
// Description:
// Remove a feature from the layer
void RemoveFeature(vtkSmartPointer<vtkFeature> feature);
// Description:
// Return all features contained here
vtkCollection* GetFeatures();
// Description:
// Update features and prepare them for rendering
void Update() override;
protected:
vtkFeatureLayer();
~vtkFeatureLayer() override;
protected:
class vtkInternal;
vtkInternal* Impl;
private:
vtkFeatureLayer(const vtkFeatureLayer&); // Not implemented
vtkFeatureLayer& operator=(const vtkFeatureLayer&); // Not implemented
};
#endif // __vtkFeatureLayer_h