libVFRendering  0.14.0

A vector field rendering library
Public Types | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
VFRendering::BoundingBoxRenderer Class Reference
Inheritance diagram for VFRendering::BoundingBoxRenderer:
VFRendering::RendererBase

Public Types

enum  Option {
  COLOR = 600,
  LEVEL_OF_DETAIL,
  LINE_WIDTH
}
 

Public Member Functions

 BoundingBoxRenderer (const View &view, const std::vector< glm::vec3 > &vertices, const std::vector< float > &dashing_values={})
 
virtual void draw (float aspect_ratio) override
 
virtual void optionsHaveChanged (const std::vector< int > &changed_options) override
 
- Public Member Functions inherited from VFRendering::RendererBase
 RendererBase (const View &view)
 
virtual void updateOptions (const Options &options)
 
template<int index>
void setOption (const typename Options::Type< index >::type &value)
 
const Optionsoptions () const
 
template<int index>
Options::Type< index >::type getOption () const
 
virtual void updateIfNecessary ()
 

Static Public Member Functions

static BoundingBoxRenderer forCuboid (const View &view, const glm::vec3 &center, const glm::vec3 &side_lengths, const glm::vec3 &periodic_boundary_condition_lengths={0.0f, 0.0f, 0.0f}, float dashes_per_length=1.0f)
 
static BoundingBoxRenderer forParallelepiped (const View &view, const glm::vec3 &center, const glm::vec3 &v1, const glm::vec3 &v2, const glm::vec3 &v3, const glm::vec3 &periodic_boundary_condition_lengths={0.0f, 0.0f, 0.0f}, float dashes_per_length=1.0f)
 
static BoundingBoxRenderer forHexagonalCell (const View &view, const glm::vec3 &center, float radius, float height, const glm::vec2 &periodic_boundary_condition_lengths={0.0f, 0.0f}, float dashes_per_length=1.0f)
 

Protected Member Functions

virtual void update (bool keep_geometry) override
 
void updateVertexData ()
 
- Protected Member Functions inherited from VFRendering::RendererBase
virtual void options (const Options &options)
 

Additional Inherited Members

- Protected Attributes inherited from VFRendering::RendererBase
const Viewm_view
 

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