MantisBT - VTK | |||||
| View Issue Details | |||||
| ID | Project | Category | View Status | Date Submitted | Last Update |
| 0002489 | VTK | (No Category) | public | 2005-11-15 08:10 | 2016-08-12 09:54 |
| Reporter | m.danilouchkine1 | ||||
| Assigned To | Will Schroeder | ||||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | moved | ||
| Platform | OS | OS Version | |||
| Product Version | |||||
| Target Version | Fixed in Version | ||||
| Project | |||||
| Type | |||||
| Summary | 0002489: vtkAssignAttribute Assign problem | ||||
| Description | When I tried to assign the scalar attributes to the vector using the Assign methods as follows: vtkSmartPointer<vtkReassignAttribute> imgComp2Atrrib; imgComp2Atrrib = vtkSmartPointer<vtkReassignAttribute>::New(); imgComp2Atrrib->SetInput(<and image with 3 scalar component>); imgComp2Atrrib->Assign(vtkDataSetAttributes::SCALARS, vtkDataSetAttributes::VECTORS, vtkReassignAttribute::POINT_DATA); It did not work out. I fixed the problem by changing the RequestData procedure. if (this->FieldType == vtkReassignAttribute::NAME && this->FieldName) { ods->SetActiveAttribute(this->FieldName, this->AttributeType); } else if (this->FieldType == vtkReassignAttribute::ATTRIBUTE && (this->InputAttributeType != -1)) { // If labeling an attribute as another attribute, we // need to get it's index and call SetActiveAttribute() // with that index int attributeIndices[vtkDataSetAttributes::NUM_ATTRIBUTES]; ods->GetAttributeIndices(attributeIndices); ods->SetActiveAttribute(attributeIndices[this->InputAttributeType],this->AttributeType); //vtkDataArray *oda = ods->GetAttribute(this->InputAttributeType); //if (oda) // { // ods->SetActiveAttribute(oda->GetName(),this->AttributeType); // } } | ||||
| Steps To Reproduce | |||||
| Additional Information | |||||
| Tags | No tags attached. | ||||
| Relationships | |||||
| Attached Files | |||||
| Issue History | |||||
| Date Modified | Username | Field | Change | ||
| 2011-06-16 13:11 | Zack Galbreath | Category | => (No Category) | ||
| 2016-08-12 09:54 | Kitware Robot | Note Added: 0036805 | |||
| 2016-08-12 09:54 | Kitware Robot | Status | expired => closed | ||
| 2016-08-12 09:54 | Kitware Robot | Resolution | open => moved | ||
| Notes | |||||
|
|
|||||
|
|
||||
|
|
|||||
|
|
||||