VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Filters
Core
vtkDataSetEdgeSubdivisionCriterion.h
Go to the documentation of this file.
1
/*=========================================================================
2
3
Program: Visualization Toolkit
4
Module: vtkDataSetEdgeSubdivisionCriterion.h
5
Language: C++
6
7
Copyright 2003 Sandia Corporation.
8
Under the terms of Contract DE-AC04-94AL85000, there is a non-exclusive
9
license for use of this work by or on behalf of the
10
U.S. Government. Redistribution and use in source and binary forms, with
11
or without modification, are permitted provided that this Notice and any
12
statement of authorship are reproduced on all copies.
13
14
=========================================================================*/
15
#ifndef __vtkDataSetEdgeSubdivisionCriterion_h
16
#define __vtkDataSetEdgeSubdivisionCriterion_h
17
41
#include "vtkFiltersCoreModule.h"
// For export macro
42
#include "
vtkEdgeSubdivisionCriterion.h
"
43
44
class
vtkCell
;
45
class
vtkDataSet
;
46
47
class
VTKFILTERSCORE_EXPORT
vtkDataSetEdgeSubdivisionCriterion
:
public
vtkEdgeSubdivisionCriterion
48
{
49
public
:
50
vtkTypeMacro(
vtkDataSetEdgeSubdivisionCriterion
,
vtkEdgeSubdivisionCriterion
);
51
static
vtkDataSetEdgeSubdivisionCriterion
*
New
();
52
virtual
void
PrintSelf
( ostream& os,
vtkIndent
indent );
53
54
virtual
void
SetMesh(
vtkDataSet
* );
55
vtkDataSet
* GetMesh();
56
//BTX
57
const
vtkDataSet
* GetMesh()
const
;
58
//ETX
59
60
virtual
void
SetCellId(
vtkIdType
cell );
61
vtkIdType
GetCellId()
const
;
62
//BTX
63
vtkIdType
& GetCellId();
64
//ETX
65
vtkCell
* GetCell();
66
//BTX
67
const
vtkCell
* GetCell()
const
;
68
//ETX
69
70
virtual
bool
EvaluateEdge
(
const
double
* p0,
double
* midpt,
const
double
* p1,
int
field_start );
71
101
double
* EvaluateFields(
double
* vertex,
double
* weights,
int
field_start );
102
104
107
void
EvaluatePointDataField(
double
* result,
double
* weights,
int
field
);
108
void
EvaluateCellDataField(
double
* result,
double
* weights,
int
field
);
110
112
114
vtkSetMacro(ChordError2,
double
);
115
vtkGetMacro(ChordError2,
double
);
117
119
123
virtual
void
SetFieldError2(
int
s,
double
err );
124
double
GetFieldError2(
int
s )
const
;
126
130
virtual
void
ResetFieldError2();
131
133
136
vtkGetMacro(ActiveFieldCriteria,
int
);
137
int
GetActiveFieldCriteria
()
const
{
return
this->ActiveFieldCriteria; }
139
140
protected
:
141
vtkDataSetEdgeSubdivisionCriterion
();
142
virtual
~
vtkDataSetEdgeSubdivisionCriterion
();
143
144
vtkDataSet
*
CurrentMesh
;
145
vtkIdType
CurrentCellId
;
146
vtkCell
*
CurrentCellData
;
147
148
double
ChordError2
;
149
double
*
FieldError2
;
150
int
FieldError2Length
;
151
int
FieldError2Capacity
;
152
int
ActiveFieldCriteria
;
153
154
private
:
155
vtkDataSetEdgeSubdivisionCriterion
(
const
vtkDataSetEdgeSubdivisionCriterion
& );
// Not implemented.
156
void
operator = (
const
vtkDataSetEdgeSubdivisionCriterion
& );
// Not implemented.
157
158
};
159
160
//BTX
161
162
inline
vtkIdType
&
vtkDataSetEdgeSubdivisionCriterion::GetCellId
() {
return
this->
CurrentCellId
; }
163
inline
vtkIdType
vtkDataSetEdgeSubdivisionCriterion::GetCellId
()
const
{
return
this->
CurrentCellId
; }
164
165
inline
vtkDataSet
*
vtkDataSetEdgeSubdivisionCriterion::GetMesh
() {
return
this->
CurrentMesh
; }
166
inline
const
vtkDataSet
*
vtkDataSetEdgeSubdivisionCriterion::GetMesh
()
const
{
return
this->
CurrentMesh
; }
167
168
inline
vtkCell
*
vtkDataSetEdgeSubdivisionCriterion::GetCell
() {
return
this->
CurrentCellData
; }
169
inline
const
vtkCell
*
vtkDataSetEdgeSubdivisionCriterion::GetCell
()
const
{
return
this->
CurrentCellData
; }
170
171
//ETX
172
173
#endif // __vtkDataSetEdgeSubdivisionCriterion_h
Generated on Thu May 24 2012 22:22:14 for VTK by
1.8.1