VTK
vtkEdgeSubdivisionCriterion.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: Visualization Toolkit
4  Module: vtkEdgeSubdivisionCriterion.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 vtkEdgeSubdivisionCriterion_h
16 #define vtkEdgeSubdivisionCriterion_h
17 
35 #include "vtkFiltersCoreModule.h" // For export macro
36 #include "vtkObject.h"
37 
39 class vtkMatrix4x4;
41 
42 class VTKFILTERSCORE_EXPORT vtkEdgeSubdivisionCriterion : public vtkObject
43 {
44  public:
46  void PrintSelf( ostream& os, vtkIndent indent ) override;
47 
53  virtual bool EvaluateEdge( const double* p0, double* p1, const double* p2, int field_start ) = 0 ;
54 
63  virtual int PassField( int sourceId, int sourceSize, vtkStreamingTessellator* t );
64 
70  virtual void ResetFieldList();
71 
77  virtual bool DontPassField( int sourceId, vtkStreamingTessellator* t );
78 
84  const int* GetFieldIds() const;
85 
91  const int* GetFieldOffsets() const;
92 
97  int GetOutputField( int fieldId ) const;
98 
104  int GetNumberOfFields() const;
105 
106  protected:
108  ~vtkEdgeSubdivisionCriterion() override;
109 
110  int* FieldIds;
113 
139  bool ViewDependentEval( const double* p0, double* p1, double* p1_actual, const double* p2, int field_start, vtkMatrix4x4* viewtrans, const double* pixelSize, double allowableChordErr ) const;
140 
174  bool FixedFieldErrorEval( const double* p0, double* p1, double* p1_actual, const double* p2, int field_start, int field_criteria, double* allowableFieldErr ) const;
175 
176  private:
178  void operator = ( const vtkEdgeSubdivisionCriterion& ) = delete;
179 };
180 
181 inline const int* vtkEdgeSubdivisionCriterion::GetFieldIds() const { return this->FieldIds; }
182 inline const int* vtkEdgeSubdivisionCriterion::GetFieldOffsets() const { return this->FieldOffsets; }
184 
185 #endif // vtkEdgeSubdivisionCriterion_h
abstract base class for most VTK objects
Definition: vtkObject.h:53
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:35
const int * GetFieldIds() const
Return the map from output field id to input field ids.
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
An algorithm that refines an initial simplicial tessellation using edge subdivision.
const int * GetFieldOffsets() const
Return the offset into an output vertex array of all fields.
a simple class to control print indentation
Definition: vtkIndent.h:33
represent and manipulate attribute data in a dataset
how to decide whether a linear approximation to nonlinear geometry or field should be subdivided ...
int GetNumberOfFields() const
Return the number of fields being evaluated at each output vertex.