Salome HOME
projects
/
modules
/
paravis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
1869664
)
Issue '0022741: [CEA 1251] Display the groups of a med file with one color per family...
author
rnv
<rnv@opencascade.com>
Fri, 6 Feb 2015 11:15:37 +0000
(14:15 +0300)
committer
rnv
<rnv@opencascade.com>
Fri, 6 Feb 2015 11:15:56 +0000
(14:15 +0300)
src/Macro/annotate_groups.py
patch
|
blob
|
history
diff --git
a/src/Macro/annotate_groups.py
b/src/Macro/annotate_groups.py
index 3d1214872b22197ac34fdab6c2d651a1df60c57d..93454743f38c531d214246b8ffbd25ca55622a42 100644
(file)
--- a/
src/Macro/annotate_groups.py
+++ b/
src/Macro/annotate_groups.py
@@
-240,7
+240,14
@@
if data.GetDataObjectType() == vtkDataObjectTypes.GetTypeIdFromClassName("vtkMul
raise RuntimeError("Point data array has no '%s'." % FAMILY_NODE)
scalarBarlabel = "POINTS"
raise RuntimeError("Point data array has no '%s'." % FAMILY_NODE)
scalarBarlabel = "POINTS"
- activeRepresentation = 'Points'
+
+ # Check that PointSprite plugin is available
+ if hasattr(representation, "MaxPixelSize"):
+ activeRepresentation = 'Point Sprite'
+ if representation.MaxPixelSize == 64:
+ representation.MaxPixelSize = 8
+ else:
+ activeRepresentation = 'Points'
dataArray = pointData.GetArray(FAMILY_NODE)
for tupleId in range(dataArray.GetNumberOfTuples()):
dataArray = pointData.GetArray(FAMILY_NODE)
for tupleId in range(dataArray.GetNumberOfTuples()):
@@
-285,7
+292,7
@@
for idFamily in sortedArray:
if mapRelations.has_key(famName):
annotationList.append(str(', ').join(mapRelations.get(famName)))
else:
if mapRelations.has_key(famName):
annotationList.append(str(', ').join(mapRelations.get(famName)))
else:
- annotationList.append(str('No
ne
group'))
+ annotationList.append(str('No group'))
# Generate indexed colour for array
indexedColor = []
# Generate indexed colour for array
indexedColor = []