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 
38 #include "vtkFiltersCoreModule.h" // For export macro
39 #include "vtkObject.h"
40 
42 class vtkMatrix4x4;
44 
45 class VTKFILTERSCORE_EXPORT vtkEdgeSubdivisionCriterion : public vtkObject
46 {
47  public:
49  void PrintSelf( ostream& os, vtkIndent indent ) override;
50 
56  virtual bool EvaluateEdge( const double* p0, double* p1, const double* p2, int field_start ) = 0 ;
57 
66  virtual int PassField( int sourceId, int sourceSize, vtkStreamingTessellator* t );
67 
73  virtual void ResetFieldList();
74 
80  virtual bool DontPassField( int sourceId, vtkStreamingTessellator* t );
81 
87  const int* GetFieldIds() const;
88 
94  const int* GetFieldOffsets() const;
95 
100  int GetOutputField( int fieldId ) const;
101 
107  int GetNumberOfFields() const;
108 
109  protected:
111  ~vtkEdgeSubdivisionCriterion() override;
112 
113  int* FieldIds;
116 
142  bool ViewDependentEval( const double* p0, double* p1, double* p1_actual, const double* p2, int field_start, vtkMatrix4x4* viewtrans, const double* pixelSize, double allowableChordErr ) const;
143 
177  bool FixedFieldErrorEval( const double* p0, double* p1, double* p1_actual, const double* p2, int field_start, int field_criteria, double* allowableFieldErr ) const;
178 
179  private:
181  void operator = ( const vtkEdgeSubdivisionCriterion& ) = delete;
182 };
183 
184 inline const int* vtkEdgeSubdivisionCriterion::GetFieldIds() const { return this->FieldIds; }
185 inline const int* vtkEdgeSubdivisionCriterion::GetFieldOffsets() const { return this->FieldOffsets; }
186 inline int vtkEdgeSubdivisionCriterion::GetNumberOfFields() const { return this->NumberOfFields; }
187 
188 #endif // vtkEdgeSubdivisionCriterion_h
abstract base class for most VTK objects
Definition: vtkObject.h:59
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:41
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.
a simple class to control print indentation
Definition: vtkIndent.h:39
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.
const int * GetFieldIds() const
Return the map from output field id to input field ids.
const int * GetFieldOffsets() const
Return the offset into an output vertex array of all fields.