MCPcopy Create free account
hub / github.com/OpenNI/OpenNI / copy

Method copy

Samples/NiSimpleViewer/glh/glh_array.h:121–144  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119
120
121 void copy(const array2<T> & src, int i_offset = 0, int j_offset = 0,
122 int width = 0, int height = 0)
123
124 {
125
126 int io = i_offset;
127
128 int jo = j_offset;
129
130 if(width == 0) width = src.get_width();
131
132 if(height == 0) height = src.get_height();
133
134 if(io + width > w) return;
135
136 if(jo + height > h) return;
137
138 for(int i=0; i < width; i++)
139
140 for(int j=0; j < height; j++)
141
142 (*this)(io+i, jo+j) = src(i,j);
143
144 }
145
146
147

Callers

nothing calls this directly

Calls 2

get_widthMethod · 0.45
get_heightMethod · 0.45

Tested by

no test coverage detected