Blobalizer
Loading...
Searching...
No Matches
ChemStructureDrawable Class Reference

The drawable class for the chemical structure. This is used for grouping and rendering the meshes for the internal structure of the molecule. More...

Inheritance diagram for ChemStructureDrawable:

Public Member Functions

 ChemStructureDrawable (Object3D &object, ChemStructureShader &shader, GL::Mesh &mesh, SceneGraph::DrawableGroup3D &group)
 Creates a new drawable with the given shader, mesh and group.
 

Private Member Functions

void draw (const Matrix4 &transformationMatrix, SceneGraph::Camera3D &camera) override
 Draws the mesh with the given transformation matrix and camera.
 

Private Attributes

ChemStructureShader_shader
 
GL::Mesh & _mesh
 

Detailed Description

The drawable class for the chemical structure. This is used for grouping and rendering the meshes for the internal structure of the molecule.

Constructor & Destructor Documentation

◆ ChemStructureDrawable()

ChemStructureDrawable::ChemStructureDrawable ( Object3D object,
ChemStructureShader shader,
GL::Mesh &  mesh,
SceneGraph::DrawableGroup3D &  group 
)
inlineexplicit

Creates a new drawable with the given shader, mesh and group.

Parameters
objectThe transformation object in the scenegraph
shaderThe shader with which to mrender this drawable
meshThe mesh representing this drawable
groupThe rendering group this drawable belongs to

Member Function Documentation

◆ draw()

void ChemStructureDrawable::draw ( const Matrix4 &  transformationMatrix,
SceneGraph::Camera3D &  camera 
)
overrideprivate

Draws the mesh with the given transformation matrix and camera.

Parameters
transformationMatrixThe view matrix (cameraMatrix * modelMatrix) for this drawable
cameraThe camera with which to render this drawable. The camera transformation is already represented in transformationMatrix

Member Data Documentation

◆ _mesh

GL::Mesh& ChemStructureDrawable::_mesh
private

◆ _shader

ChemStructureShader& ChemStructureDrawable::_shader
private

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