|
void | clear () |
|
void | add_normal (const vec3 &normal) |
|
void | add_width (const float width) |
|
void | add_segment_normal (const vec3 &normal) |
|
void | add_segment_width (const float width) |
|
void | add_segment_color (const ColorType &color) |
|
void | add (const vec3 &start_position, const vec3 &end_position) |
|
void | add (const vec3 &start_position, const vec3 &end_position, const ColorType &color) |
|
void | add (const vec3 &start_position, const vec3 &end_position, const vec3 &normal) |
|
void | add (const vec3 &start_position, const vec3 &end_position, const float width) |
|
void | add (const vec3 &start_position, const vec3 &end_position, const ColorType &color, const float width) |
|
void | add (const float start_width, const float end_width) |
|
void | add (const ColorType &start_color, const ColorType &end_color) |
|
void | fill_normals (const vec3 &normal) |
|
void | fill_widths (const float width) |
|
void | add (const vec3 &position, const ColorType &color) |
|
size_t | size () |
| Return the number of stored positions.
|
|
bool | empty () const |
| Return whether this render data is empty.
|
|
void | clear () |
| Clear the stored data and set state out of date.
|
|
void | set_out_of_date () |
| Notify the render data about state changes.
|
|
size_t | render_count () |
| Return the number of vertices that will be rendered.
|
|
const attribute_array_manager & | ref_attribute_array_manager () const |
| Constant access to the private attribute_array_manager.
|
|
bool | init (context &ctx) |
| Initialize the attribute array manager.
|
|
void | destruct (context &ctx) |
| Destruct the attribute array manager and decrease the reference count of the used renderer.
|
|
void | early_transfer (context &ctx, RendererType &r) |
| Perform a transfer of the stored data to the attribute_array right now.
|
|
bool | enable (context &ctx, RendererType &r, const RenderStyleType &s) |
| Enable the render data for rendering.
|
|
bool | disable (context &ctx, RendererType &r) |
| Disable the renderer and attribute_array.
|
|
void | draw (context &ctx, renderer &r, unsigned offset=0, int count=-1) |
| Draw the stored geometry using the given renderer.
|
|
void | render (context &ctx, unsigned offset=0, int count=-1) |
| Render the stored geometry.
|
|
void | render (context &ctx, const RenderStyleType &s, unsigned offset=0, int count=-1) |
| Render the stored geometry using the given style.
|
|
void | render (context &ctx, RendererType &r, unsigned offset=0, int count=-1) |
| Render the stored geometry using the given renderer.
|
|
void | render (context &ctx, RendererType &r, const RenderStyleType &s, unsigned offset=0, int count=-1) |
| Render the stored geometry using the given renderer and style.
|
|
void | add_index (const uint32_t index) |
|
void | add_position (const vec3 &position) |
|
void | add_color (const ColorType &color) |
|
void | add (const vec3 &position, const ColorType &color) |
|
void | fill_colors (const ColorType &color) |
|
template<typename ColorType = rgb>
class cgv::render::line_render_data< ColorType >
Render data for line geometry with support for the line_renderer.
See render_data_base.
- Template Parameters
-
ColorType | The type used to represent colors. Must be cgv::render::rgb or cgv::render::rgba. |
Definition at line 12 of file line_render_data.h.