Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Kitware master #15

Merged
merged 771 commits into from
Jun 22, 2016
Merged
Changes from 2 commits
Commits
Show all changes
771 commits
Select commit Hold shift + click to select a range
d04df17
Centralize array-to-string conversion in vtkMINCImageAttributes.
dgobbi Apr 25, 2016
e45012f
Improve Point Serialization in vtkPResampleToImage
sujin-philip Apr 7, 2016
06bdae4
ifdef out unsupported GL method for ES 2/3.
Apr 26, 2016
d9ba531
Merge topic 'gl_es_fix'
Apr 26, 2016
0f3b37f
Merge topic 'minc-code-review-and-fixes'
dgobbi Apr 26, 2016
f4ca373
fix renderbuffer isSupported method
martinken Apr 26, 2016
ff55b20
Merge topic 'resampletoimage-improve-point-serialization'
sujin-philip Apr 26, 2016
b8c2283
Merge topic 'use-realloc-on-OSX'
seanm Apr 26, 2016
d6e63c6
Revert "Remove unnecessary depth buffer attachment for RenderToTexture"
sankhesh Apr 26, 2016
30dcadf
Adding default to switch to remove warnings and explicit falltrough
mwestphal Apr 27, 2016
bd63a80
Handle case when textDims are NULL
msmolens Apr 27, 2016
efc6d63
Handle invalid time slices in netCDF/CF files
Apr 27, 2016
06335c4
Merge topic 'fix_renderbuffer'
martinken Apr 27, 2016
3979420
Fix value array component selection.
alvarosan Apr 27, 2016
3167f2e
Fix value-pass's scalar range initialization.
alvarosan Apr 27, 2016
efac533
Merge topic 'another-hdf-asan'
seanm Apr 27, 2016
a6e8872
Merge topic 'axisActorWarningsFix'
mwestphal Apr 28, 2016
46fd31b
BUG 16101: Freeze in vtkCellPicker for vtkVolume pick.
dgobbi Apr 28, 2016
5e2daa2
various documentation fixes (rewording, typo-fixing, punctuation, for…
waldyrious Apr 28, 2016
648e40b
several whitespace fixes (including style harmonization within each f…
waldyrious Apr 28, 2016
c877133
Create a fallback for writing vtkDataArrays to XML.
tjcorona Apr 28, 2016
aa308fc
BUG 16054: Reduce chance of mistaken swig pointer string.
dgobbi Apr 28, 2016
5f15afd
Added test for vtkTextActor picking
cquammen Apr 29, 2016
5559c11
Fix picking with 2D actors
cquammen Apr 29, 2016
bd4ba00
Clear to a transparent white background in RenderToImage mode
sankhesh Apr 27, 2016
fe48983
Merge topic 'vtkfreetypetools-add-null-ptr-check'
msmolens Apr 29, 2016
9c47179
Merge topic 'volume-picking'
aashish24 Apr 29, 2016
67c0607
Add some checks before attempting to add attribute arrays
cquammen Apr 29, 2016
224dfab
Reduce dispatches in vtkDataArray.
Apr 29, 2016
74a1dfa
Remove unneeded header from vtkGenericDataArray.
Apr 29, 2016
592d0d6
Fix typo in array dispatch documentation.
Apr 29, 2016
c011959
Warning message about the use RenderToImage mode
sankhesh Apr 29, 2016
99f5e84
Merge topic 'actor2D_picking'
cquammen Apr 30, 2016
3769b65
Remove redundant logic
seanm Apr 30, 2016
d11e436
Updated cppcheck suppressions
seanm Apr 30, 2016
ae7aa2b
Removed unused var found by cppcheck
seanm Apr 30, 2016
fc1d7ec
Fixed null deref found by cppcheck
seanm Apr 30, 2016
ea5c855
Update the baselines for depth render to image tests
sankhesh Apr 29, 2016
5a8ddba
Work around MSVC linker issues.
May 2, 2016
619ae53
Merge topic 'fixes-cinema-opengl2'
alvarosan May 2, 2016
9746711
Disable dual depth peeling on mesa master.
May 2, 2016
7914df0
Merge topic 'depth_map_bits'
sankhesh May 2, 2016
6c08de4
Merge topic 'disable_ddp_on_mesa'
May 2, 2016
49290fb
Fix color buffer clear color for RenderToImage mode
sankhesh May 2, 2016
acd0c91
Merge topic 'volume_fix_color'
sankhesh May 2, 2016
e3d8c85
Work around min/max macros on MSVC.
May 3, 2016
196b115
Revert "Added more flags for using OpenGL libraries"
utkarshayachit May 3, 2016
2fd6db9
Merge topic 'revert_mr_1427'
utkarshayachit May 3, 2016
1c7da2b
Merge topic 'netcdf-cf-mangled-time'
utkarshayachit May 3, 2016
ddfaa0b
Merge topic 'reduce_array_dispatches'
May 3, 2016
932b3e4
ENH: Increase coverage for point kernels
lorensen Apr 25, 2016
acd85fe
Merge topic 'UnitTestKernels100'
lorensen May 3, 2016
4267de8
make some methods virtual
martinken May 4, 2016
bb8dcba
Create a test array and test case for XML writer dispatch fallback.
tjcorona Apr 28, 2016
9ce234f
Merge topic 'add_rendering_virtuals'
martinken May 4, 2016
db1694b
Merge topic 'xml-writer-dataarray-fallback'
tjcorona May 5, 2016
1e31faf
Fix vtkPolyData Reset
sujin-philip May 5, 2016
4f32d09
ibo creation was not setting Index to zero when no cells
martinken May 5, 2016
9a550dc
use enum for FlyModes in vtkCubeAxesActor2D.h
nschloe May 6, 2016
ebe3a65
Merge topic 'reset_opengl2_index'
martinken May 6, 2016
f2444b6
Merge topic 'fix-vtkPolyData-Reset'
sujin-philip May 6, 2016
d97bea9
Allow NULL inputs to array FastDownCast methods.
May 6, 2016
0d71a30
Replace SafeDownCast calls on arrays with vtkArrayDownCast.
May 5, 2016
d3454b1
Merge topic 'misc-cppcheck'
seanm May 6, 2016
b84883d
Merge topic '16101-cellpicker-volume-crash'
dgobbi May 9, 2016
e7caf7e
ENH: Improve coverage of vtkGenericGeometryFilter
lorensen May 6, 2016
1148fde
vtkFFMPEGWriter: Use avformat_write_header return value
bradking May 10, 2016
ffb53e9
vtkFFMPEGWriter: Fix build with libavcodec57
bradking May 10, 2016
8e23a2e
Fixes culling in GPURayCast.
alvarosan May 10, 2016
c67c60d
fix class references in vtkDataObject's documentation
waldyrious May 10, 2016
f9f7b96
Merge topic 'array_downcast'
May 10, 2016
f8c60d7
Merge topic 'UnitTestGenericGeometryFilter'
lorensen May 10, 2016
dc44a65
Merge topic 'vtkFFMPEGWriter-libavcodec57'
bradking May 10, 2016
24d00e5
Merge topic 'fix-16084'
seanm May 10, 2016
920d994
Fix warning macro typos
May 12, 2016
9f0f2de
limit comments to ASCII characters, to prevent encoding issues
waldyrious May 13, 2016
e5c25d9
fix for recently renamed enum
May 9, 2016
d03fca6
Merge topic 'fix-gpuraycast-culling'
alvarosan May 13, 2016
46c7017
Fixed all cppcheck operatorEq warnings
seanm Mar 30, 2016
b99f217
Fixed cppcheck unsignedLessThanZero warning
seanm May 7, 2016
e062019
Fixed cppcheck knownConditionTrueFalse warnings
seanm May 7, 2016
da5ca1e
libproj4 2016-05-13 (4b728422)
kwrobot May 13, 2016
eaa12d2
Merge branch 'upstream-libproj4'
danlipsa May 13, 2016
c044336
Merge topic 'ospray-improvements'
May 13, 2016
eedb02b
Fixed return type of various comparison operators from int to bool
seanm Mar 30, 2016
db99e5c
Merge topic 'cppcheck-assign-op'
seanm May 14, 2016
e2f3f95
wrap function signatures longer than 80 characters
waldyrious May 15, 2016
01b9d1e
Merge topic 'cppcheck1.73'
seanm May 15, 2016
cf9bf4d
Merge topic 'tweaks'
dgobbi May 15, 2016
3b796e4
Fix length of arrays when running in parallel.
utkarshayachit May 15, 2016
b8b4539
Add missing return statement to NULL check.
May 16, 2016
937d4d4
Merge topic 'coverity_fix'
May 16, 2016
aa23bf1
Clean up character array in test.
tjcorona May 16, 2016
5b874af
Removed pointless asserts
seanm May 14, 2016
dc4de3a
Adding tools for efficient file system introspection.
May 9, 2016
649d9d5
Plot3D: support records with multiple sub-records.
utkarshayachit May 13, 2016
7867f00
Merge topic 'delete-char-array'
tjcorona May 17, 2016
3dfb578
Merge topic 'vtkweb-error-on-disconnect'
jourdain May 17, 2016
37a92ce
Merge topic 'parallel_SystemTools_Directory'
May 17, 2016
1052cf7
Changed out-of-bounding-box ray termination.
alvarosan May 13, 2016
9ab2fea
Validate whole extent specified on vtkRTAnalyticSource.
utkarshayachit May 17, 2016
b1b1b67
Code review of vtkDebugLeaks, misc minor improvements
seanm May 17, 2016
6013688
Minor comment updates to vtkClipPolyData.h
seanm May 17, 2016
6332bd2
Merge topic 'vtkClipPolyData-docs'
seanm May 18, 2016
94c15d2
Merge topic 'validate_extents'
utkarshayachit May 18, 2016
61b3201
Merge topic 'plot3d_support_large_records'
utkarshayachit May 18, 2016
c7e852a
Avoid using the same cache variable for different passes
sankhesh May 18, 2016
a34f88c
allow use of ospray from its build or install tree
May 17, 2016
df054cb
Mark some vtkObjectBase API overrides with C++11 'override' keyword
seanm Apr 26, 2016
0c6085d
Fixed a bunch of cppcheck format string warnings
seanm May 17, 2016
a198f41
Fixed cppcheck null deref warning
seanm May 17, 2016
74be0a9
Update cppcheck suppressions
seanm May 17, 2016
ff7718b
Merge topic 'depth_pass_window_size'
sankhesh May 19, 2016
55878a2
Manual search & destroy of (B|E)TX
seanm May 18, 2016
a40f8f8
Merge topic 'override-vtkobjectbase'
seanm May 20, 2016
7819491
Fixing cppcheck warning and general cleanup
May 20, 2016
ef16735
16130: Fix inconsistency in vtkImageSliceCollection.
dgobbi May 20, 2016
321693d
Merge topic 'windbladereader'
May 20, 2016
b670040
Added test for volume clipping intermixed with polyData.
alvarosan May 19, 2016
61b8743
STYLE: vtkPythonUtil: Simplify code reusing vtkPythonUtilCreateIfNeeded
jcfr May 21, 2016
b7696ef
Merge topic 'fix-proj4-cmake-install-dir'
danlipsa May 23, 2016
b7e73b4
Fix issue exporting cell-data colors for composite datasets.
utkarshayachit May 23, 2016
d72d32f
adjust for ospray 0.10's new specular
May 23, 2016
d887b31
Merge topic 'ospray-improvements'
May 23, 2016
2b54134
Merge topic 'fix_x3d_celldata_colors'
utkarshayachit May 23, 2016
78e59e8
Adding Center Cursor
mwestphal May 12, 2016
10a1118
Remove unreachable code paths in ScaledBoxWidget2
May 24, 2016
3b9a85b
Merge topic '16130-slice-collection-crash'
dgobbi May 24, 2016
4613a18
Merge topic 'remove_tautology_scaledboxwidget_test'
May 24, 2016
203ef85
Fix Q_WS_* usage for Qt5.
utkarshayachit May 5, 2016
fc84cad
Added depth-composite checks to clipping sections.
alvarosan May 20, 2016
4d127b1
Remove all BTX and ETX markers from VTK headers
kwrobot May 24, 2016
9b85e15
Merge topic 'cppcheck1.73-more'
seanm May 25, 2016
6cb0c57
Merge branch 'butterfly-filter-fixes' into 'master'
May 25, 2016
5b1ff4c
Merge topic '10738_16119_AddingACenterCursorOnvtkSphereRepresentation'
cquammen May 25, 2016
d382a3b
BUG: vtkPythonUtil: Check if vtkPythonMap is valid
jcfr May 26, 2016
9860bea
Merge topic 'ray-termination-optimization'
alvarosan May 26, 2016
d50c0f2
Merge topic 'BTX-ETX-purge2'
dgobbi May 26, 2016
0b44c59
Merge topic 'vtkPythonUtil-check-vtkPythonMap-valid'
jcfr May 26, 2016
aa3330f
ENH: Improve coverage of DataSetSurfaceFilter
lorensen May 10, 2016
755ea6b
Add preprocessor macros for each wrapper language.
dgobbi May 27, 2016
f67864e
Replace __WRAP__ with more descriptive __VTK_WRAP__.
dgobbi May 27, 2016
5125a03
Fix parallel nhdr reader
mwestphal May 19, 2016
a74fc9e
Merge topic 'fix_VTK_USE_CXX11_FEATURES'
mathturtle May 28, 2016
d1be393
Minor enhancement in vtkUnstructuredGrid.cxx
awehrfritz May 28, 2016
3c0ae07
Merge topic 'debugleaks-review'
seanm May 29, 2016
707da00
Update the vtkDICOM remote module to v0.7.8.
dgobbi May 29, 2016
6297de2
Merge topic 'remote-vtk-dicom'
dgobbi May 29, 2016
5024cd0
silence dashboard warnings and update baselines for 0.10.0
May 30, 2016
71a5d41
Merge branch 'ospray-improvements' into 'master'
May 31, 2016
3780edd
Fix volume mapper issue with depth pass mode
sankhesh May 31, 2016
981bef7
Release graphics resources for depth pass mode
sankhesh May 31, 2016
87fe706
Cache a vtkPolyDataMapper instance for contouring in depth pass mode
sankhesh May 31, 2016
a81edff
Documentation: mention the -i and -e shorthand flags
mathstuf May 31, 2016
8ad3196
Merge topic 'qt5_fixes'
utkarshayachit Jun 1, 2016
3b90d77
default to not using ambient occlusion and avoid speckles
Jun 1, 2016
d452ce9
Disable dual depth peeling for llvmpipe/SWR mesa drivers.
Jun 1, 2016
ed96e3d
Merge topic 'buildbot-arg-docs'
mathstuf Jun 1, 2016
c6f4ac0
BUG: Add include needed by NDK for android build.
cpatrick Jun 1, 2016
9a406d8
Merge topic 'disable_ddp_on_all_mesa'
Jun 1, 2016
97d3517
Merge topic 'ospray-improvements'
Jun 2, 2016
461d147
Fixes missing variable when using vtkLightKit with gradient opacity tf.
alvarosan May 25, 2016
f1f4c12
Merge topic 'ParallelNhdrBugFix'
Jun 3, 2016
76dd347
Merge topic 'wrap-preproc-macro'
dgobbi Jun 3, 2016
cf68761
include correct header to avoid compilation error on some machines
Jun 3, 2016
19a3b91
vtkGDALVectorReader: Update to GDAL 2.1
bradking Jun 3, 2016
62bf406
Fixes bug introduced in 235bd27a5a72.
aeslaughter Jun 3, 2016
007c0c4
Merge topic 'update-to-gdal-2.1'
bradking Jun 3, 2016
1cdf99c
Proposed fix for handling Exodus files that lack time
aeslaughter Jun 3, 2016
acd19c6
Merge topic 'fix-android-build-for-android-23'
martinken Jun 3, 2016
74a01f3
Merge topic 'UnitTestDataSetSurfaceFilter'
lorensen Jun 5, 2016
80efe1d
Merge topic 'Segfault_ImagePlaneWidget'
lorensen Jun 5, 2016
cec59ac
Merge topic '16054-void-swig-ptr'
dgobbi Jun 6, 2016
ce8088f
Remove Apple warning messages in non-debug builds.
utkarshayachit Jun 6, 2016
85eeda9
Merge topic 'depth_pass_window_size'
sankhesh Jun 6, 2016
45fef42
Merge topic 'cleanup_opengl_warnings'
utkarshayachit Jun 6, 2016
64d2305
Fix issue introduced by aa3330f4
utkarshayachit Jun 6, 2016
11ca6d0
Add attribute parsing for wrapper hints
dgobbi Jun 4, 2016
d1918e0
Add missing attribute-specifier-seq to parser grammar
dgobbi Jun 4, 2016
17fd1a7
Fail if an unrecognized wrapper hint attribute found.
dgobbi Jun 4, 2016
db78a5a
Regenerate vtkParse.tab.c from vtkParse.y.
dgobbi Jun 4, 2016
b342b39
Use VTK_NEWINSTANCE hint for factory methods
dgobbi Jun 4, 2016
0d3de2a
Merge topic 'fix_bug_in_datasetsurface_filter'
utkarshayachit Jun 7, 2016
58c9e5f
Merge topic 'ospray-improvements'
Jun 7, 2016
0442298
Merge topic 'fix-clip-plane-depth-check'
alvarosan Jun 7, 2016
f2a7383
ENH: Restore TestXMLCInterface
lorensen Jun 7, 2016
4d7c3ac
Merge topic 'fix-light-kit'
alvarosan Jun 8, 2016
dd87a44
Allow pyvtkObjects to have InvokeEvent called on them with calldata
HastingsGreer Jun 3, 2016
78a4b8d
Add test coverage for invoking events
HastingsGreer Jun 3, 2016
18ea6c3
PointGaussianMapper: Support colors via material properties.
utkarshayachit Jun 8, 2016
7602a0e
Make vtkCollection implement iterable in the python wrapping
HastingsGreer Jun 7, 2016
7bae249
Support multi-stage render passes in point gaussian mapper.
Jun 8, 2016
7d7c27d
Fix Implicit plane widget
sujin-philip Apr 26, 2016
00e9d12
Fix implicit cylinder widget
sujin-philip May 6, 2016
b16a311
Merge topic 'PythonInvokeEventAllowDiverseCallData'
jcfr Jun 9, 2016
50bbfcb
Merge topic 'pythonWrapperVTKCollectionImplementsIterable'
jcfr Jun 9, 2016
de6814a
Merge topic '16740-translucent-point-gaussians'
Jun 9, 2016
1d247c8
QVTKWidget: add ability to defer render in paintEvent
utkarshayachit Jun 1, 2016
7d97b47
Merge topic '16740_fix_point_gaussian_issues'
utkarshayachit Jun 9, 2016
17f0e98
Merge topic 'fix-implicit-cylinder-plane-widgets'
sujin-philip Jun 9, 2016
11b3da8
Merge topic 'imagestyle-pickability'
dgobbi Jun 9, 2016
bbf919d
Merge topic 'wrapper-attribute-hints'
dgobbi Jun 9, 2016
9f385d3
Merge topic 'qvtkwidget_deferred_render'
utkarshayachit Jun 9, 2016
8a8c083
Merge topic 'trivial_vtkUnstructuredGrid_enhancement'
Jun 10, 2016
7886fe4
Re-enable some chart tests when OpenGL2 backend is available
cquammen Apr 25, 2016
d487722
Added more alternate baselines for TestScalarsToColors
cquammen Apr 26, 2016
394e759
fix reference count for python wrapper of collection iterator
HastingsGreer Jun 10, 2016
042c421
Merge topic 'correct-reference-count-python-collection-iterator'
dgobbi Jun 10, 2016
230454d
Wrap the vtkArrayIteratorTemplate in Python
dgobbi Jun 11, 2016
c4503e1
Add test for vtkArrayIteratorTemplate wrapping
dgobbi Jun 11, 2016
c083f1e
Mark NewIterator as a NEW_INSTANCE method
dgobbi Jun 11, 2016
677104a
Only apply NoDataValue when it is set in the input image
johnkit Jun 12, 2016
2d7055f
Merge topic 'fix_context_device_tests'
cquammen Jun 12, 2016
b985df4
BUG #16744: Resources are not removed for a renderer removed from the…
danlipsa Jun 13, 2016
8a728c0
Merge topic 'remove-renderer-leak'
danlipsa Jun 13, 2016
2e77fec
Copy attribute array information in vtkAppendFilter.
Jun 13, 2016
c9d5d5f
Merge topic 'wrap-vtkArrayIteratorTemplate'
dgobbi Jun 13, 2016
11ec703
SphereRepresentation CenterCursor bounds fix
mwestphal Jun 10, 2016
e2decb1
Merge topic 'vtkAppendFilter-copy-attribute-info'
Jun 14, 2016
8731cee
Merge topic 'fix-gdal-nodata'
johnkit Jun 14, 2016
a3bd88d
remove xml2's deprecated reference() function
Jun 14, 2016
591af52
remove instead of comment
Jun 14, 2016
bf7f399
Merge topic 'remove-an-unsafe-deprecated-function-in-xml2'
Jun 14, 2016
edb1cf3
Merge topic '16119_FixingCursorBounds'
mwestphal Jun 15, 2016
5c8c06a
Support cutoff mass/density arrays; 2D kernels
wschroed Jun 13, 2016
7b08d2d
vtkPeriodicDataArray: fix vector range computation.
tjcorona Jun 14, 2016
c16f78d
Merge topic 'SPH-Cutoff-Volume-Arrays'
wschroed Jun 16, 2016
7a9661e
Add vtkInformationKeyLookup to find information keys by name.
Jun 16, 2016
e1d6777
ThirdParty: support 2.9.0's new merge restrictions
mathstuf Jun 16, 2016
143c31f
Merge topic 'TestXMLCInterface'
lorensen Jun 16, 2016
fc28e36
Add test for vtkGDALRasterReader with image using color palette
johnkit Jun 15, 2016
3bbfea3
Add code to read images with index data & color palette
johnkit Jun 15, 2016
3d6a42c
Add annotations to lookup table, needed for display, and update test
johnkit Jun 16, 2016
58ffed6
Update implicit plane/cylinder representations fix
sujin-philip Jun 14, 2016
d071eb2
Merge topic 'update-plane-cylinder-widget-fix'
sujin-philip Jun 16, 2016
cfff910
Adding a vtkProgressBarRepresentation and Widget
mwestphal May 18, 2016
161c939
Merge topic 'third-party-import-git-2.9'
bradking Jun 17, 2016
a8a28b6
Merge topic 'infokey-lookup'
Jun 17, 2016
c6a2a24
Merge topic '10477_16131_AddingVtkProgressBarRepWidget'
mwestphal Jun 17, 2016
22ab829
Purged dead branch
seanm Jun 18, 2016
636aa17
Merge topic 'support-gdal-palette-images'
johnkit Jun 18, 2016
1fcd833
Rename LabeledContourMapper::BuildTime to avoid shadowing superclass.
Jun 20, 2016
a0eb686
Add #include for offsetof() macro in generated Python wrappers
msmolens Jun 20, 2016
d560ec8
BUG #16744: Resources are not removed for a renderer removed from the…
danlipsa Jun 16, 2016
19de3b7
Merge topic 'DeadCodeEnSight'
seanm Jun 20, 2016
25e3141
Merge topic 'rename-shadowed-ivar'
Jun 20, 2016
e5e09ee
Merge topic 'python-wrapping-include-cstddef'
msmolens Jun 20, 2016
ea6cfe5
Merge topic 'periodic-data-array-range-fix'
tjcorona Jun 21, 2016
12e5b26
Merge topic 'fix-16738'
tjcorona Jun 21, 2016
c325de7
Merge topic 'remove-renderer-leak-followup'
danlipsa Jun 21, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 1 addition & 10 deletions Common/Core/vtkBuffer.h
Original file line number Diff line number Diff line change
@@ -148,17 +148,8 @@ bool vtkBuffer<ScalarT>::Reallocate(vtkIdType newsize)
{
if (newsize == 0) { return this->Allocate(0); }

// OS X's realloc does not free memory if the new block is smaller. This
// is a very serious problem and causes huge amount of memory to be
// wasted. Do not use realloc on the Mac.
bool dontUseRealloc=false;
#if defined __APPLE__
dontUseRealloc=true;
#endif

if (this->Pointer &&
(this->Save || this->DeleteMethod == VTK_DATA_ARRAY_DELETE ||
dontUseRealloc))
(this->Save || this->DeleteMethod == VTK_DATA_ARRAY_DELETE))
{
ScalarType* newArray =
static_cast<ScalarType*>(malloc(newsize * sizeof(ScalarType)));