cgv
Loading...
Searching...
No Matches
cgv::plot::attribute_source Struct Reference

store source of a single plot attribute (one coordinate axis or one float attribute) More...

#include <plot_base.h>

Public Member Functions

 attribute_source ()
 construct an empty attribute sources
 attribute_source (int sub_plot_index, size_t ai, size_t _count, size_t _stride)
 construct an attribute source referencing component ai of given sub plot
 attribute_source (const float *_pointer, size_t _count, size_t _stride)
 constructor for source from external data
 attribute_source (const cgv::render::vertex_buffer *_vbo_ptr, size_t _offset, size_t _count, size_t _stride)
 constructor for source from vbo
 attribute_source (const attribute_source &as)
 copy constructor has no magic inside

Public Attributes

AttributeSource source
union { 
   int   sub_plot_index 
   const float *   pointer 
   const cgv::render::vertex_buffer *   vbo_ptr 
}; 
size_t offset
size_t count
size_t stride

Detailed Description

store source of a single plot attribute (one coordinate axis or one float attribute)

Definition at line 231 of file plot_base.h.

Constructor & Destructor Documentation

◆ attribute_source() [1/5]

cgv::plot::attribute_source::attribute_source ( )

construct an empty attribute sources

Definition at line 195 of file plot_base.cxx.

Referenced by attribute_source().

◆ attribute_source() [2/5]

cgv::plot::attribute_source::attribute_source ( int sub_plot_index,
size_t ai,
size_t _count,
size_t _stride )

construct an attribute source referencing component ai of given sub plot

Definition at line 197 of file plot_base.cxx.

◆ attribute_source() [3/5]

cgv::plot::attribute_source::attribute_source ( const float * _pointer,
size_t _count,
size_t _stride )

constructor for source from external data

Definition at line 199 of file plot_base.cxx.

◆ attribute_source() [4/5]

cgv::plot::attribute_source::attribute_source ( const cgv::render::vertex_buffer * _vbo_ptr,
size_t _offset,
size_t _count,
size_t _stride )

constructor for source from vbo

Definition at line 201 of file plot_base.cxx.

◆ attribute_source() [5/5]

cgv::plot::attribute_source::attribute_source ( const attribute_source & as)

copy constructor has no magic inside

Definition at line 203 of file plot_base.cxx.

References attribute_source().

Member Data Documentation

◆ count

size_t cgv::plot::attribute_source::count

Definition at line 240 of file plot_base.h.

◆ offset

size_t cgv::plot::attribute_source::offset

Definition at line 239 of file plot_base.h.

◆ pointer

const float* cgv::plot::attribute_source::pointer

Definition at line 236 of file plot_base.h.

◆ source

AttributeSource cgv::plot::attribute_source::source

Definition at line 233 of file plot_base.h.

◆ stride

size_t cgv::plot::attribute_source::stride

Definition at line 241 of file plot_base.h.

◆ sub_plot_index

int cgv::plot::attribute_source::sub_plot_index

Definition at line 235 of file plot_base.h.

◆ vbo_ptr

const cgv::render::vertex_buffer* cgv::plot::attribute_source::vbo_ptr

Definition at line 237 of file plot_base.h.


The documentation for this struct was generated from the following files: