lookup_table.LockScalarRange = 1
lookup_table.RGBPoints = [data_range[0], 0, 0, 1, data_range[1], 1, 0, 0]
# Set properties
- scalarmap.ColorAttributeType = EntityType.get_pvtype(entity)
- scalarmap.ColorArrayName = field_name
+ scalarmap.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
scalarmap.LookupTable = lookup_table
# Add scalar bar
lookup_table.RGBPoints = [data_range[0], 0, 0, 1, data_range[1], 1, 0, 0]
# Set properties
- cut_planes.ColorAttributeType = EntityType.get_pvtype(entity)
- cut_planes.ColorArrayName = field_name
+ cut_planes.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
cut_planes.LookupTable = lookup_table
# Add scalar bar
lookup_table.RGBPoints = [data_range[0], 0, 0, 1, data_range[1], 1, 0, 0]
# Set properties
- cut_lines.ColorAttributeType = EntityType.get_pvtype(entity)
- cut_lines.ColorArrayName = field_name
+ cut_lines.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
cut_lines.LookupTable = lookup_table
# Set wireframe represenatation mode
lookup_table.RGBPoints = [data_range[0], 0, 0, 1, data_range[1], 1, 0, 0]
# Set properties
- cut_segment.ColorAttributeType = EntityType.get_pvtype(entity)
- cut_segment.ColorArrayName = field_name
+ cut_segment.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
cut_segment.LookupTable = lookup_table
# Set wireframe represenatation mode
glyph = pvs.Glyph(source)
glyph.Vectors = vector_array
glyph.ScaleMode = 'vector'
- glyph.MaskPoints = 0
+ #glyph.MaskPoints = 0
# Set glyph type
glyph.GlyphType = glyph_type
glyph.GlyphType.Center = [0.0, 0.0, 0.0]
if scale_factor is not None:
- glyph.SetScaleFactor = scale_factor
+ glyph.ScaleFactor = scale_factor
else:
def_scale = get_default_scale(PrsTypeEnum.DEFORMEDSHAPE,
proxy, entity, field_name)
- glyph.SetScaleFactor = def_scale
+ glyph.ScaleFactor = def_scale
glyph.UpdatePipeline()
# Set properties
if is_colored:
- defshape.ColorAttributeType = EntityType.get_pvtype(entity)
- defshape.ColorArrayName = field_name
+ defshape.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
else:
defshape.ColorArrayName = ''
defshape.LookupTable = lookup_table
lookup_table.RGBPoints = [data_range[0], 0, 0, 1, data_range[1], 1, 0, 0]
# Set properties
- defshapemap.ColorArrayName = scalar_field
+ defshapemap.ColorArrayName = (EntityType.get_pvtype(scalar_field_entity), scalar_field)
defshapemap.LookupTable = lookup_table
- defshapemap.ColorAttributeType = EntityType.get_pvtype(scalar_field_entity)
# Add scalar bar
add_scalar_bar(field_name, nb_components,
lookup_table.RGBPoints = [data_range[0], 0, 0, 1, data_range[1], 1, 0, 0]
# Set properties
- plot3d.ColorAttributeType = EntityType.get_pvtype(entity)
- plot3d.ColorArrayName = field_name
+ plot3d.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
plot3d.LookupTable = lookup_table
# Add scalar bar
# Set display properties
if (is_colored):
- isosurfaces.ColorAttributeType = EntityType.get_pvtype(entity)
- isosurfaces.ColorArrayName = field_name
+ isosurfaces.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
else:
isosurfaces.ColorArrayName = ''
if color:
# Set display properties
if is_colored:
- gausspnt.ColorAttributeType = EntityType.get_pvtype(entity)
- gausspnt.ColorArrayName = field_name
+ gausspnt.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
else:
gausspnt.ColorArrayName = ''
if color:
# Set display properties
if is_colored:
- gausspnt.ColorAttributeType = EntityType.get_pvtype(entity)
- gausspnt.ColorArrayName = field_name
+ gausspnt.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
else:
gausspnt.ColorArrayName = ''
if color:
# Set properties
if is_colored:
- streamlines.ColorAttributeType = EntityType.get_pvtype(entity)
- streamlines.ColorArrayName = field_name
+ streamlines.ColorArrayName = (EntityType.get_pvtype(entity), field_name)
else:
streamlines.ColorArrayName = ''
if color: