MCPcopy Create free account
hub / github.com/Kitware/VTK / Reset

Method Reset

Common/DataModel/vtkEdgeTable.cxx:88–132  ·  view source on GitHub ↗

------------------------------------------------------------------------------ Free memory and return to instantiated state.

Source from the content-addressed store, hash-verified

86//------------------------------------------------------------------------------
87// Free memory and return to instantiated state.
88void vtkEdgeTable::Reset()
89{
90 vtkIdType i;
91
92 if (this->Table)
93 {
94 for (i = 0; i < this->TableSize; i++)
95 {
96 if (this->Table[i])
97 {
98 this->Table[i]->Reset();
99 }
100 }
101
102 if (this->StoreAttributes == 1 && this->Attributes)
103 {
104 for (i = 0; i < this->TableSize; i++)
105 {
106 if (this->Attributes[i])
107 {
108 this->Attributes[i]->Reset();
109 }
110 }
111 }
112 else if (this->StoreAttributes == 2 && this->PointerAttributes)
113 {
114 for (i = 0; i < this->TableSize; i++)
115 {
116 if (this->PointerAttributes[i])
117 {
118 this->PointerAttributes[i]->Reset();
119 }
120 }
121 }
122 } // if table defined
123
124 this->TableMaxId = -1;
125
126 if (this->Points)
127 {
128 this->Points->Reset();
129 }
130
131 this->NumberOfEdges = 0;
132}
133
134//------------------------------------------------------------------------------
135vtkEdgeTable::~vtkEdgeTable()

Callers 1

InitEdgeInsertionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected