Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
VTK
VTK
Commits
3dac3388
Commit
3dac3388
authored
Oct 03, 2007
by
Andy Wilson
Browse files
ENH: Clearer warning messages when the label arrays are not found
parent
90d5785e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Rendering/vtkDynamic2DLabelMapper.cxx
View file @
3dac3388
...
...
@@ -49,7 +49,7 @@ using vtksys_ios::ofstream;
# define SNPRINTF snprintf
#endif
vtkCxxRevisionMacro
(
vtkDynamic2DLabelMapper
,
"1.
6
"
);
vtkCxxRevisionMacro
(
vtkDynamic2DLabelMapper
,
"1.
7
"
);
vtkStandardNewMacro
(
vtkDynamic2DLabelMapper
);
//----------------------------------------------------------------------------
...
...
@@ -227,7 +227,19 @@ void vtkDynamic2DLabelMapper::RenderOpaqueGeometry(vtkViewport *viewport,
}
else
if
(
!
stringData
)
{
vtkWarningMacro
(
<<
"Could not find label array"
);
if
(
this
->
FieldDataName
)
{
vtkWarningMacro
(
<<
"Could not find label array ("
<<
this
->
FieldDataName
<<
") "
<<
"in input."
);
}
else
{
vtkWarningMacro
(
<<
"Could not find label array ("
<<
"index "
<<
this
->
FieldDataArray
<<
") "
<<
"in input."
);
}
return
;
}
...
...
Rendering/vtkLabeledDataMapper.cxx
View file @
3dac3388
...
...
@@ -26,7 +26,7 @@
#include
"vtkTextProperty.h"
#include
"vtkTransform.h"
vtkCxxRevisionMacro
(
vtkLabeledDataMapper
,
"1.
49
"
);
vtkCxxRevisionMacro
(
vtkLabeledDataMapper
,
"1.
50
"
);
vtkStandardNewMacro
(
vtkLabeledDataMapper
);
vtkCxxSetObjectMacro
(
vtkLabeledDataMapper
,
LabelTextProperty
,
vtkTextProperty
);
...
...
@@ -286,7 +286,19 @@ void vtkLabeledDataMapper::RenderOpaqueGeometry(vtkViewport *viewport,
}
else
{
vtkErrorMacro
(
<<
"Need input data to render labels (3)"
);
if
(
this
->
FieldDataName
)
{
vtkWarningMacro
(
<<
"Could not find label array ("
<<
this
->
FieldDataName
<<
") "
<<
"in input."
);
}
else
{
vtkWarningMacro
(
<<
"Could not find label array ("
<<
"index "
<<
this
->
FieldDataArray
<<
") "
<<
"in input."
);
}
return
;
}
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment