20#ifndef _SOURCE_RENDERING_TFBONDRENDERER3D_H_
21#define _SOURCE_RENDERING_TFBONDRENDERER3D_H_
23#include "tfSubRenderer.h"
25#include <shaders/tfPhong.h>
28#include <Magnum/GL/Mesh.h>
29#include <Magnum/Mesh.h>
30#include <Magnum/Math/Color.h>
37 Magnum::Matrix4 transformationMatrix;
38 Magnum::Matrix3 normalMatrix;
53 std::vector<Magnum::Vector4> _clipPlanes;
56 Magnum::GL::Buffer _buffer{Corrade::Containers::NoCreate};
57 Magnum::GL::Mesh _mesh{Corrade::Containers::NoCreate};
61 rendering::Bond3DInstanceData* bondData,
63 const fVector3 &pipos,
64 const fVector3 &pjpos,
65 const fVector4 &color,
Definition tfArcBallCamera.h:66
Tissue Forge rendering and visualization.
Definition tfAngle.h:38
Definition tfBondRenderer3D.h:36
Definition tfBondRenderer3D.h:42
const unsigned removeClipPlaneEquation(const unsigned int &id) override
Removes a clip plane equation.
HRESULT draw(ArcBallCamera *camera, const iVector2 &viewportSize, const fMatrix4 &modelViewMat) override
Updates visualization.
void setClipPlaneEquation(unsigned id, const Magnum::Vector4 &pe) override
Sets a clip plane equation.
const unsigned addClipPlaneEquation(const Magnum::Vector4 &pe) override
Adds a clip plane equation.
HRESULT start(const std::vector< fVector4 > &clipPlanes) override
Starts the renderer.
Definition tfSubRenderer.h:34
int32_t HRESULT
Definition tf_port.h:255