public void CopyFrom(VectorPOD <dataType> vetorToCopy) { Allocate(vetorToCopy.currentSize); if (vetorToCopy.currentSize != 0) { vetorToCopy.internalArray.CopyTo(internalArray, 0); } }
public rasterizer_cells_aa() { m_QSorter = new QuickSort_cell_aa(); m_sorted_cells = new VectorPOD <cell_aa>(); m_sorted_y = new VectorPOD <sorted_y>(); m_min_x = (0x7FFFFFFF); m_min_y = (0x7FFFFFFF); m_max_x = (-0x7FFFFFFF); m_max_y = (-0x7FFFFFFF); m_sorted = (false); m_style_cell.initial(); m_curr_cell.initial(); }
private void allocate_cells_if_required() { if (m_cells == null || (m_num_used_cells + 1) >= m_cells.Capacity()) { if (m_num_used_cells >= (int)cell_block_scale_e.cell_block_limit) { return; } int new_num_allocated_cells = m_num_used_cells + (int)cell_block_scale_e.cell_block_size; VectorPOD <cell_aa> new_cells = new VectorPOD <cell_aa>(new_num_allocated_cells); if (m_cells != null) { new_cells.CopyFrom(m_cells); } m_cells = new_cells; } }
public rasterizer_compound_aa() { m_Rasterizer = new rasterizer_cells_aa(); m_VectorClipper = new VectorClipper(); m_filling_rule = agg_basics.filling_rule_e.fill_non_zero; m_layer_order = layer_order_e.layer_direct; m_styles = new VectorPOD <style_info>(); // Active Styles m_ast = new VectorPOD <int>(); // Active Style Table (unique values) m_asm = new VectorPOD <byte>(); // Active Style Mask m_cells = new VectorPOD <cell_aa>(); m_cover_buf = new VectorPOD <byte>(); m_master_alpha = new VectorPOD <int>(); m_min_style = (0x7FFFFFFF); m_max_style = (-0x7FFFFFFF); m_start_x = (0); m_start_y = (0); m_scan_y = (0x7FFFFFFF); m_sl_start = (0); m_sl_len = (0); }
public VectorPOD_RangeAdaptor(VectorPOD <int> array, int start, int size) { m_array = (array); m_start = (start); m_size = (size); }
// Copying public VectorPOD(VectorPOD <dataType> vectorToCopy) { currentSize = vectorToCopy.currentSize; internalArray = (dataType[])vectorToCopy.internalArray.Clone(); }