gtsam_points
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
glk::GridMap Class Reference

#include <gridmap.hpp>

Inheritance diagram for glk::GridMap:
Inheritance graph
[legend]
Collaboration diagram for glk::GridMap:
Collaboration graph
[legend]

Public Types

enum class  ColorMode {
  RAW = 0 , TURBO , PROB , PROB_TURBO ,
  RGBA
}
 
- Public Types inherited from glk::Drawable
using Ptr = std::shared_ptr< Drawable >
 
using ConstPtr = std::shared_ptr< const Drawable >
 

Public Member Functions

 GridMap (double resolution, int width, int height, const unsigned char *values, int alpha=255, ColorMode mode=ColorMode::PROB)
 
 GridMap (double resolution, int width, int height, float scale, const float *values, float alpha=1.0f, ColorMode mode=ColorMode::PROB)
 
virtual ~GridMap ()
 
virtual void draw (glk::GLSLShader &shader) const override
 
void update_color (int width, int height, const unsigned char *values, int alpha=255, ColorMode mode=ColorMode::PROB)
 
void update_color (const unsigned char *values, int alpha=255, ColorMode mode=ColorMode::PROB)
 
void update_color (int width, int height, float scale, const float *values, float alpha=1.0f, ColorMode mode=ColorMode::PROB)
 
void update_color (float scale, const float *values, float alpha=1.0f, ColorMode mode=ColorMode::PROB)
 
- Public Member Functions inherited from glk::Drawable
virtual ~Drawable ()
 

Member Enumeration Documentation

◆ ColorMode

Enumerator
RAW 
TURBO 
PROB 
PROB_TURBO 
RGBA 

Constructor & Destructor Documentation

◆ GridMap() [1/2]

glk::GridMap::GridMap ( double  resolution,
int  width,
int  height,
const unsigned char values,
int  alpha = 255,
ColorMode  mode = ColorMode::PROB 
)

◆ GridMap() [2/2]

glk::GridMap::GridMap ( double  resolution,
int  width,
int  height,
float  scale,
const float values,
float  alpha = 1.0f,
ColorMode  mode = ColorMode::PROB 
)

◆ ~GridMap()

virtual glk::GridMap::~GridMap ( )
virtual

Member Function Documentation

◆ draw()

virtual void glk::GridMap::draw ( glk::GLSLShader shader) const
overridevirtual

Reimplemented from glk::Drawable.

◆ update_color() [1/4]

void glk::GridMap::update_color ( const unsigned char values,
int  alpha = 255,
ColorMode  mode = ColorMode::PROB 
)

◆ update_color() [2/4]

void glk::GridMap::update_color ( float  scale,
const float values,
float  alpha = 1.0f,
ColorMode  mode = ColorMode::PROB 
)

◆ update_color() [3/4]

void glk::GridMap::update_color ( int  width,
int  height,
const unsigned char values,
int  alpha = 255,
ColorMode  mode = ColorMode::PROB 
)

◆ update_color() [4/4]

void glk::GridMap::update_color ( int  width,
int  height,
float  scale,
const float values,
float  alpha = 1.0f,
ColorMode  mode = ColorMode::PROB 
)

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