cgv
|
Public Member Functions | |
void | clear () |
void | add_direction (const vec3 &direction) |
void | add (const vec3 &position, const vec3 &direction) |
void | add (const vec3 &position, const ColorType &color, const vec3 &direction) |
void | fill_directions (const vec3 &direction) |
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) |
Public Attributes | |
std::vector< vec3 > | directions |
array of directions | |
bool | direction_is_end_point = false |
whether to interpret the direction attribute as the arrow end point position | |
![]() | |
RenderStyleType | style |
the default render style | |
std::vector< uint32_t > | indices |
array of indices used for optional indexed rendering | |
std::vector< vec3 > | positions |
array of positions | |
std::vector< ColorType > | colors |
array of colors | |
cgv::data::optional< ColorType > | const_color |
optional constant color used for all elements | |
Protected Member Functions | |
bool | transfer (context &ctx, arrow_renderer &r) override |
See render_data_base::transfer. | |
![]() | |
virtual bool | transfer (context &ctx, RendererType &r) |
Transfers the data stored in members to the attribute array. | |
virtual void | set_const_attributes (context &ctx, RendererType &r) |
Set constant vertex attributes if present. | |
template<typename T > | |
void | fill (std::vector< T > &vector, const T &value) |
Template for filling a member array to the size of the render data. | |
Definition at line 10 of file arrow_render_data.h.
|
inline |
Definition at line 362 of file render_data_base.h.
|
inline |
Definition at line 56 of file arrow_render_data.h.
|
inline |
Definition at line 51 of file arrow_render_data.h.
|
inline |
Definition at line 44 of file arrow_render_data.h.
|
inline |
Definition at line 39 of file arrow_render_data.h.
|
inline |
Definition at line 61 of file arrow_render_data.h.
|
inlineoverrideprotected |
See render_data_base::transfer.
Definition at line 21 of file arrow_render_data.h.
References cgv::render::arrow_render_data< ColorType >::direction_is_end_point, cgv::render::arrow_render_data< ColorType >::directions, and cgv::render::render_data_base< RendererType, RenderStyleType, ColorType >::transfer().
bool cgv::render::arrow_render_data< ColorType >::direction_is_end_point = false |
whether to interpret the direction attribute as the arrow end point position
Definition at line 37 of file arrow_render_data.h.
Referenced by cgv::render::arrow_render_data< ColorType >::transfer().
std::vector<vec3> cgv::render::arrow_render_data< ColorType >::directions |
array of directions
Definition at line 35 of file arrow_render_data.h.
Referenced by cgv::render::arrow_render_data< ColorType >::transfer().