VTK
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
dox
Graphics
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 "
vtkEdgeSubdivisionCriterion.h
"
42
43
class
vtkCell
;
44
class
vtkDataSet
;
45
46
class
VTK_GRAPHICS_EXPORT
vtkDataSetEdgeSubdivisionCriterion
:
public
vtkEdgeSubdivisionCriterion
47
{
48
public
:
49
vtkTypeMacro(
vtkDataSetEdgeSubdivisionCriterion
,
vtkEdgeSubdivisionCriterion
);
50
static
vtkDataSetEdgeSubdivisionCriterion
*
New
();
51
virtual
void
PrintSelf
( ostream& os,
vtkIndent
indent );
52
53
virtual
void
SetMesh(
vtkDataSet
* );
54
vtkDataSet
* GetMesh();
55
//BTX
56
const
vtkDataSet
* GetMesh()
const
;
57
//ETX
58
59
virtual
void
SetCellId(
vtkIdType
cell );
60
vtkIdType
GetCellId()
const
;
61
//BTX
62
vtkIdType
& GetCellId();
63
//ETX
64
vtkCell
* GetCell();
65
//BTX
66
const
vtkCell
* GetCell()
const
;
67
//ETX
68
69
virtual
bool
EvaluateEdge
(
const
double
* p0,
double
* midpt,
const
double
* p1,
int
field_start );
70
100
double
* EvaluateFields(
double
* vertex,
double
* weights,
int
field_start );
101
103
106
void
EvaluatePointDataField(
double
* result,
double
* weights,
int
field
);
107
void
EvaluateCellDataField(
double
* result,
double
* weights,
int
field
);
109
111
113
vtkSetMacro(ChordError2,
double
);
114
vtkGetMacro(ChordError2,
double
);
116
118
122
virtual
void
SetFieldError2(
int
s,
double
err );
123
double
GetFieldError2(
int
s )
const
;
125
129
virtual
void
ResetFieldError2();
130
132
135
vtkGetMacro(ActiveFieldCriteria,
int
);
136
int
GetActiveFieldCriteria
()
const
{
return
this->ActiveFieldCriteria; }
138
139
protected
:
140
vtkDataSetEdgeSubdivisionCriterion
();
141
virtual
~
vtkDataSetEdgeSubdivisionCriterion
();
142
143
vtkDataSet
*
CurrentMesh
;
144
vtkIdType
CurrentCellId
;
145
vtkCell
*
CurrentCellData
;
146
147
double
ChordError2
;
148
double
*
FieldError2
;
149
int
FieldError2Length
;
150
int
FieldError2Capacity
;
151
int
ActiveFieldCriteria
;
152
153
private
:
154
vtkDataSetEdgeSubdivisionCriterion
(
const
vtkDataSetEdgeSubdivisionCriterion
& );
// Not implemented.
155
void
operator = (
const
vtkDataSetEdgeSubdivisionCriterion
& );
// Not implemented.
156
157
};
158
159
//BTX
160
161
inline
vtkIdType
&
vtkDataSetEdgeSubdivisionCriterion::GetCellId
() {
return
this->
CurrentCellId
; }
162
inline
vtkIdType
vtkDataSetEdgeSubdivisionCriterion::GetCellId
()
const
{
return
this->
CurrentCellId
; }
163
164
inline
vtkDataSet
*
vtkDataSetEdgeSubdivisionCriterion::GetMesh
() {
return
this->
CurrentMesh
; }
165
inline
const
vtkDataSet
*
vtkDataSetEdgeSubdivisionCriterion::GetMesh
()
const
{
return
this->
CurrentMesh
; }
166
167
inline
vtkCell
*
vtkDataSetEdgeSubdivisionCriterion::GetCell
() {
return
this->
CurrentCellData
; }
168
inline
const
vtkCell
*
vtkDataSetEdgeSubdivisionCriterion::GetCell
()
const
{
return
this->
CurrentCellData
; }
169
170
//ETX
171
172
#endif // __vtkDataSetEdgeSubdivisionCriterion_h
Generated on Wed Nov 21 2012 21:33:47 for VTK by
1.8.2