@@ -247,8 +247,9 @@ def apply_color_variable(
247247 registry and is not needed to configure the mapper. An unknown
248248 *node_id* is a logged no-op, never a raise.
249249
250- Ends with :meth:`serialize_part_state`, after the mapper write, so
251- the state served to the client carries the new range.
250+ Ends with :meth:`_serialize_part_state`, after the mapper write, so
251+ the state served to the client carries the new range. Does not
252+ notify the client.
252253 """
253254 pipe = self ._pipelines .get (node_id )
254255 if pipe is None :
@@ -257,7 +258,7 @@ def apply_color_variable(
257258 )
258259 return
259260 pipe .set_color_variable (array_type , array_name , component , min_val , max_val )
260- self .serialize_part_state (node_id )
261+ self ._serialize_part_state (node_id )
261262
262263 def clear_color_variable (self , node_id : int ) -> None :
263264 """See :meth:`IRenderer.clear_color_variable`.
@@ -266,8 +267,9 @@ def clear_color_variable(self, node_id: int) -> None:
266267 :meth:`VtkNodePipeline.clear_color_variable`. An unknown
267268 *node_id* is a logged no-op, never a raise.
268269
269- Ends with :meth:`serialize_part_state`, after the mapper write, so
270- the state served to the client has scalar colouring off.
270+ Ends with :meth:`_serialize_part_state`, after the mapper write, so
271+ the state served to the client has scalar colouring off. Does not
272+ notify the client.
271273 """
272274 pipe = self ._pipelines .get (node_id )
273275 if pipe is None :
@@ -276,10 +278,15 @@ def clear_color_variable(self, node_id: int) -> None:
276278 )
277279 return
278280 pipe .clear_color_variable ()
279- self .serialize_part_state (node_id )
281+ self ._serialize_part_state (node_id )
280282
281- def serialize_part_state (self , node_id : int ) -> None :
282- """See :meth:`IRenderer.serialize_part_state`.
283+ def _serialize_part_state (self , node_id : int ) -> None :
284+ """Make the state served to the client current for one part's mapper.
285+
286+ A mapper write without this leaves the served cache holding the old
287+ content under a new version number, so the next client fetch gets the
288+ pre-write range. **Serialize only; do not notify.** An unknown
289+ *node_id* is a logged no-op.
283290
284291 Names the mapper's id alone, derived with ``GetId`` on the object as
285292 :meth:`serialize_camera_state` derives the camera's. An id of ``0``
@@ -290,13 +297,13 @@ def serialize_part_state(self, node_id: int) -> None:
290297 pipe = self ._pipelines .get (node_id )
291298 if pipe is None :
292299 logger .debug (
293- "serialize_part_state : no pipeline for node %s; skipping." , node_id
300+ "_serialize_part_state : no pipeline for node %s; skipping." , node_id
294301 )
295302 return
296303 mapper_id = self ._object_manager .GetId (pipe .mapper )
297304 if mapper_id == 0 :
298305 logger .debug (
299- "serialize_part_state : mapper of node %s is not registered yet; skipping." ,
306+ "_serialize_part_state : mapper of node %s is not registered yet; skipping." ,
300307 node_id ,
301308 )
302309 return
0 commit comments