mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-31 17:02:00 +08:00
59 lines
1.7 KiB
C++
59 lines
1.7 KiB
C++
///|/ Copyright (c) Prusa Research 2023 Enrico Turri @enricoturri1966
|
|
///|/
|
|
///|/ libvgcode is released under the terms of the AGPLv3 or higher
|
|
///|/
|
|
#ifndef VGCODE_SHELL_HPP
|
|
#define VGCODE_SHELL_HPP
|
|
|
|
//################################################################################################################################
|
|
// PrusaSlicer development only -> !!!TO BE REMOVED!!!
|
|
#if ENABLE_NEW_GCODE_VIEWER
|
|
//################################################################################################################################
|
|
|
|
#include "Types.hpp"
|
|
|
|
#include <cstdint>
|
|
|
|
namespace libvgcode {
|
|
|
|
class Shell
|
|
{
|
|
public:
|
|
Shell() = default;
|
|
~Shell();
|
|
Shell(const Shell& other) = delete;
|
|
Shell(Shell&& other) = delete;
|
|
Shell& operator = (const Shell& other) = delete;
|
|
Shell& operator = (Shell&& other) = delete;
|
|
|
|
void init();
|
|
void render();
|
|
|
|
const Vec3f& get_position() const;
|
|
void set_position(const Vec3f& position);
|
|
|
|
const Color& get_color() const;
|
|
void set_color(const Color& color);
|
|
|
|
float get_alpha() const;
|
|
void set_alpha(float alpha);
|
|
|
|
private:
|
|
Vec3f m_position{ 0.0f, 0.0f, 0.0f };
|
|
Color m_color{ 1.0f, 1.0f, 1.0f };
|
|
float m_alpha{ 0.5f };
|
|
|
|
uint32_t m_indices_count{ 0 };
|
|
unsigned int m_vao_id{ 0 };
|
|
unsigned int m_vbo_id{ 0 };
|
|
unsigned int m_ibo_id{ 0 };
|
|
};
|
|
|
|
} // namespace libvgcode
|
|
|
|
//################################################################################################################################
|
|
// PrusaSlicer development only -> !!!TO BE REMOVED!!!
|
|
#endif // ENABLE_NEW_GCODE_VIEWER
|
|
//################################################################################################################################
|
|
|
|
#endif // VGCODE_SHELL_HPP
|