View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0013744VTK(No Category)public2012-12-19 06:402015-01-09 13:40
ReporterGert Wollny 
Assigned ToDave DeMarle 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version5.10.1 
Target VersionFixed in Version6.1.0 
Summary0013744: vtkDataReader and vtkDataWriter don't agree on signed char
DescriptionvtkDataWriter indicates in the data file that an array is of type "signed char" by writing out the string "signed_char":

vtkDataWriter.cxx:1074
    case VTK_SIGNED_CHAR:
      {
      sprintf (str, format, "signed_char"); *fp << str;
      signed char *s=
        static_cast<vtkSignedCharArray *>(data)->GetPointer(0);
      vtkWriteDataArray(fp, s, this->FileType, "%hhd ", num, numComp);
      }
    break;

however, vtkDataReader checks for the string "char":
vtkDataReader.cxx:1446

  else if ( ! strncmp(type, "char", 4) )
    {
    array = vtkCharArray::New();
    array->SetNumberOfComponents(numComp);
  

As a result, a "signed char" data array stored by using vtkDataWriter can not be read back.
TagsNo tags attached.
ProjectKitware
Typeincorrect functionality
Attached Files

 Relationships

  Notes
(0029976)
Kyle Lutz (viewer)
2013-01-04 10:18

Fix pushed to gerrit: http://review.source.kitware.com/#/t/1904/ [^]
(0031272)
Dave DeMarle (administrator)
2013-07-22 20:10

moving back to active development since gatekeeper review state is gone and issue not fixed
(0031988)
Dave DeMarle (administrator)
2013-12-17 15:48

merged into repository, thanks for the Patch

 Issue History
Date Modified Username Field Change
2012-12-19 06:40 Gert Wollny New Issue
2013-01-04 10:17 Kyle Lutz Assigned To => Kyle Lutz
2013-01-04 10:17 Kyle Lutz Status backlog => todo
2013-01-04 10:17 Kyle Lutz Resolution open => fixed
2013-01-04 10:18 Kyle Lutz Status todo => active development
2013-01-04 10:18 Kyle Lutz Note Added: 0029976
2013-01-04 10:18 Kyle Lutz Status active development => gatekeeper review
2013-07-22 20:10 Dave DeMarle Note Added: 0031272
2013-07-22 20:10 Dave DeMarle Status gatekeeper review => backlog
2013-07-22 20:11 Dave DeMarle Status backlog => todo
2013-08-12 17:44 Dave DeMarle Status todo => backlog
2013-12-16 13:59 Dave DeMarle Assigned To Kyle Lutz => Dave DeMarle
2013-12-16 13:59 Dave DeMarle Status backlog => gerrit review
2013-12-17 15:48 Dave DeMarle Note Added: 0031988
2013-12-17 15:48 Dave DeMarle Status gerrit review => closed
2013-12-17 15:48 Dave DeMarle Fixed in Version => 6.1.0
2015-01-09 13:40 Dave DeMarle Source_changeset_attached => VTK master d92bf40e


Copyright © 2000 - 2018 MantisBT Team