20#ifndef _SOURCE_RENDERING_TFORIENTATIONRENDERER_H_
21#define _SOURCE_RENDERING_TFORIENTATIONRENDERER_H_
23#include "tfSubRenderer.h"
24#include "tfArrowRenderer.h"
26#include <shaders/tfPhong.h>
29#include <Magnum/GL/Mesh.h>
30#include <Magnum/Math/Color.h>
31#include <Magnum/Mesh.h>
49 std::vector<ArrowData *> arrows;
72 void showAxes(
const bool &
show) {
78 int _arrowDetail = 10;
81 Magnum::GL::Buffer _bufferHead{Corrade::Containers::NoCreate};
82 Magnum::GL::Buffer _bufferCylinder{Corrade::Containers::NoCreate};
83 Magnum::GL::Buffer _bufferOrigin{Corrade::Containers::NoCreate};
84 Magnum::GL::Mesh _meshHead{Corrade::Containers::NoCreate};
85 Magnum::GL::Mesh _meshCylinder{Corrade::Containers::NoCreate};
86 Magnum::GL::Mesh _meshOrigin{Corrade::Containers::NoCreate};
87 shaders::Phong _shader{Corrade::Containers::NoCreate};
89 fMatrix4 modelViewMat;
90 fMatrix4 staticTransformationMat;
92 ArrowData *arrowx=NULL, *arrowy=NULL, *arrowz=NULL;
Definition tfArcBallCamera.h:66
Tissue Forge rendering and visualization.
Definition tfAngle.h:38
HRESULT show()
Shows any windows that were specified in the config. Does not start the universe time propagation unl...
Orientaton renderer.
Definition tfOrientationRenderer.h:46
void setSpecularColor(const Magnum::Color3 &color) override
Set the specular color.
HRESULT draw(ArcBallCamera *camera, const iVector2 &viewportSize, const fMatrix4 &modelViewMat) override
Updates visualization.
void setDiffuseColor(const Magnum::Color3 &color) override
Set the diffuse color.
HRESULT start(const std::vector< fVector4 > &clipPlanes) override
Starts the renderer.
void setAmbientColor(const Magnum::Color3 &color) override
Sets the ambient color.
void setLightDirection(const fVector3 &lightDir) override
Sets the light direction.
void setShininess(float shininess) override
Sets the shininess.
static OrientationRenderer * get()
Gets the global instance of the renderer.
void setLightColor(const Magnum::Color3 &color) override
Sets the light color.
Definition tfSubRenderer.h:34
int32_t HRESULT
Definition tf_port.h:255