-
Notifications
You must be signed in to change notification settings - Fork 13
Expand file tree
/
Copy pathvtkFeature.cxx
More file actions
73 lines (60 loc) · 2.06 KB
/
vtkFeature.cxx
File metadata and controls
73 lines (60 loc) · 2.06 KB
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
/*=========================================================================
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.
=========================================================================*/
#include "vtkFeature.h"
//----------------------------------------------------------------------------
vtkFeature::vtkFeature()
: vtkObject()
{
this->Id = 0;
this->Visibility = 1;
this->Gcs = nullptr;
this->SetGcs("EPSG4326");
}
//----------------------------------------------------------------------------
vtkFeature::~vtkFeature()
{
delete[] this->Gcs;
}
//----------------------------------------------------------------------------
void vtkFeature::SetLayer(vtkFeatureLayer* layer)
{
//set our weak pointer to look at the layer passed in.
if (layer)
{ //don't allow null layer
this->Layer = layer;
}
}
//----------------------------------------------------------------------------
void vtkFeature::PrintSelf(std::ostream& os, vtkIndent indent)
{
Superclass::PrintSelf(os, indent);
}
//----------------------------------------------------------------------------
bool vtkFeature::IsVisible()
{
// Visible only if both layer and feature visibility flags are set
return this->Layer->GetVisibility() && this->Visibility;
}
//----------------------------------------------------------------------------
vtkProp* vtkFeature::PickProp()
{
return nullptr;
}
//----------------------------------------------------------------------------
void vtkFeature::PickItems(vtkRenderer* renderer,
int displayCoords[4],
vtkGeoMapSelection* selection)
{
(void) renderer;
(void) displayCoords;
(void) selection;
vtkWarningMacro("vtkFeature::PickItems() called -- should be overridden in "
<< this->GetClassName());
}