gtsam_points
Loading...
Searching...
No Matches
Public Member Functions | List of all members
guik::FlatBlue Struct Reference

Flat blue color. More...

#include <shader_setting.hpp>

Inheritance diagram for guik::FlatBlue:
Inheritance graph
[legend]
Collaboration diagram for guik::FlatBlue:
Collaboration graph
[legend]

Public Member Functions

 FlatBlue ()
 
template<typename Transform >
 FlatBlue (const Transform &transform)
 
- Public Member Functions inherited from guik::FlatColor
 FlatColor (float r, float g, float b, float a=1.0f)
 
 FlatColor (const Eigen::Vector4f &color)
 
template<typename Transform >
 FlatColor (const Eigen::Vector4f &color, const Transform &transform)
 
template<typename Color >
 FlatColor (const Color &color)
 
template<typename Transform >
 FlatColor (float r, float g, float b, float a, const Transform &transform)
 
template<typename Color , typename Transform >
 FlatColor (const Color &color, const Transform &transform)
 
template<typename T >
 FlatColor (std::initializer_list< T > i)
 
template<typename T , typename Transform >
 FlatColor (std::initializer_list< T > i, const Transform &transform)
 
virtual ~FlatColor () override
 
- Public Member Functions inherited from guik::ShaderSetting
 ShaderSetting ()
 Default constructor.
 
 ShaderSetting (int color_mode)
 Constructor.
 
 ShaderSetting (int color_mode, const Eigen::Matrix4f &transform)
 Constructor.
 
template<typename Transform >
 ShaderSetting (int color_mode, const Transform &transform)
 Constructor.
 
 ShaderSetting (const ShaderSetting &other)
 Copy constructor.
 
ShaderSettingoperator= (const ShaderSetting &other)
 Copy assignment operator.
 
virtual ~ShaderSetting ()
 Destructor.
 
ShaderSetting clone () const
 Clone the shader setting.
 
template<typename T >
ShaderSettingadd (const std::string &name_, const T &value)
 Add a new parameter to the shader setting.
 
template<typename T >
std::optional< T > get (const std::string &name_)
 Get a parameter value from the shader setting.
 
template<typename T >
std::optional< T > get (const std::string &name_) const
 Get a parameter value from the shader setting.
 
template<typename T >
cast (const std::string &name_) const
 Get a parameter value from the shader setting. This method avoid type checking. Fast but unsafe.
 
void set (glk::GLSLShader &shader) const
 Set shader parameters to the shader program.
 
ShaderSettingstatic_object ()
 Set static object flag.
 
ShaderSettingdynamic_object ()
 Set dynamic object flag.
 
Eigen::Vector4f material_color () const
 Get material color (FLAT_COLOR).
 
ShaderSettingset_color (float r, float g, float b, float a)
 Set material color (FLAT_COLOR).
 
template<typename Color >
ShaderSettingset_color (const Color &color_)
 Set material color (for FLAT_COLOR).
 
ShaderSettingset_alpha (float alpha)
 Set alpha value of the material color.
 
ShaderSettingmake_transparent ()
 Make the object transparent (alpha blending).
 
ShaderSettingset_rainbow_range (const Eigen::Vector2f &minmax_z)
 Set RAINBOW color range.
 
ShaderSettingset_rainbow_axis (const Eigen::Vector3f &axis)
 Set RAINBOW coloring axis.
 
float point_scale () const
 Get point size scale factor.
 
ShaderSettingset_point_scale (float scaling)
 Set point size scale factor.
 
float point_size () const
 Get point size.
 
ShaderSettingset_point_size (float size)
 Set point size.
 
ShaderSettingset_point_size_offset (float offset)
 Set point size offset.
 
ShaderSettingset_point_shape_mode (guik::PointShapeMode::MODE mode)
 Set point shape mode.
 
ShaderSettingset_point_shape_circle ()
 Set point shape to circle.
 
ShaderSettingset_point_shape_rectangle ()
 Set point shape to rectangle.
 
ShaderSettingset_point_scale_mode (guik::PointScaleMode::MODE mode)
 Set point size scale mode.
 
ShaderSettingset_point_scale_screenspace ()
 Set point size scale to screen space.
 
ShaderSettingset_point_scale_metric ()
 Set point size scale to metric.
 
ShaderSettingset_point_shape (float point_size, bool metric, bool circle)
 Set point shape with common settings.
 
ShaderSettingset_old_default_point_shape ()
 Set old (v0.1.9) default point shape (rectangle + screenspace)
 
ShaderSettingremove_model_matrix ()
 
int color_mode () const
 Get color mode.
 
ShaderSettingset_color_mode (int color_mode)
 Set color mode.
 
Eigen::Matrix4f model_matrix () const
 Get model matrix.
 
Eigen::Vector3f translation () const
 Get translation vector from the model matrix.
 
Eigen::Matrix3f rotation () const
 Get rotation matrix from the model matrix.
 
template<typename Transform >
ShaderSettingset_model_matrix (const Transform &transform)
 Set model matrix.
 
template<typename Transform >
ShaderSettingtransform (const Transform &transform)
 Apply transformation to the model matrix.
 
ShaderSettingtranslate (float tx, float ty, float tz)
 Apply translation to the model matrix.
 
ShaderSettingtranslate (const Eigen::Vector3f &translation)
 Apply translation to the model matrix.
 
template<typename Vector >
ShaderSettingtranslate (const Vector &translation)
 Apply translation to the model matrix.
 
ShaderSettingrotate (const float angle, const Eigen::Vector3f &axis)
 Apply rotation to the model matrix.
 
template<typename Vector >
ShaderSettingrotate (const float angle, const Vector &axis)
 Apply rotation to the model matrix.
 
template<typename Scalar >
ShaderSettingrotate (const Eigen::Quaternion< Scalar > &quat)
 Apply rotation to the model matrix.
 
template<typename Scalar , int Dim>
ShaderSettingrotate (const Eigen::Matrix< Scalar, Dim, Dim > &rot)
 Apply rotation to the model matrix.
 
ShaderSettingscale (float scaling)
 Apply uniform scaling to the model matrix.
 
ShaderSettingscale (float sx, float sy, float sz)
 Apply scaling to the model matrix (non-uniform).
 
ShaderSettingscale (const Eigen::Vector3f &scaling)
 Apply scaling to the model matrix (non-uniform).
 
template<typename Vector >
std::enable_if_t<!std::is_arithmetic_v< Vector >, ShaderSetting & > scale (const Vector &scaling)
 Apply scaling to the model matrix (non-uniform).
 
template<>
ShaderSettingadd (const std::string &name, const Eigen::Isometry3f &value)
 
template<>
ShaderSettingadd (const std::string &name, const Eigen::Affine3f &value)
 

Additional Inherited Members

- Public Types inherited from guik::ShaderSetting
using Ptr = std::shared_ptr< ShaderSetting >
 
using ConstPtr = std::shared_ptr< const ShaderSetting >
 
- Public Attributes inherited from guik::ShaderSetting
bool transparent
 If true, the object is rendered as transparent.
 
std::vector< ShaderParameterparams
 Shader parameters.
 

Detailed Description

Flat blue color.

Constructor & Destructor Documentation

◆ FlatBlue() [1/2]

guik::FlatBlue::FlatBlue ( )
inline

◆ FlatBlue() [2/2]

template<typename Transform >
guik::FlatBlue::FlatBlue ( const Transform &  transform)
inline

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