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
38#include "vtkFiltersCoreModule.h" // For export macro
39#include "vtkObject.h"
40
42class vtkMatrix4x4;
44
45class VTKFILTERSCORE_EXPORT vtkEdgeSubdivisionCriterion : public vtkObject
46{
47 public:
49 void PrintSelf( ostream& os, vtkIndent indent ) VTK_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:
112
113 int* FieldIds;
114 int* FieldOffsets;
115 int NumberOfFields;
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:
180 vtkEdgeSubdivisionCriterion( const vtkEdgeSubdivisionCriterion& ) VTK_DELETE_FUNCTION;
181 void operator = ( const vtkEdgeSubdivisionCriterion& ) VTK_DELETE_FUNCTION;
182};
183
184inline const int* vtkEdgeSubdivisionCriterion::GetFieldIds() const { return this->FieldIds; }
185inline const int* vtkEdgeSubdivisionCriterion::GetFieldOffsets() const { return this->FieldOffsets; }
186inline int vtkEdgeSubdivisionCriterion::GetNumberOfFields() const { return this->NumberOfFields; }
187
188#endif // vtkEdgeSubdivisionCriterion_h
represent and manipulate attribute data in a dataset
how to decide whether a linear approximation to nonlinear geometry or field should be subdivided
virtual void ResetFieldList()
Don't pass any field values in the vertex pointer.
virtual bool DontPassField(int sourceId, vtkStreamingTessellator *t)
This does the opposite of PassField(); it removes a field from the output (assuming the field was set...
virtual bool EvaluateEdge(const double *p0, double *p1, const double *p2, int field_start)=0
You must implement this member function in a subclass.
int GetOutputField(int fieldId) const
Return the output ID of an input field.
int GetNumberOfFields() const
Return the number of fields being evaluated at each output vertex.
const int * GetFieldOffsets() const
Return the offset into an output vertex array of all fields.
~vtkEdgeSubdivisionCriterion() override
virtual int PassField(int sourceId, int sourceSize, vtkStreamingTessellator *t)
This is a helper routine called by PassFields() which you may also call directly; it adds sourceSize ...
void PrintSelf(ostream &os, vtkIndent indent) override
Methods invoked by print to print information about the object including superclasses.
a simple class to control print indentation
Definition: vtkIndent.h:40
represent and manipulate 4x4 transformation matrices
Definition: vtkMatrix4x4.h:42
abstract base class for most VTK objects
Definition: vtkObject.h:60
An algorithm that refines an initial simplicial tessellation using edge subdivision.