cgv
Loading...
Searching...
No Matches
cgv::render::box_wire_render_data< ColorType > Class Template Reference

Render data for box geometry with support for the box_wire_renderer. More...

#include <box_wire_render_data.h>

Inheritance diagram for cgv::render::box_wire_render_data< ColorType >:
cgv::render::box_render_data_base< box_wire_renderer, box_wire_render_style, rgb > cgv::render::render_data_base< box_wire_renderer, box_wire_render_style, rgb >

Additional Inherited Members

Public Member Functions inherited from cgv::render::box_render_data_base< box_wire_renderer, box_wire_render_style, rgb >
void add (const vec3 &position, const rgb &color)
void clear ()
void add_extent (const vec3 &extent)
void add_translation (const vec3 &translation)
void add_rotation (const quat &rotation)
void fill_extents (const vec3 &extent)
void fill_translations (const vec3 &translation)
void fill_rotations (const quat &rotation)
Public Member Functions inherited from cgv::render::render_data_base< box_wire_renderer, box_wire_render_style, rgb >
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 and increase the reference count of the used renderer singleton.
void destruct (context &ctx)
 Destruct the attribute array manager and decrease the reference count of the used renderer singleton.
void early_transfer (context &ctx, box_wire_renderer &r)
 Perform a transfer of the stored data to the attribute_array right now.
bool enable (context &ctx, box_wire_renderer &r, const box_wire_render_style &s)
 Enable the render data for rendering.
bool disable (context &ctx, box_wire_renderer &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 add_index (const uint32_t index)
void add_position (const vec3 &position)
void add_color (const rgb &color)
void add (const vec3 &position, const rgb &color)
void fill_colors (const rgb &color)
Public Attributes inherited from cgv::render::box_render_data_base< box_wire_renderer, box_wire_render_style, rgb >
std::vector< vec3 > extents
 array of extents
std::vector< vec3 > translations
 array of translations
std::vector< quat > rotations
 array of rotations
Public Attributes inherited from cgv::render::render_data_base< box_wire_renderer, box_wire_render_style, rgb >
box_wire_render_style 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< rgb > colors
 array of colors
cgv::data::optional< rgb > const_color
 optional constant color used for all elements
Protected Member Functions inherited from cgv::render::box_render_data_base< box_wire_renderer, box_wire_render_style, rgb >
bool transfer (context &ctx, box_wire_renderer &r) override
 See render_data_base::transfer.
Protected Member Functions inherited from cgv::render::render_data_base< box_wire_renderer, box_wire_render_style, rgb >
virtual void set_const_attributes (context &ctx, box_wire_renderer &r)
 Set constant vertex attributes if present.
void fill (std::vector< T > &vector, const T &value)
 Template for filling a member array to the size of the render data.

Detailed Description

template<typename ColorType = rgb>
class cgv::render::box_wire_render_data< ColorType >

Render data for box geometry with support for the box_wire_renderer.

See render_data_base.

Template Parameters
ColorTypeThe type used to represent colors. Must be cgv::render::rgb or cgv::render::rgba.

Definition at line 12 of file box_wire_render_data.h.


The documentation for this class was generated from the following file: