|
MayaFlux 0.4.0
Digital-First Multimedia Processing Framework
|
| ValueRow MayaFlux::Portal::Forma::make_value_row | ( | const ValueSpec & | spec, |
| RowBuffer | row_buf, | ||
| Surface & | surface, | ||
| LayoutCursor & | cursor, | ||
| float | x_min, | ||
| float | x_max, | ||
| float | row_h, | ||
| glm::vec3 | bg = glm::vec3(0.15F) |
||
| ) |
Construct one labeled value row, advance the cursor, and return it.
The returned row's link reads spec.reader each tick, represses "label: value" into the text image, and binds the image to the row's FormaBuffer. The buffer and text image are pre-created by the caller and travel together as row_buf.
| spec | Label and reader for the row. |
| row_buf | Pre-created buffer and bound text image. |
| surface | Surface to register the row on. |
| cursor | Layout cursor. Advanced by row_h on return. |
| x_min | Left edge in NDC. |
| x_max | Right edge in NDC. |
| row_h | Row height in NDC units. |
| bg | Background color for the row quad. |
Definition at line 76 of file QueryUtils.cpp.
References MayaFlux::Portal::Forma::Layer::add(), MayaFlux::Portal::Forma::LayoutCursor::advance(), MayaFlux::Portal::Forma::Element::bounds_hint, MayaFlux::Portal::Forma::RowBuffer::buf, MayaFlux::Portal::Forma::Element::buffer, MayaFlux::Portal::Text::PressParams::color, MayaFlux::Buffers::create_image_staging_buffer(), MayaFlux::Portal::Forma::ValueRow::element_id, MayaFlux::Kakshya::VertexLayout::for_meshes(), MayaFlux::Portal::Forma::Element::interactive, MayaFlux::Portal::Forma::ValueSpec::label, MayaFlux::Portal::Forma::Surface::layer(), MayaFlux::Kinesis::AABB2D::min, MayaFlux::Portal::Forma::Element::name, MayaFlux::Portal::Forma::ValueSpec::reader, MayaFlux::Portal::Text::repress(), MayaFlux::Kakshya::VertexLayout::stride_bytes, MayaFlux::Portal::Forma::RowBuffer::text_image, and MayaFlux::Portal::Forma::LayoutCursor::y().
Referenced by make_value_group().
Here is the call graph for this function:
Here is the caller graph for this function: