ensight.proto
Last update: 17.04.2023 148 }
152 string prefix = 1; // The subscription prefix passed in SubscribeEventOptions or SubscribeImageOptions
153 }
162 }
163 string prefix = 1; // A unique prefix string (perhaps a GUID) used to identify this stream (used by Unsubscribe())
167 // For type=ChannelType::GRPC, 'uri' map key contains the URI for the server launched by the client (required). 'num_retries' map
168 // key is the number of times EnSight should attempt to connect before failing the operation. 'shared_secret' map
169 // key is the shared secret that the client gRPC server is expecting to see to authenticate a connection.
180 SHARED_MEM = 1; // EnSight should use a \ref SharedMemoryImageStream to send images back to the client
181 }
182 string prefix = 1; // A unique prefix string (perhaps a GUID) used to identify this stream (used by Unsubscribe())
185 bool chunk = 4; // Set to send images in 1MB chunks to speed up large (>1MB) image transfers (see ImageStreamRequest and ImageReply)
188 // For type=GRPC, 'uri' map key contains the URI for the server launched by the client (required). 'num_retries' map
189 // key is the number of times EnSight should attempt to connect before failing the operation. 'shared_secret' map
190 // key is the shared secret that the client gRPC server is expecting to see to authenticate a connection.
202 EXEC_RETURN_PYTHON = 1; // Run the string using eval() and return the resulting Python object via Python repr()
203 EXEC_RETURN_JSON = 2; // Run the string using eval() and return the resulting Python object encoded via json
205 CmdType type = 1; // Specify how the string should be executed and what the return value should be
206 string command = 2; // UTF8 encoded string to be exec() or eval() by the EnSight Python interpreter
207 }
211 string value = 1; // UTF8 encoded string, the repr() or json representation of the evaluated expression depending on the PythonRequest::CmdType specified
219 IMAGE_PNG = 0; // The returned image will be encoded into the PNG image file format and returned as an array of bytes.
220 IMAGE_RAW = 1; // The returned value be in raw binary bytes: RGBRGBRGB... width*height*3 bytes total
221 }
226 bool include_highlighting = 5; // If true, any dynamic overlay will be included in the rendered image
231 bytes value = 1; // An array of byte representing the image. See RenderRequest::RenderType for the specific format.
232 }
253 string id = 1; // Handle used to query progress or cancel a save. Any unique string, provided by the caller.
254 string filename = 2; // Name of file to save. Format determined from file extension. Defaults to .mp4 or .png with no file extension. UTF8 encoding. Existing files are overwritten.
255 map<string, string> format_options = 3; // Options specific to certain formats, as (option_name, value) pairs
259 bool white_background = 7; // If True, set background to white, and change text and misc colors to black as necessary. Restore all, after save. If False, leave all colors as they are.
260 int32 start_frame = 8; // First frame to save. 0-based. -1 special value that means the current timestep
261 int32 num_frames = 9; // Num frames to save. -1 special value that means all timesteps. num_frames > num timesteps allows multiple cycles through time.
263 }
266 }
268 // Query the progress of an animation being saved. This can be called while AnimSaveRequest is in progress
286 Status status = 4; // If 'cancel' is True in the request, but the anim had already completed or errored out, returned status is COMPLETE or ERROR
288 }
302 bytes value = 1; // a binary array containing the geometry in the format specified by GeometryRequest::GeometryType
303 }
310 // Note: it is not uncommon for the ExitRequest call to return a gRPC error due to shutdown race conditions.
316 // This message dictates the form of the ImageReply messages. One can have the images flipped vertically
317 // and can optionally chunk an entire image frame into multiple ImageReply messages. Empirical measurements
318 // demonstrate that gRPC can transfer smaller blocks of pixels faster that larger blocks. If the chunk option
330 // These messages can contain the pixel data for an entire image or some portion of the image. An
344 bool final = 5; // If the ImageStreamRequest chunk is true, this is the final message in an image frame
345 }
349 string prefix = 1; // Specify that only the events that begin with this prefix should be included in the event stream
354 string tag = 1; // The string associated with the EnSight event callback. It will begin with the prefix passed in the EventStreamRequest message
rpc AnimQueryProgress(AnimQueryProgressRequest animqueryprogressrequest) returns(AnimQueryProgressReply)
Definition: ensight.proto:114
rpc SubscribeImages(SubscribeImageOptions subscribeimageoptions) returns(GenericResponse)
Definition: ensight.proto:93
rpc RunPython(PythonRequest pythonrequest) returns(PythonReply)
Definition: ensight.proto:40
rpc Unsubscribe(Prefix prefix) returns(GenericResponse)
Definition: ensight.proto:100
rpc AnimSave(AnimSaveRequest animsaverequest) returns(AnimSaveReply)
Definition: ensight.proto:110
rpc Exit(ExitRequest exitrequest) returns(ExitReply)
Definition: ensight.proto:52
rpc SubscribeEvents(SubscribeEventOptions subscribeeventoptions) returns(GenericResponse)
Definition: ensight.proto:81
rpc GetEventStream(EventStreamRequest eventstreamrequest) returns(stream EventReply)
Definition: ensight.proto:70
rpc RenderImage(RenderRequest renderrequest) returns(RenderReply)
Definition: ensight.proto:44
rpc GetImageStream(ImageStreamRequest imagestreamrequest) returns(stream ImageReply)
Definition: ensight.proto:106
rpc GetGeometry(GeometryRequest geometryrequest) returns(GeometryReply)
Definition: ensight.proto:48
rpc PublishImage(stream ImageReply) returns(GenericResponse)
Definition: ensight.proto:136
rpc PublishEvent(EventReply eventreply) returns(GenericResponse)
Definition: ensight.proto:140
Definition: ensight.proto:271
Definition: ensight.proto:257
Definition: ensight.proto:362
Definition: ensight.proto:319
Definition: ensight.proto:314
Definition: ensight.proto:148
Definition: ensight.proto:309
Definition: ensight.proto:299
Request the start of an image stream.
Definition: ensight.proto:331
Definition: ensight.proto:153
Definition: ensight.proto:215
Definition: ensight.proto:202
CmdType
Specify the execution type and return value for the Python command.
Definition: ensight.proto:205
Definition: ensight.proto:236
Definition: ensight.proto:221
ChannelType
Subscription channel type Presently, only image subscriptions are supported.
Definition: ensight.proto:162
ChannelType
Image channel type The image subscription can be via gRPC protocol or via shared memory transport.
Definition: ensight.proto:181