AvogadroLibs 1.97.0
Public Slots | Signals | Public Member Functions | List of all members
vtkGLWidget Class Reference
Inheritance diagram for vtkGLWidget:

Public Slots

void updateScene ()
 
void clearScene ()
 
void resetCamera ()
 
void resetGeometry ()
 
void cubeVolume (Core::Cube *cube)
 

Signals

void imageDataUpdated ()
 

Public Member Functions

 vtkGLWidget (QWidget *p=nullptr, Qt::WindowFlags f=Qt::WindowFlags())
 
void setMolecule (QtGui::Molecule *molecule)
 
Rendering::GLRendererrenderer ()
 
vtkColorTransferFunction * lut () const
 
vtkPiecewiseFunction * opacityFunction () const
 
vtkImageData * imageData () const
 
void setCube (Core::Cube *cube)
 
Core::Cubecube ()
 
void renderVolume (bool enable)
 
void renderIsosurface (bool enable)
 
void setIsoValue (double value)
 
void setOpacity (double value)
 
QtGui::Moleculemolecule ()
 
const QtGui::Moleculemolecule () const
 
QtGui::ScenePluginModelsceneModel ()
 
const QtGui::ScenePluginModelsceneModel () const
 

Member Function Documentation

◆ setMolecule()

void setMolecule ( QtGui::Molecule molecule)

Set the molecule the widget will render.

◆ molecule() [1/2]

QtGui::Molecule * molecule ( )

Get the molecule being rendered by the widget.

◆ molecule() [2/2]

const QtGui::Molecule * molecule ( ) const

Get the molecule being rendered by the widget.

◆ renderer()

Rendering::GLRenderer & renderer ( )

Get a reference to the renderer for the widget.

◆ sceneModel() [1/2]

QtGui::ScenePluginModel & sceneModel ( )

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

◆ sceneModel() [2/2]

const QtGui::ScenePluginModel & sceneModel ( ) const

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

◆ lut()

vtkColorTransferFunction * lut ( ) const

Get the color loop up table for the volume renderer.

◆ opacityFunction()

vtkPiecewiseFunction * opacityFunction ( ) const

Get the opacity function for the volume renderer.

◆ imageData()

vtkImageData * imageData ( ) const

Get the vtkImageData that is being rendered.

◆ setCube()

void setCube ( Core::Cube cube)

Set the cube to render.

◆ cube()

Core::Cube * cube ( )

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

◆ renderVolume()

void renderVolume ( bool  enable)

Display the volume rendering.

◆ renderIsosurface()

void renderIsosurface ( bool  enable)

Display an isosurface.

◆ setIsoValue()

void setIsoValue ( double  value)

Set the isovalue for the isosurface.

◆ setOpacity()

void setOpacity ( double  value)

Set the isovalue for the isosurface.

◆ imageDataUpdated

void imageDataUpdated ( )
signal

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

◆ updateScene

void updateScene ( )
slot

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

◆ clearScene

void clearScene ( )
slot

Clear the contents of the scene.

◆ resetCamera

void resetCamera ( )
slot

Reset the view to fit the entire scene.

◆ resetGeometry

void resetGeometry ( )
slot

Reset the geometry when the molecule etc changes.

◆ cubeVolume

void cubeVolume ( Core::Cube cube)
slot

Volume render the supplied cube.


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