HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
GA_ForwardDifferenceMatrix.h
Go to the documentation of this file.
1 /*
2  * PROPRIETARY INFORMATION. This software is proprietary to
3  * Side Effects Software Inc., and is not to be reproduced,
4  * transmitted, or disclosed in any way without written permission.
5  *
6  * NAME: GA_ForwardDifferenceMatrix.h (GA Library, C++)
7  *
8  * COMMENTS:
9  */
10 
11 #ifndef __GA_ForwardDifferenceMatrix__
12 #define __GA_ForwardDifferenceMatrix__
13 
14 #include "GA_API.h"
15 #include "GA_Defines.h"
16 
17 #include <SYS/SYS_Types.h>
18 
19 
20 /// @brief Helper class for a polynomial forward differencer
21 ///
22 /// This class creates matrices used for forward differencing of polynomial
23 /// functions. To use this class, you need to specify the order of the
24 /// polynomial.
26 {
27 public:
28  /// Perform forward differencing
30 
31  /// Initialize the forward differencer matrix with
32  /// @param uord Order of the spline in U
33  /// @param uinc Stepping increment for integration in U
34  /// @param vord Order of the spline in V. For 1D curves, this is ignored.
35  /// @param vinc Stepping increment for integration in V
36  void initialize(int uord, fpreal uinc,
37  int vord=1, fpreal vinc=1);
38 
39  ///@{
40  /// Return the specified U matrix element
41  fpreal getU(int row, int col) const { return myU[row][col]; }
42  /// Return the initialized U order
43  int getUOrder() const { return myUOrder; }
44  /// Return the initialized U integration step size
45  fpreal getUStep() const { return myUStep; }
46 
47  /// Return the specified V matrix element
48  fpreal getV(int row, int col) const { return myV[row][col]; }
49  /// Return the initialized V order
50  int getVOrder() const { return myVOrder; }
51  /// Return the initialized V integration step size
52  fpreal getVStep() const { return myVStep; }
53  ///@}
54 
55 private:
58  fpreal myUStep, myVStep;
59  int myUOrder, myVOrder;
60 };
61 
62 #endif
63 
#define GA_MAXORDER
Definition: GA_Defines.h:17
#define GA_API
Definition: GA_API.h:12
fpreal getVStep() const
Return the initialized V integration step size.
Helper class for a polynomial forward differencer.
int getVOrder() const
Return the initialized V order.
fpreal getV(int row, int col) const
Return the specified V matrix element.
png_bytepp row
Definition: png.h:1836
OPENVDB_API void initialize()
Global registration of basic types.
Definition: logging.h:316
fpreal getU(int row, int col) const
double fpreal
Definition: SYS_Types.h:263
int getUOrder() const
Return the initialized U order.
fpreal getUStep() const
Return the initialized U integration step size.