Class Avogadro::VTK::vtkGLWidget#

class Avogadro::VTK::vtkGLWidget : public QVTKOpenGLWidget#

Unnamed Group

QtGui::Molecule *molecule()#

Get the molecule being rendered by the widget.

const QtGui::Molecule *molecule() const#

Get the molecule being rendered by the widget.

Unnamed Group

inline QtGui::ScenePluginModel &sceneModel()#

Get the GLWidget’s ScenePluginModel, used to add, delete and modify the scene plugin items.

inline const QtGui::ScenePluginModel &sceneModel() const#

Get the GLWidget’s ScenePluginModel, used to add, delete and modify the scene plugin items.

Public Functions

vtkGLWidget(QWidget *p = nullptr, Qt::WindowFlags f = Qt::WindowFlags())#
~vtkGLWidget()#
void setMolecule(QtGui::Molecule *molecule)#

Set the molecule the widget will render.

inline Rendering::GLRenderer &renderer()#

Get a reference to the renderer for the widget.

vtkColorTransferFunction *lut() const#

Get the color loop up table for the volume renderer.

vtkPiecewiseFunction *opacityFunction() const#

Get the opacity function for the volume renderer.

vtkImageData *imageData() const#

Get the vtkImageData that is being rendered.

void setCube(Core::Cube *cube)#

Set the cube to render.

Core::Cube *cube()#

Get the cube being rendered, this is the input for the imageData.

void renderVolume(bool enable)#

Display the volume rendering.

void renderIsosurface(bool enable)#

Display an isosurface.

void setIsoValue(double value)#

Set the isovalue for the isosurface.

void setOpacity(double value)#

Set the isovalue for the isosurface.

Public Slots

void updateScene()#

Update the scene plugins for the widget, this will generate geometry in the scene etc.

void clearScene()#

Clear the contents of the scene.

void resetCamera()#

Reset the view to fit the entire scene.

void resetGeometry()#

Reset the geometry when the molecule etc changes.

void cubeVolume(Core::Cube *cube)#

Volume render the supplied cube.

Signals

void imageDataUpdated()#

Emitted if the image data is updated so that histograms etc can update.