Files Classes Functions Hierarchy
#include <meshpatchptr.h>
Public Member Functions | |
| void | indexSet (uint *pi) |
| Point to a patch. | |
| T const | operator() (uintc i, uintc j) const |
| Read the value of the point. | |
| T & | operator() (uintc i, uintc j) |
| Write to the point. | |
| meshpatchptr (T *pt_, uintc columns_) | |
| Pass in the global points pointer and the number of columns. | |
| ~meshpatchptr () | |
| Memory cleanup. | |
Public Attributes | |
| T * | pt |
| Global points. | |
| uint * | index |
| By changing the index different patches are represented. | |
| uintc | columns |
| The number of columns - N+1 in the patch. | |
The index interprets the line of control points as a 2D matrix.
Initialize in construction phase. Use indexSet(...) to point to different mesh patches.
There is no error checking, for example on index bounds.
Definition at line 19 of file meshpatchptr.h.
| meshpatchptr< T >::meshpatchptr | ( | T * | pt_, | |
| uintc | columns_ | |||
| ) | [inline] |
| meshpatchptr< T >::~meshpatchptr | ( | ) | [inline] |
Memory cleanup.
Definition at line 50 of file meshpatchptr.h.
References meshpatchptr< T >::index.
00051 { delete[] index; }
| void meshpatchptr< T >::indexSet | ( | uint * | pi | ) | [inline] |
Point to a patch.
Definition at line 34 of file meshpatchptr.h.
References meshpatchptr< T >::columns, and meshpatchptr< T >::index.
| T& meshpatchptr< T >::operator() | ( | uintc | i, | |
| uintc | j | |||
| ) | [inline] |
Write to the point.
Definition at line 41 of file meshpatchptr.h.
References meshpatchptr< T >::columns, meshpatchptr< T >::index, and meshpatchptr< T >::pt.
| T const meshpatchptr< T >::operator() | ( | uintc | i, | |
| uintc | j | |||
| ) | const [inline] |
Read the value of the point.
Definition at line 38 of file meshpatchptr.h.
References meshpatchptr< T >::columns, meshpatchptr< T >::index, and meshpatchptr< T >::pt.
| uintc meshpatchptr< T >::columns |
The number of columns - N+1 in the patch.
Definition at line 31 of file meshpatchptr.h.
Referenced by meshpatchptr< T >::indexSet(), and meshpatchptr< T >::operator()().
| uint* meshpatchptr< T >::index |
By changing the index different patches are represented.
Definition at line 28 of file meshpatchptr.h.
Referenced by meshpatchptr< T >::indexSet(), meshpatchptr< T >::operator()(), and meshpatchptr< T >::~meshpatchptr().
| T* meshpatchptr< T >::pt |
Global points.
Definition at line 24 of file meshpatchptr.h.
Referenced by meshpatchptr< T >::operator()().
1.5.8